[MEncoder-users] h264 3-pass mode

Justin Randall jrrandall at gmail.com
Wed Jan 17 01:42:20 CET 2007


Pass 2 is by definition the final pass. It is confusing, but you could
do say.. pass=1, pass=3, pass=2 and that would be equivalent to
pass=1, pass=3, pass=3.  There is never any need to use pass=2, but it
makes sense in a two pass encode to use it. All passes after pass=2
will be useless since it is the final pass. You could do a two pass
encode with pass=1 and pass=3 as well.  Did I confuse you yet? That is
why everyone here is telling you to read the documentation. ;-p

On 1/16/07, Grozdan Nikolov <microchip at chello.be> wrote:
> On Tuesday 16 January 2007 22:40, Justin Randall wrote:
> > It's in the docs, and it's up to your personal preferences and which
> > H.264 profile you want to encode to. i.e. Baseline, Extened, or Main,
> > etc. I recommend reading up on what H.264 can do and decide what you
> > want it to do. http://en.wikipedia.org/wiki/H.264.  For starters on
> > three pass encoding (highly unnessary IMHO, two-pass is just fine) I
> > would use these settings. It's all up to you and what you want to do
> > though.
> >
> > >: mencoder test.avi -ovc x64 -x264encopts
> >
> > pass=1:qp_constant=15:fullinter:cabac:deblock:subq=4:keyint=300: \
> > scenecut=45:frameref=8:deblockalpha=1:deblockbeta=0 \
> > -nosound -of avi -o /dev/null
> >
> > >: mencoder test.avi -ovc x64 -x264encopts
> >
> > pass=3:bitrate=1200:qp_min=15:qp_max=51:qcomp=0.8:rc_buffer_size=700:
> > \
> > fullinter:cabac:deblock:subq=4:keyint=300:scenecut=45:frameref=8: \
> > deblockalpha=1:deblockbeta=0  -nosound -of avi -o threepass.avi
> >
> > >: mencoder test.avi -ovc x64 -x264encopts
> >
> > pass=3:bitrate=1200:qp_min=15:qp_max=51:qcomp=0.8:rc_buffer_size=700:
> > \
> > fullinter:cabac:deblock:subq=4:keyint=300:scenecut=45:frameref=8: \
> > deblockalpha=1:deblockbeta=0  -nosound -of avi -o threepass.avi
> >
> > Again, these settings are there for YOU to choose, so do some research
> > and decide what is best for you. Good luck.
> >
>
> I see the second & third pass both have 'pass=3' is this a typo, or is this
> the correct way to do it?
>
> I always thought it was 'pass=1' then 'pass=2' and finally 'pass=3'
> _______________________________________________
> MEncoder-users mailing list
> MEncoder-users at mplayerhq.hu
> http://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
>


-- 
Justin Randall
617.733.4107



More information about the MEncoder-users mailing list