google-code-export / tovid

Automatically exported from code.google.com/p/tovid
1 stars 0 forks source link

no audio track found if mplayer uses -msgcolor #132

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I had the 'msgcolor' option set in ~/.mplayer/config. Since idvid uses mplayer 
to determine some video file properties, idvid was confronted with color codes 
in the corresponding output of mplayer.

This lead to the annoying bug that no audio streams have been found in my .mp4 
video file.

Suggestions:
1. Use sed to get rid of coloring escape sequences from mplayer output, or
2. at least warn if such escape sequences are found.

Original issue reported on code.google.com by shub...@gmail.com on 27 Sep 2010 at 7:15

GoogleCodeExporter commented 9 years ago
I think this is easily prevented with adding -nomsgcolor to the mplayer
command line.  Could you please test the attached patch ?

thanks for reporting !

grepper

Original comment by grepper@gmail.com on 15 Dec 2010 at 10:25

GoogleCodeExporter commented 9 years ago
Sorry, attachment below

Original comment by grepper@gmail.com on 15 Dec 2010 at 10:27

Attachments:

GoogleCodeExporter commented 9 years ago
Just tested it with your patch. Seems to work fine for me. I modified the patch 
in order to make it work with tovid-0.31-r2 (from gentoo portage). (Btw, the 
mplayer option '-nomsgcolor' is not documented in the man page, but good to 
know.)

Original comment by shub...@gmail.com on 15 Dec 2010 at 11:40

GoogleCodeExporter commented 9 years ago
Great, thanks again for reporting the issue.  BTW, any "flag" option in mplayer
can take a -no{OPTION} form.  Its under "USAGE" in the manpage:
"Every 'flag' option has a 'noflag' counterpart, e.g. the opposite of the -fs 
option is -nofs."

grepper

Original comment by grepper@gmail.com on 15 Dec 2010 at 12:18