[MEncoder-users] two-pass encoding for DVDs

Nicolas Hesler nicolas.hesler at sheridanc.on.ca
Wed Aug 6 14:53:42 CEST 2008


>
> If that bug exists and hasn't been fixed, then it's not a good idea to
> use two-pass encoding to create video DVDs, so I shouldn't add two-pass
> encoding to my Mencoder front-end.
>
> Thanks.
>
>   
This should probably be answered by someone who knows exactly how rate 
control works, but in doing many tests on video files that I've been 
encoding, vrc_maxrate=7000:vbitrate=6000 works well enough in 2 pass 
mode for me; keeping the bitrate spikes a little below the allowable 
maximum.  All I did to figure out those numbers was to encode many many 
files under different settings and analyze the resulting file with a 
bitrate viewer.   Please share if you find anything different.   Other 
settings may affect this but I haven't tested. 

mencoder -sws 2 -oac lavc -ovc lavc -of mpeg -mpegopts 
format=mpeg2:muxrate=10080:tsaf:telecine -vf
scale=720:480,harddup -srate 48000 -af lavcresample=48000:0:2 -lavcopts
vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=7000:vbitrate=6000:trell:mbd=2:preme=2:dia=4:predia=4:
precmp=2:cmp=2:subcmp=2:cbp:mv0:acodec=ac3:abitrate=224:keyint=12:vpass=1:autoaspect:vstrict=0 
-ofps
24000/1001




More information about the MEncoder-users mailing list