VideoHelp Forum




+ Reply to Thread
Results 1 to 10 of 10
  1. Member
    Join Date
    Apr 2009
    Location
    United States
    Search Comp PM
    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=6artitions=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?
    Quote Quote  
  2. Video Restorer lordsmurf's Avatar
    Join Date
    Jun 2003
    Location
    dFAQ.us/lordsmurf
    Search Comp PM
    Can you use SUPER with mencoder as the encoder?
    Want my help? Ask here! (not via PM!)
    FAQs: Best Blank DiscsBest TBCsBest VCRs for captureRestore VHS
    Quote Quote  
  3. Member
    Join Date
    Apr 2009
    Location
    United States
    Search Comp PM
    SUPER sucks.

    i can't set 2pass encoding. i can't adjust the encoding options.

    command line lets me see everything going on behind the encode, and lets me pass custom very high quality commands to the encoder, like the one i posted in the first post
    Quote Quote  
  4. Member
    Join Date
    Jan 2010
    Location
    Slovakia
    Search Comp PM
    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.
    Quote Quote  
  5. 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.
    Quote Quote  
  6. Member
    Join Date
    Jan 2010
    Location
    Slovakia
    Search Comp PM
    I think it is interlaced, the source files are grabbed from my camcorder.
    Quote Quote  
  7. Originally Posted by mehturt
    I think it is interlaced, the source files are grabbed from my camcorder.
    I'm assuming that the source VOB file is the raw source material directly from some kind of DVD-R camcorder, then?

    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?
    Quote Quote  
  8. Member
    Join Date
    Jan 2010
    Location
    Slovakia
    Search Comp PM
    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
    It seems when there is just one input file (input.avi), the file is converted and deinterlaced properly. If there are multiple files, the resulting output file is not deinterlaced, but it seems the part of output file created from the last input file is deinterlaced. This might be a bug in mencoder(?).
    Quote Quote  
  9. Originally Posted by mehturt
    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
    It seems when there is just one input file (input.avi), the file is converted and deinterlaced properly. If there are multiple files, the resulting output file is not deinterlaced, but it seems the part of output file created from the last input file is deinterlaced. This might be a bug in mencoder(?).
    Now I see your problem. For future reference, debugging mencoder problems is a lot easier if you give the full story and the command line - in particular the command line that's not working as you expect. In this case, that would have been a command line which includes multiple input files.

    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.
    Quote Quote  
  10. Member
    Join Date
    Jan 2010
    Location
    Slovakia
    Search Comp PM
    I see. thanks a lot. I have based my command line on the original poster's command line.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!