Xvid Options - Mencoder

-vc xvid

For interlaced sources:

     -field-dominance 0 -vf yadif=3,mcedeint=2:1:10,framestep=2

For interlaced sources that start with the bottom frame:

     -field-dominance 1 -vf yadif=3,mcedeint=2:1:10,framestep=2

For telecined sources:

     -vf pullup,softskip,pp=lb

-passlogfile .\video.pass

-xvidencopts

     quant_type=mpeg
     me_quality=6
     noqpel
     nogmc
     notrellis
     nocartoon
     chroma_opt
     hq_ac
     vhq=3
     bvhq=1
     nolumi_mask
     max_bframes=2
     bquant_ratio=150
     bquant_offset=100
     curve_compression_high=0
     curve_compression_low=0
     overflow_control_strength=5
     max_overflow_improvement=5
     max_overflow_degradation=5
     packed
     aspect=16/9  or  autoaspect
     profile=dxnhtntsc
     threads=4
     pass=1
     pass=2
     keyframe_boost=10
     kfthreshold=1
     kfreduction=20
     vbv_bufsize=3145728
     vbv_maxrate=4854000
     bitrate=1200

#<<<<<<