Posts: 329
Threads: 107
Joined: May 2017
When I use Avisynth QTGMC deinterlacer I observe this defect.
When I use Vapoursynth QTGMC deinterlacer with similar settings - no defect.
Source
Target
Posts: 10.939
Threads: 56
Joined: May 2017
Avisynh script used:
SetMemoryMax(768)
SetMTMode(5,4) # changing MT mode
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\LoadDll.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\AddGrainC.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\dfttest.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\EEDI2.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\eedi3.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\FFT3DFilter.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\masktools2.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\mvtools2.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\nnedi.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\nnedi2.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\SSE2Tools.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\TDeint.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\VerticalCleanerSSE2.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\PlanarTools.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\nnedi3.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\RgTools.dll")
LoadCPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\yadif.dll")
LoadDll("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\fftw3.dll")
LoadDll("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\LIBFFT~1.DLL")
Import("C:\Program Files\Hybrid\32bit\avisynthPlugins\QTGMC.avsi")
Import("C:\Program Files\Hybrid\32bit\avisynthPlugins\SMDegrain.avsi")
Import("C:\Program Files\Hybrid\32bit\avisynthPlugins\AnimeIVTC.avsi")
LoadCPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\ffms2.dll")
# loading source: H:\MTV Millennial Awards (MIAW) 2017\Iggy Azalea_-_Mo Bounce_-_Switch [MTV Millennial Awards (MIAW) 2017].ts
# input luminance scale tv
FFVideoSource("H:\MTV Millennial Awards (MIAW) 2017\Iggy Azalea_-_Mo Bounce_-_Switch [MTV Millennial Awards (MIAW) 2017].ts",cachefile="E:\Temp\ts_55839929cdb8885a73fbb175d7d5883d_41_1_0.ffindex",fpsnum=25)
# deinterlacing
SetMTMode(2) # changing MT mode
AssumeTFF()
QTGMC(Preset="Slow", InputType=0, TR2=1, Sharpness=0.2, SourceMatch=2, Lossless=1, ediThreads=2, FPSDivisor=2)
# filtering
return last
No clue what Vapoursynth script you used, my guess is that this isn't a bug in QTGMC, but a problem with the source filter.
Cu Selur
Posts: 329
Threads: 107
Joined: May 2017
Quote:but a problem with the source filter.
Can this be fixed?
Vapoustnth script
Quote:# Imports
import os
import sys
import ctypes
Dllref = ctypes.windll.LoadLibrary("C:/Program Files/Hybrid/64bit/vsfilters/Support/libfftw3f-3.dll")
# Loading Support Files
Dllref = ctypes.windll.LoadLibrary("C:/Program Files/Hybrid/64bit/vsfilters/Support/OpenCL.dll")
import vapoursynth as vs
core = vs.get_core()
# Import scripts folder
scriptPath = 'C:/Program Files/Hybrid/64bit/vsscripts'
sys.path.append(os.path.abspath(scriptPath))
# Loading Plugins
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/GrainFilter/AddGrain/AddGrain.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/DenoiseFilter/FFT3DFilter/fft3dfilter.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/DenoiseFilter/DFTTest/DFTTest.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/DenoiseFilter/KNLMeansCL/KNLMeansCL.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/EEDI3.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/ResizeFilter/nnedi3/vsznedi3.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/libmvtools.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/temporalsoften.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/scenechange.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/fmtconv.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/SourceFilter/d2vSource/libd2vsource.dll")
# Import scripts
import havsfunc
# Loading H:\MTV Millennial Awards (MIAW) 2017\Iggy Azalea_-_Mo Bounce_-_Switch [MTV Millennial Awards (MIAW) 2017].ts using D2VSource
clip = core.d2v.Source(input="E:/Temp/ts_55839929cdb8885a73fbb175d7d5883d_41.d2v", rff=False)
# making sure input color matrix is set as 709
clip = core.resize.Point(clip, matrix_in_s="709")
# making sure frame rate is set to 25
clip = core.std.AssumeFPS(clip, fpsnum=25, fpsden=1)
# Making sure input color range is set to TV (limited) range.
clip = core.std.SetFrameProp(clip=clip, prop="_ColorRange", intval=1)
# setting field order to what QTGMC should assume
clip = core.std.SetFrameProp(clip=clip, prop="_FieldBased", intval=2)
# Deinterlacing using QTGMC
clip = havsfunc.QTGMC(Input=clip, Preset="Slower", TFF=True, InputType=0, TR2=1, Sharpness=0.2, SourceMatch=2, Lossless=1, opencl=False)
clip = clip[::2]
# Output
clip.set_output()
Posts: 10.939
Threads: 56
Joined: May 2017
Since the used source filter used in Vapoursynth isn't available for Avisynth, your only bet is to try the other filters available, like
a. lwlibavvideosource
b. FFMS2000
b. FRIM
c. DGDecNV (<- requires a license which isn't free and an NVIDIA card)
Cu Selur
Posts: 329
Threads: 107
Joined: May 2017
Quote:your only bet is to try the other filters available
I try lwlibavvideosource - no this defect
Posts: 10.939
Threads: 56
Joined: May 2017
Happy that worked out.
If you find a way to identify files which have this problem through mediainfo&co I would happily add a workaround for it.
But without a way to identify such files, there isn't anything I can do.
Cu Selur