[MEncoder-users] Framerate problems with yadif and mcdeint

James Hastings-Trew jimht at shaw.ca
Mon Mar 9 14:44:56 CET 2009


Jonathan Busby wrote:
> RC wrote:
>   
>> Understanding what you've told mencoder to do would help quite a bit.
>>
>> Short of that, framestep=2 should fix it.
>>     
> Thanks for the tip! :) I apologize if I wasn't more specific.
> Here is the encode shell script that I was using. Yes, I know
> that the huge list of filters and ridiculously maxed-out-for-quality
> options to x264 are overkill, but why waste compute cycles? ;)
>
> --------------------------------------------------------------------------------------------------------
>
> #!/bin/sh
>
> mencoder cut2.mpg -nosound -vf yadif=1:1,mcdeint=3:1:10,\
> hqdn3d=8:6:12,softskip,pp=ha:128:7/va/dr/al/tn:64:128:256\
> -ofps 48000/1001 -ovc x264 -x264encopts\
> bitrate=2048:pass=1:turbo=1:frameref=15:bframes=5:b_adapt\
> :b_pyramid:cabac:qcomp=0.85:keyint=500:direct_pred=auto:\
> weight_b:partitions=all:8x8dct:me=umh:subq=9:chroma_me:\
> mixed_refs:nodct_decimate:deblock:log=3:psnr:ssim:\
> deadzone_intra=5:deadzone_inter=10:trellis=2:me_range=32 \
> -o /dev/null
>
> mencoder cut2.mpg -nosound -vf yadif=1:1,mcdeint=3:1:10,\
> hqdn3d=8:6:12,softskip,pp=ha:128:7/va/dr/al/tn:64:128:256\
> -ofps 48000/1001 -ovc x264 -x264encopts\
> bitrate=2048:pass=2:frameref=15:bframes=5:b_adapt\
> :b_pyramid:cabac:qcomp=0.85:keyint=500:direct_pred=auto:\
> weight_b:partitions=all:8x8dct:me=umh:subq=9:chroma_me:\
> mixed_refs:nodct_decimate:deblock:log=3:psnr:ssim:\
> deadzone_intra=5:deadzone_inter=10:trellis=2:me_range=32 \
> -o /dev/null
>
> mencoder cut2.mpg -nosound -vf yadif=1:1,mcdeint=3:1:10,\
> hqdn3d=8:6:12,softskip,pp=ha:128:7/va/dr/al/tn:64:128:256\
> -ofps 48000/1001 -ovc x264 -x264encopts\
> bitrate=2048:pass=3:turbo=1:frameref=15:bframes=5:b_adapt\
> :b_pyramid:cabac:qcomp=0.85:keyint=500:direct_pred=auto:\
> weight_b:partitions=all:8x8dct:me=umh:subq=9:chroma_me:\
> mixed_refs:nodct_decimate:deblock:log=3:psnr:ssim:\
> deadzone_intra=5:deadzone_inter=10:trellis=2:me_range=32 \
> -o cut2test6.avi
>   
I believe in the KISS principle. This works for me with badly telecined 
and mixed format DVD content:

mencoder input.vob -vf 
pullup,softskip,pp=lb,<cropping>,<scaling>,<dsize>,harddup,unsharp=l3x3:0.5 
-ofps 24000/1001 <rest of your crazy stuff here> . I've not come across 
a DVD that was so badly mangled that that simple filter setup didn't fix it.

The two x264 options that have the biggest impact visually, for me, are 
nofast_pskip, and nodct_decimate. You are using an awful lot of x264 
encoding options, but I wonder if you understand if half of them are 
even necessary, when you didn't even do the required dsize option in the 
video filters.





More information about the MEncoder-users mailing list