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

Bill Crockett wsc4 at optusnet.com.au
Fri Apr 13 09:17:16 CEST 2012


On 13/04/2012 12:39 PM, Krzysztof Duchnowski wrote:
> 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.
>

Thank you.  :-)


More information about the MPlayer-users mailing list