i can't get mencoder to deinterlace a dvd properly.
here are my mencoder commands
"c:\mencoder\mencoder" P:\VIDEO_TS\VTS_01_1.VOB P:\VIDEO_TS\VTS_01_2.VOB P:\VIDEO_TS\VTS_01_3.VOB P:\VIDEO_TS\VTS_01_4.VOB P:\VIDEO_TS\VTS_01_5.VOB -o "g:\mass1.mkv" -passlogfile "g:\ma.log" -aid 0 -ovc x264 -x264encopts pass=2ubq=6
artitions=all:8x8dct:me=umh:frameref=5:b_pyramid:w eight_b:bitrate=1048 -oac mp3lame -lameopts cbr:br=128 -sws 9 -vf pp=ci,scale=720:480,harddup -mc 0
i'm using pp=ci to deinterlace the video. but there's still interlacing in the final encode. yadif deinterlacing looks the best to me, but I can't seem to set it in mencoder.
it actually seems like deinterlacing doesn't work with mencoder.
i have to resort to Handbrake, using the decomb filter.
I prefer to use Mencoder because it is faster than Handbrake.
can someone help me out with this deinterlacing problem?
+ Reply to Thread
Results 1 to 10 of 10
-
-
Want my help? Ask here! (not via PM!)
FAQs: Best Blank Discs • Best TBCs • Best VCRs for capture • Restore VHS -
I have the same problem. It seems to me the filter specified in -vf is applied only to the last of the input files. I am looking for a workaround now.
-
Are you sure that it's interlaced and not telecined? Telecine can show intermittent comb distortion similar to interlaced video and can confuse a deinterlacing filter handily. What is the frame rate of the DVD source? While not terribly common these days, some older DVDs were hard-telecined which can readily be removed by an inverse telecine filter such as pullup or filmdint.
-
I think it is interlaced, the source files are grabbed from my camcorder.
-
Originally Posted by mehturt
Using mencoder, the best quality deinterlacing filter available is mcdeint, however, it's quite slow. Like several others, though, it doubles the frame rate since it essentially treats the separate fields as separate frames. I don't use it often, but when I do, I typically use something like yadif=3,mcdeint,framestep=2 added into the filter chain. That said, expect it to be slow. The speed is bearable for DVD-quality video on my Core i7 920, but if you're talking about 1080i source material, you'll need to have a lot of time on your hands.
That said, I'm kinda confused about how a cubic interpolation deinterlacing filter could fail to work on material that is truly interlaced. I haven't used it personally, but if you're interpolating every second line using cubics, you'd think it should remove all the comb distortion. Can you confirm that the comb distortion you're seeing is exactly 1 pixel in width and not the result of some other attributes of the subject video? Also, I'm wondering if possibly there's something about the source video that might be introducing some kind of oscillation in the cubic interpolation function that looks like comb distortion in the result. Have you tried using a linear interpolation or a linear blend deinterlacing filter? -
The source file is grabbed from camcorder.
The command line I'm using is:
Code:mencoder input.avi -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=3000:aspect=4/3:threads=2:vpass=1 -vf pp=lb -oac mp3lame -lameopts vbr=3 -o /dev/null mencoder input.avi -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=3000:aspect=4/3:threads=2:vpass=2 -vf pp=lb -oac mp3lame -lameopts vbr=3 -o output.avi
-
Originally Posted by mehturt
What's happen is correct behaviour for mencoder. If you have a filter chain that you want to apply to all input files, then you need to place it on the command line before all input files. If you place a filter chain after an input file, it applies that file only. This allows you to encode or play multiple files but apply different filters to them. I'm assuming that when you have multiple input files, you're placing them all at the start of the command line and the filter chain is specified after. If this is the case, you've told mencoder to only apply the filter to the last file. Normally you would put your input file names at the end of the command line unless you're trying to do something tricky like apply different filters to different input files.
I hope this helps. -
I see. thanks a lot. I have based my command line on the original poster's command line.
Similar Threads
-
mencoder x264 vs libavcodec for h.264 encoding
By chconnor in forum Video ConversionReplies: 0Last Post: 2nd Mar 2011, 15:31 -
x264: 2pass curve failed to converge
By roflwaffle in forum Video ConversionReplies: 9Last Post: 16th Oct 2010, 09:11 -
mencoder x264 issues
By tommiy in forum Video ConversionReplies: 3Last Post: 19th Sep 2010, 02:14 -
Mencoder x264 2-pass in Windows
By blazerqb11 in forum Video ConversionReplies: 0Last Post: 22nd Nov 2008, 08:54 -
ffmpeg mencoder x264
By mrcoolekin in forum Portable VideoReplies: 1Last Post: 16th Jan 2008, 07:49