[MEncoder-users] mencoder ignoring bitrate?

Jason Wieland jwieland at vmix.com
Tue Apr 11 19:46:09 CEST 2006


jason wieland wrote:
> On 4/10/06, Guillaume POIRIER <poirierg at gmail.com> wrote:
>   
>> On 4/10/06, jason wieland <astoneded at gmail.com> wrote:
>>     
>>> Hello Group,
>>>
>>> I'm using cvs HEAD (current 4/10/2006) of mplayer/mencoder and ffmpeg.  I
>>> must be doing something incorrectly.  I'm trying to encode a raw avi file
>>> into a flv at about 500kbits/s
>>>
>>> I'm using this command:
>>> mencoder -quiet -ovc lavc -lavcopts vbitrate=500 -oac mp3lame -lameopts
>>> abr:br=80 -srate 22050 -of lavf -lavfopts
>>> i_certify_that_my_video_stream_does_not_use_b_frames -o ./small_wmv.flv
>>> ./temp/small_raw.avi
>>>
>>> However mencoder does not seem to respect the vbitrate=500.
>>> mencoder output reports:
>>> Video stream:  293.274 kbit/s  (36659 B/s)  size: 957650 bytes  26.123 secs
>>> 26332 frames
>>>
>>>
>>> Changing the vbitrate to something else, vbitrate=800 it does not change the
>>> output video bitrate at all.
>>> Video stream:  293.537 kbit/s  (36692 B/s)  size: 959060 bytes  26.138 secs
>>> 26332 frames
>>>       
>> Looks like your source just compresses too well. Lavc doesn't add some
>> padding to meet the bitrate if it doesn't reach the target bitrate,
>> which seems cool with me.
>>
>> Guillaume
>>     
I found my issue.  I was not specifying the output frames per second, 
which the documentation says I MUST specify for variable frame rate 
formats.  So if I append -ofsp 25 everything is good. 

Thanks for everyones help.

Jason




More information about the MEncoder-users mailing list