[MPlayer-users] Mencoder 2pass bitrate control

D Richard Felker III dalias at aerifal.cx
Wed Dec 17 21:58:17 CET 2003


On Wed, Dec 17, 2003 at 04:27:59PM -0000, Stanislav Stantchev wrote:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]

> Hi, 
> 
> i am new to this mailing list. i have some problems with mencoder. i
> installed MPlayer-1.0pre3 with XVID-1.0beta2 & everything seems to work
> fine, but i have problems with the 2pass bitrate control. here is the
> command line i use to test mencoder: 
> 
> mencoder file.vob -ovc xvid -xvidencopts
> pass=1:vhq=1:qpel:me_quality=6:hq_ac:trellis:chroma_me:max_bframes=3:clo
> sed_gop:keyframe_boost=0:overflow_control_strength=10:max_overflow_impro
> vement=40:max_overflow_degradation=40:bquant_ratio=150:bquant_offset=100
> :bf_threshold=0 -sws 9 -vf crop=720:362:0:56,scale=640:320 -nosound -o
> mencoder.avi
> 
> for the second pass i just change pass=2:bitrate=900 for an example. the
> thing that bothers me , is that after encoding i don't get the wanted
> bitrate. when i ask for 900, i get 761 or when i ask for 650 i get 521.
> it's 1 of 5 times when i get the bitrate i want. maybe i am doing
> something wrong. i would appreciate is very much if someone can help me.
> if that helps more, i am using Slack-9.1, PIII-M 1GHz, 256MB ram. 
> 
> Thanks for your help! 

You need to post the FULL output of mencoder or we can only guess
what's wrong. My guess is you have an NTSC movie DVD at 23.976 fps and
you need to add -ofps 23.976.

Also, xvid is not recommended. lavc is faster and gives better
quality.

Rich



More information about the MPlayer-users mailing list