VideoHelp Forum




+ Reply to Thread
Results 1 to 12 of 12
  1. Hello how can I deinterlace this video encoded in progressive 30fps originally 25fps
    Image Attached Files
    Quote Quote  
  2. Decimate first, then deinterlace.

    Code:
    LWLibavVideoSource("pv.mkv") 
    AssumeTFF()
    TDecimate(Cycle=6, CycleR=1)
    QTGMC()
    Quote Quote  
  3. thanks for helps here is the result I don't think we can improve it further
    Image Attached Files
    Quote Quote  
  4. This is what you get if you apply QTGMC and then BasicVSR++,.... but applying BasicVSR++ doesn't really make sense on such resolutions unless you got a decent NVIDA graphics card. On my old Geforce GTX 1070ti, I get 0.1-0.2 fps, and the result seems a bit too smooth.
    Image Attached Files
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  
  5. Originally Posted by Selur View Post
    This is what you get if you apply QTGMC and then BasicVSR++,.... but applying BasicVSR++ doesn't really make sense on such resolutions unless you got a decent NVIDA graphics card. On my old Geforce GTX 1070ti, I get 0.1-0.2 fps, and the result seems a bit too smooth.
    my gpu 3060ti
    Quote Quote  
  6. Not sure whether it's of any help, this is the Vapoursynth script I used:
    Code:
    # Imports
    import os
    import sys
    import ctypes
    # Loading Support Files
    Dllref = ctypes.windll.LoadLibrary("i:/Hybrid/64bit/vsfilters/Support/libfftw3f-3.dll")
    import vapoursynth as vs
    # getting Vapoursynth core
    core = vs.core
    # Import scripts folder
    scriptPath = 'i:/Hybrid/64bit/vsscripts'
    sys.path.insert(0, os.path.abspath(scriptPath))
    # Loading Plugins
    core.std.LoadPlugin(path="i:/Hybrid/64bit/vsfilters/GrainFilter/RemoveGrain/RemoveGrainVS.dll")
    core.std.LoadPlugin(path="i:/Hybrid/64bit/vsfilters/GrainFilter/AddGrain/AddGrain.dll")
    core.std.LoadPlugin(path="i:/Hybrid/64bit/vsfilters/DenoiseFilter/NEO_FFT3DFilter/neo-fft3d.dll")
    core.std.LoadPlugin(path="i:/Hybrid/64bit/vsfilters/DenoiseFilter/DFTTest/DFTTest.dll")
    core.std.LoadPlugin(path="i:/Hybrid/64bit/vsfilters/Support/EEDI3m.dll")
    core.std.LoadPlugin(path="i:/Hybrid/64bit/vsfilters/ResizeFilter/nnedi3/NNEDI3CL.dll")
    core.std.LoadPlugin(path="i:/Hybrid/64bit/vsfilters/Support/libmvtools.dll")
    core.std.LoadPlugin(path="i:/Hybrid/64bit/vsfilters/Support/temporalsoften.dll")
    core.std.LoadPlugin(path="i:/Hybrid/64bit/vsfilters/Support/scenechange.dll")
    core.std.LoadPlugin(path="i:/Hybrid/64bit/vsfilters/Support/fmtconv.dll")
    core.std.LoadPlugin(path="i:/Hybrid/64bit/vsfilters/MiscFilter/MiscFilters/MiscFilters.dll")
    core.std.LoadPlugin(path="i:/Hybrid/64bit/vsfilters/SourceFilter/LSmashSource/vslsmashsource.dll")
    # Import scripts
    import havsfunc
    # source: 'C:\Users\Selur\Desktop\pv.mkv'
    # current color space: YUV420P8, bit depth: 8, resolution: 1920x1080, fps: 30, color matrix: 709, yuv luminance scale: limited, scanorder: top field first
    # Loading C:\Users\Selur\Desktop\pv.mkv using LWLibavSource
    clip = core.lsmas.LWLibavSource(source="C:/Users/Selur/Desktop/pv.mkv", format="YUV420P8", cache=0, prefer_hw=0)
    # Setting color matrix to 709.
    clip = core.std.SetFrameProps(clip, _Matrix=1)
    clip = clip if not core.text.FrameProps(clip,'_Transfer') else core.std.SetFrameProps(clip, _Transfer=1)
    clip = clip if not core.text.FrameProps(clip,'_Primaries') else core.std.SetFrameProps(clip, _Primaries=1)
    # Setting color range to TV (limited) range.
    clip = core.std.SetFrameProp(clip=clip, prop="_ColorRange", intval=1)
    # making sure frame rate is set to 30
    clip = core.std.AssumeFPS(clip=clip, fpsnum=30, fpsden=1)
    # setting field order to what QTGMC should assume (top field first)
    clip = core.std.SetFrameProp(clip=clip, prop="_FieldBased", intval=2)
    # Deinterlacing using QTGMC
    clip = havsfunc.QTGMC(Input=clip, Preset="Fast", TFF=True, opencl=True) # new fps: 30
    # make sure content is preceived as frame based
    clip = core.std.SetFieldBased(clip, 0)
    clip = clip[::2]
    # adjusting color space from YUV420P8 to RGBS for vsBasicVSRPPFilter
    clip = core.resize.Bicubic(clip=clip, format=vs.RGBS, matrix_in_s="709", range_s="limited")
    # Quality enhancement using BasicVSR++
    from vsbasicvsrpp import BasicVSRPP
    clip = BasicVSRPP(clip=clip, model=3, tile_x=480, tile_y=540, fp16=True)
    # adjusting output color from: RGBS to YUV420P8 for x264Model
    clip = core.resize.Bicubic(clip=clip, format=vs.YUV420P8, matrix_s="709", range_s="limited")
    # set output frame rate to 30.000fps
    clip = core.std.AssumeFPS(clip=clip, fpsnum=30, fpsden=1)
    # Output
    clip.set_output()
    Cu Selur
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  
  7. Another approach would be to apply MCTemporalDenoise(settings="very high) + mClean after QTGMC.
    Image Attached Files
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  
  8. possible to have the same thing via avisynth ?
    Quote Quote  
  9. Yes, all the scripts I used for MCTemporalDenoise+mClean.mp4 are available for Avisynth:
    MCTemporalDenoise: http://avisynth.nl/index.php/MCTemporalDenoise
    mClean: https://forum.doom9.org/showthread.php?t=174804
    QTGMC: http://avisynth.nl/index.php/QTGMC
    so I see no reason why this can't be done with Avisynth.
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  
  10. yes possible via staxrip except that I need the parameters for QTGMC
    Quote Quote  
  11. I used:
    Code:
    clip = havsfunc.QTGMC(Input=clip, Preset="Fast", TFF=True, opencl=True) # new fps: 30
    # make sure content is preceived as frame based
    clip = core.std.SetFieldBased(clip, 0)
    clip = clip[::2]
    ->
    Code:
    AssumeTFF()
    QTGMC(Preset="Fast", ediThreads=2)
    SelectEven()
    you could also try the calls jagabo mentioned first and then just add MCTemporalDenoise and mClean.

    Cu Selur
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  
  12. Originally Posted by Selur View Post
    I used:
    Code:
    clip = havsfunc.QTGMC(Input=clip, Preset="Fast", TFF=True, opencl=True) # new fps: 30
    # make sure content is preceived as frame based
    clip = core.std.SetFieldBased(clip, 0)
    clip = clip[::2]
    ->
    Code:
    AssumeTFF()
    QTGMC(Preset="Fast", ediThreads=2)
    SelectEven()
    you could also try the calls jagabo mentioned first and then just add MCTemporalDenoise and mClean.

    Cu Selur
    ok i will test
    Quote Quote  



Similar Threads

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