[MPlayer-users] Color problems with video

Deron Kazmaier deron at pagestream.org
Tue Nov 22 02:16:24 CET 2011


On 11/21/11 4:57 PM, Carl Eugen Hoyos wrote:
> Deron Kazmaier writes:
>
>> Well, I made mplayer output bgra using:
>>
>> mplayer -quiet "/work/paid VERSA CUT (997.0092) Ardman [NARROW].mp4" -vo
>> decklink -ao decklink -lavdopts threads=8 -vf
>> scale=-3:720,expand=1280:720,format=bgra -af volume=-12
>>
>> And it outputs the video correctly. At this point I'm pretty sure this
>> is a bug in decoding the video to uyvy,
> In that case, you can certainly reproduce your problem with mplayer -vo xv -vf
> scale=-3:720,expand=1280:720,format=uyvy ?
>
> Carl Eugen
>

Yes, I'm certain this is a bug in mplayer (or some component, but not 
the decklink driver).

I figured out that I can still output to the framebuffer device with a 
video card and monitor attached without installing x11 etc. Good enough. 
But of course, the framebuffer will only take RGB, like I'm sure your 
device.

So, I dumped the sample I uploaded to a raw file like this:

mencoder "badcolors.mp4" -vf scale=-3:720,expand=1280:720,format=uyvy 
-ovc raw -oac pcm -of avi -o output.avi

and then played it with

mplayer "output.avi" -vo fbdev

Viola! Bad colors without using the (beta) decklink driver.

-------

testing further, I found out that it is a strange mix of scale and 
expand that causes this.

   bad output: mplayer  "badcolors.mp4" -vo decklink -ao decklink 
-lavdopts threads=8 -vf scale=1066:720,expand=1280:720 -af volume=-12
good output: mplayer  "badcolors.mp4" -vo decklink -ao decklink 
-lavdopts threads=8 -vf scale=1067:720,expand=1280:720 -af volume=-12

scale=1280:720 without expand
or
expand=1280:720 without scale also works well

So, now what? Do I report this to mplayer, ffmpeg ??? I presume it is 
not a problem in x264.

Deron



More information about the MPlayer-users mailing list