VideoHelp Forum




+ Reply to Thread
Results 1 to 4 of 4
  1. Member FTW's Avatar
    Join Date
    Sep 2009
    Location
    North America
    Search Comp PM
    I have a hauppauge PVR 1212 that I've been using to capture HD content and using MeGUI to reencode..have been playing around with different deinterlacing filters lately just trying to get and sharpest picture possible. I know I'll never get 1080p/BR quality but I've been getting some pretty clean results thus far. Was curious if anyone might have suggestions for me as I'm by no means a pro when it comes to avisynth filters but I've done a little bit of homework...here's some deinterlace filters and scripts I've been using lately...
    I've been using AvsP to preview the scripts prior to encoding with MeGUI and these are the two deinterlacing filters I like the best so far...

    *I know that the content I'm capturing will determine which deinterlacing filter to use...primarily I capture MMA fights: UFC, Bellator, WEC. So I'll always be at the mercy of the quality available from the ringside cameras...

    Deinterlace filter: MCBob
    Script: (much thanks to C.T.!!)
    loadplugin("B:\MeGUI_0.3.5_x86_WithoutInstaller_Of flinePackage\tools\avisynth_plugin\RepairSSE2.dll\ ")
    loadplugin("B:\MeGUI_0.3.5_x86_WithoutInstaller_Of flinePackage\tools\avisynth_plugin\mvtools.dll\")
    loadplugin("B:\MeGUI_0.3.5_x86_WithoutInstaller_Of flinePackage\tools\avisynth_plugin\medianblur.dll\ ")
    loadplugin("B:\MeGUI_0.3.5_x86_WithoutInstaller_Of flinePackage\tools\avisynth_plugin\nnedi.dll\")
    loadplugin("B:\MeGUI_0.3.5_x86_WithoutInstaller_Of flinePackage\tools\avisynth_plugin\mt_masktools-25.dll\")
    import("B:\MeGUI_0.3.5_x86_WithoutInstaller_Offlin ePackage\tools\avisynth_plugin\mcbob.avs\")
    DirectShowSource("F:\Recorded HDTV\UFC on Versus2\UFC on Versus2.mkv\")
    ConvertToYV12(interlaced=true)
    AssumeTFF()
    LSFMod(Strength=310 , Smode=4)
    crop( 6, 6, -6, -6)

    LanczosResize(1280,720) # Lanczos (Sharp)
    Trim(16440,20398)
    #denoise
    ...this is a script I modified from this one...
    loadplugin("C:\Program Files\AviSynth 2.5\plugins\RepairSSE2.dll")
    loadplugin("C:\Program Files\AviSynth 2.5\plugins\mvtools.dll")
    loadplugin("C:\Program Files\AviSynth 2.5\plugins\medianblur.dll")
    loadplugin("C:\Program Files\AviSynth 2.5\plugins\RemoveGrainSSE2.dll")
    loadplugin("C:\Program Files\AviSynth 2.5\plugins\nnedi.dll")
    loadplugin("C:\Program Files\AviSynth 2.5\plugins\mt_masktools-25.dll")
    import("C:\Program Files\AviSynth 2.5\plugins\mcbob.avs")
    AviSource("C:\Documents and Settings\Me\Desktop\capture.avi")
    ConvertToYV12(interlaced=true)
    AssumeTFF()
    MCBob().SelectEven()
    ...I kept getting an error on Line 11 - the "MCBob().SelectEven()" command in AvsP. I found that if I just removed the line I still got good results. Prolly a noob move to do but it worked plus just removing the "MCBob()" and leaving "SelectEven()" command sped up the encode alot (LOL!!) while leaving "SelectEven()" in the script made no difference as far as I could tell. Also got an error with the "RemoveGrain" filter, so I removed that too and since the filter still worked


    Deinterlace filter: Decomb
    Script: (much thanks to reepa!!)
    DirectShowSource("F:\Recorded HDTV\UFC on Versus2\UFC on Versus2.mkv")
    LoadPlugin("B:\MeGUI_0.3.5_x86_WithoutInstaller_Of flinePackage\tools\avisynth_plugin\Decomb.dll")
    #AssumeTFF().FieldDeinterlace()
    FieldDeinterlace()
    crop( 6, 6, -6, -6)

    Spline64Resize(960,540) # Spline64 (Sharp)
    #denoise
    LSFMod(Strength=400 , Smode=4)
    Trim(176027,199944)
    ...at the suggestion of a forum (this is how much I suck, I have to steal scripts from other people lol) post I gave this filter a try while reducing the framesize by half both ways (height + width). This is the cleanest I've been able to get my captures, not sure if that's due to the filter itself or cuz I'm droping down to a smaller framesize (1920x1080 -> 960x540 vs 1280x720), and I didn't see all that much of a different between a LSFMod strength of 310 and 400. I couldn't tell any different between "AssumeTFF().Field Deinterlace()" and simply "FieldDeinterlace()" so that's why it's in there...was playing around with both versions in AvsP. I also tried a new resize filter in this one...I'll also run a script soon combining Decomb + Lanczos.

    I read on a website (now outdated) on the different techniques deinterlacing filters employ (100fps.com). From what was explained there, it looks like Bob+Weave would be a good deinterlacing method to use...I've tried Bob by itself and felt it kind of softened the picture up. I tried looking for a Bob+Weave filter but wasn't able to locate one. Unless there are some options in the Bob filter I should have been using and wasn't...anyone care to point me in the right direction? Thanks in advance!!


    Now...I once tried a script that would take an interlaced DVD source (VOB) and create a 60fps h264 vid...albeit "false 60fps" but it did clean up the motion
    Script:
    MPEG2Source("encode.d2v",cpu=0)
    AssumeTFF()
    yadifmod(mode=1, edeint=nnedi2(field=-2))
    Crop(0,0,-0,-0)
    Of course the "Crop" command would have to be modified. Just to say I tried it on my 1080i captures I ran an encode with this script and it didn't work...does anyone know of a script that would work on 1080i/29.970fps content in this fashion? The reason I bring this up is cuz this script in this thread is it doesn't require a deinterlacing filter to give me a progressive videofile. This would be sweet as I'd be able to keep my 1920x1080 framesize if I so desired and retain quality...or, as much quality as I can get with component cables
    Last edited by FTW; 20th Aug 2010 at 12:51. Reason: addition of info
    Quote Quote  
  2. to say I tried it on my 1080i captures I ran an encode with this script and it didn't work
    It depends on what content you have. The script would change if it was Top field first, vs. Bottom field first for example. You can't just use the same script you got from somewhere and use it (unless that other source had exactly the same charateristics or the exact same video and version of that video)

    If you want to learn a procedure to determining if it's progressive, or telecined, or interlaced (these are the basic formats you will encounter) look here:
    http://neuron2.net/faq.html#analysis


    ...I kept getting an error on Line 11 - the "MCBob().SelectEven()" command in AvsP. I found that if I just removed the line I still got good results.
    when you remove the line, you're not even deinterlacing . If you still got "good" results, your source might not even be interlaced!

    MCBob() is an external function , you need to download the .avsi and put it in your avisynth\plugins folder for it to autoload. It also requires pre-requisite filters
    http://forum.doom9.org/showthread.php?t=124676

    TempGaussMC_Beta2 is another good deinterlacer. Note the high quality deinterlacers are very slow to process (trade off between speed and quality)
    http://avisynth.org/mediawiki/TempGaussMC

    MPEG2Source("encode.d2v",cpu=0)
    If you were capturing AVC, then your source filter MPEG2Source() won't work, that's for MPEG2 sources. Try DirectShowSource()
    Quote Quote  
  3. Member FTW's Avatar
    Join Date
    Sep 2009
    Location
    North America
    Search Comp PM
    Originally Posted by poisondeathray View Post
    ...I kept getting an error on Line 11 - the "MCBob().SelectEven()" command in AvsP. I found that if I just removed the line I still got good results.
    when you remove the line, you're not even deinterlacing . If you still got "good" results, your source might not even be interlaced!
    true. I understand that I could have either a fully interlaced, partially interlaced, etc. But at least for the captures that I've been doing with the Hauppauge it seems pretty consistant to get the mouse teeth during all motion in the captures when when I view the source file with MediaInfo it will state the video was interlaced. So I'm not actually interlacing...am I just getting rid of the bottom field with the "AssumeTFF()" in the script and "simulating" deinterlacing? I recently ran an encode with the first script I mentioned and the resulting video was progressive... the same would be acheived if I simply ran the command "SeparateFields().SelectEven()" and then just resized the frame in half from 1920x1080 -> 960x540, right?

    MCBob() is an external function , you need to download the .avsi and put it in your avisynth\plugins folder for it to autoload. It also requires pre-requisite filters
    http://forum.doom9.org/showthread.php?t=124676
    I'll double check that I have everything I need...but I did run an encode with the "MCBob().SelectEven()" command in there once...encode ran at something like 0.7fps on my i7 860 lmao. Sounds about right, correct? lol I read that MCBob was slow but damn...

    TempGaussMC_Beta2 is another good deinterlacer. Note the high quality deinterlacers are very slow to process (trade off between speed and quality)
    http://avisynth.org/mediawiki/TempGaussMC
    Just ran a test script in AvsP and it does look nice...have yet to run an actual encode tho. Thanks for the heads up!!

    MPEG2Source("encode.d2v",cpu=0)
    If you were capturing AVC, then your source filter MPEG2Source() won't work, that's for MPEG2 sources. Try DirectShowSource()
    doh!! my bad, I had to go online and find that script from where I origianlly got it and I didn't modify it. Originally, I did modify the source filter but I didn't have any of those scripts I modified laying around on my hdd.
    Now that I think about it, when I said it didn't work I didn't specify how...it's not that I wasn't able to load the script of I got an error while encoding...it didn't work in the sense that I didn't get a video file that seemed to run at 60fps. Mediainfo states a 59.940 framerate and MPCHC lists the framerate at 60 while playing but in KMPlayer the video seems to run at half speed and with MPCHC the video appears to run at normal speed...the smoothness with which the video runs when working with a DVD source just isn't there. but no worries, I don't really care if this 60fps script doesn't work...
    Quote Quote  
  4. Film sources recorded with the HD PVR can be restored to 23.976 fps progressive frames with:

    WhateverSource()
    TFM()
    TDecimate()

    About the only things that arn't film sources are news and sports.
    Last edited by jagabo; 20th Aug 2010 at 20:02.
    Quote Quote  



Similar Threads

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