[MPlayer-users] -rawvideo size option does not work.

Krzysztof Duchnowski amidk75 at gmail.com
Fri Apr 13 04:39:45 CEST 2012


On 13.04.2012 02:04, Bill Crockett wrote:
> 
> With  the -rawvideo options, the last one listed is size:
> 
> size=<value>
> 
>           frame size in Bytes
> 
> mplayer -rawvideo fps=25:w=768:h=576:yv12:size=31754 -demuxer rawvideo 
> somevideo.yuv
> 
> Putting in a "size=31754" option, this is displayed:
> 
> Frame too small! <31754<663552> Wrong format?
> 
> How do you calculate the frame size in Bytes please?  I thought it means 
> the files size divided by the number of frames.

No:
width * height * colorspace byte length / 8
768 * 576 * 12 / 8 = 663552

As you can see MPlayer already figured it out what value it should be
from width, height and colorspace format and that's why it reports an error.

And I think you could safely omit "size" value as you give width, height
and colorspace format.

-- 
Krzysztof 'DK75' Duchnowski
GetFirefox - http://www.getfirefox.net/
Konfiguracja UTF-8 dla czytników - http://evil.pl/pip/utf/


More information about the MPlayer-users mailing list