VideoHelp Forum
+ Reply to Thread
Results 1 to 9 of 9
Thread
  1. Member
    Join Date
    Aug 2018
    Location
    Wrocław
    Search PM
    How to avoid effects like in the screenshot when using QTGMC?

    Right side - QTGMC
    Left side = bwdif

    Script:
    Code:
    QTGMC(preset="slow",TR2=3, Sharpness=1.2, SLMode=1)
    (removing Sharpness and SLMode improves the thing, but I would not like to give up sharpening)

    (full screenshot attached)

    Image Attached Thumbnails Click image for larger version

Name:	compare2-MPEGvsMP4.avs_snapshot_00.01.10.051.png
Views:	40
Size:	603.2 KB
ID:	72313  

    Last edited by rgr; 8th Jul 2023 at 04:55.
    Quote Quote  
  2. Captures & Restoration lollo's Avatar
    Join Date
    Jul 2018
    Location
    Italy
    Search Comp PM
    Use QTGMC as deinterlacer "only", and sharpen later with a dedicated filter (general good approach)
    Quote Quote  
  3. ^^^ This
    Or try an antialias filter like santiag()

    Also take a look at the discussion here:
    https://forum.videohelp.com/threads/404164-Why-is-QTGMC-so-destructive-and-why-do-so-m...l-recommend-it
    Quote Quote  
  4. Member
    Join Date
    Aug 2018
    Location
    Wrocław
    Search PM
    Originally Posted by lollo View Post
    Use QTGMC as deinterlacer "only", and sharpen later with a dedicated filter (general good approach)
    Which would you recommend? ASharp didn't work for me.
    Quote Quote  
  5. Captures & Restoration lollo's Avatar
    Join Date
    Jul 2018
    Location
    Italy
    Search Comp PM
    Which would you recommend? ASharp didn't work for me.
    LSFmod(defaults="slow")

    As alternative, according to the characteristics of your source: SeeSaw() http://avisynth.nl/index.php/SeeSaw, CAS() http://avisynth.nl/index.php/CAS
    Quote Quote  
  6. Member
    Join Date
    Aug 2018
    Location
    Wrocław
    Search PM
    Originally Posted by lollo View Post
    Which would you recommend? ASharp didn't work for me.
    LSFmod(defaults="slow")

    As alternative, according to the characteristics of your source: SeeSaw() http://avisynth.nl/index.php/SeeSaw, CAS() http://avisynth.nl/index.php/CAS
    Thanks. It's a bit weak that LFSmod and SeeSaw only accept YUV420...
    Quote Quote  
  7. Captures & Restoration lollo's Avatar
    Join Date
    Jul 2018
    Location
    Italy
    Search Comp PM
    Originally Posted by rgr View Post
    Originally Posted by lollo View Post
    Which would you recommend? ASharp didn't work for me.
    LSFmod(defaults="slow")

    As alternative, according to the characteristics of your source: SeeSaw() http://avisynth.nl/index.php/SeeSaw, CAS() http://avisynth.nl/index.php/CAS
    Thanks. It's a bit weak that LFSmod and SeeSaw only accept YUV420...
    Yes, the conversion to YV12() is sort of degradation sometime. Didée disappeared long time ago before improving his scripts .

    In any case, if you are deinterlacing your source and you want to sharpen only luma (which happens quite often) is not a big issue, because you can recover the chroma from a step prior to sharpening (and then to YV12() conversion):

    Code:
    # deinterlacing
    deinterlaced=...
    
    ### convert to YV12
    deinterlaced_yv12=deinterlaced.convertToYV12()
    
    ### sharpening
    sharpened_yv12=deinterlaced_yv12.LSFmod(defaults="slow")
    
    ### convert to YUY2 with chroma from YUY2 color space
    sharpened=sharpened_yv12.convertToYUY2().MergeChroma(deinterlaced)
    Last edited by lollo; 22nd Nov 2023 at 11:12. Reason: fixed typo "you want to sharpen only chroma" to "you want to sharpen only luma"
    Quote Quote  
  8. It's a bit weak that LFSmod and SeeSaw only accept YUV420...
    LSFmod works fine with other yuvxxx color spaces, iirc. the restriction to YV12 was only because older masktools2 versions didn't support other color spaces.
    Using:
    Code:
    ClearAutoloadDirs()
    SetFilterMTMode("DEFAULT_MT_MODE", MT_MULTI_INSTANCE)
    LoadPlugin("F:\Hybrid\64bit\Avisynth\avisynthPlugins\LoadDll.dll")
    LoadDLL("F:\Hybrid\64bit\Avisynth\avisynthPlugins\libfftw3f-3.dll")
    LoadPlugin("F:\Hybrid\64bit\Avisynth\avisynthPlugins\LSMASHSource.dll")
    LoadPlugin("F:\Hybrid\64bit\Avisynth\avisynthPlugins\masktools2.dll")
    LoadPlugin("F:\Hybrid\64bit\Avisynth\avisynthPlugins\VariableBlur.dll")
    LoadPlugin("F:\Hybrid\64bit\Avisynth\avisynthPlugins\aWarpSharpMT.dll")
    LoadPlugin("F:\Hybrid\64bit\Avisynth\avisynthPlugins\RgTools.dll")
    Import("F:\Hybrid\64bit\Avisynth\avisynthPlugins\mtmodes.avsi")
    Import("F:\Hybrid\64bit\Avisynth\avisynthPlugins\Zs_RF_Shared.avsi")
    Import("F:\Hybrid\64bit\Avisynth\avisynthPlugins\ExTools.avsi")
    Import("F:\Hybrid\64bit\Avisynth\avisynthPlugins\LSFmod.avsi")
    # loading source: G:\TestClips&Co\files\test.avi
    # color sampling YV12@8, matrix: bt601, scantyp: progressive, luminance scale: limited
    LWLibavVideoSource("G:\TestClips&Co\files\test.avi",cache=false,dr=true,format="YUV420P8", prefer_hw=0)
    ConvertToYUV444()
    # current resolution: 640x352
    LSFmod(edgemaskHQ=true)
    ConvertToYUV422()
    # current resolution: 640x352
    LSFmod(edgemaskHQ=true)
    ConvertToYUV420()
    # current resolution: 640x352
    LSFmod(edgemaskHQ=true)
    # Converting from 8 to 10bit for encoder
    ConvertBits(10)
    # setting output fps to 25.000fps
    AssumeFPS(25,1)
    PreFetch(16)
    #  output: color sampling YV12@10, matrix: bt601, scantyp: progressive, luminance scale: limited
    return last
    (4:2:0, 4:2:2, 4:4:4) works fine here. (script doesn't make any sense, I just wanted to test the color compatibility; I suspect the same might be true for SeeSaw)

    Cu Selur
    Last edited by Selur; 22nd Nov 2023 at 08:40.
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  9. And for seesaw - there are modified versions that accept high bit depth and other subsampling by realfinder and dogway

    https://github.com/realfinder/AVS-Stuff/blob/master/avs%202.5%20and%20up/seesaw.avsi
    https://github.com/Dogway/Avisynth-Scripts/blob/master/MIX%20mods/SharpenersPack.avsi


    Was there motion in adjacent fields ? One scenario where BWDIF excels over other deinterlacers is weaving static content
    Quote Quote  



Similar Threads

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