This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

[HELP] 25i to 29.97i with interpolation
#55
I guess I need to change another setting? I tried changing Colour Matrix to 709, but that did not help.

Preview error:

Failed to evaluate the script: Python exception: Super: input clip must be GRAY, 420, 422, 440, or 444, up to 16 bits, with constant dimensions. Traceback (most recent call last): File "src\cython\vapoursynth.pyx", line 2890, in vapoursynth._vpy_evaluate File "src\cython\vapoursynth.pyx", line 2891, in vapoursynth._vpy_evaluate File "M:\Twemlow to Upscale\Twemlow-TEMP30\tempPreviewVapoursynthFile10_57_27_806.vpy", line 46, in clip = havsfunc.QTGMC(Input=clip, Preset="Fast", Lossless=2, TFF=False) # new fps: 59.94 File "C:\Program Files\Hybrid\64bit\vsscripts\havsfunc.py", line 1786, in QTGMC srchSuper = srchClip.mv.Super(sharp=SubPelInterp, chroma=ChromaMotion, **super_args) File "src\cython\vapoursynth.pyx", line 2636, in vapoursynth.Function.__call__ vapoursynth.Error: Super: input clip must be GRAY, 420, 422, 440, or 444, up to 16 bits, with constant dimensions.


Script:

# Imports import vapoursynth as vs import os import ctypes # Loading Support Files Dllref = ctypes.windll.LoadLibrary("C:/Program Files/Hybrid/64bit/vsfilters/Support/libfftw3f-3.dll") import sys # getting Vapoursynth core core = vs.core # Import scripts folder scriptPath = 'C:/Program Files/Hybrid/64bit/vsscripts' sys.path.insert(0, os.path.abspath(scriptPath)) # Loading Plugins core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/DenoiseFilter/CTMF/CTMF.dll") core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/DenoiseFilter/HQDN3D/libhqdn3d.dll") core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/MiscFilter/MiscFilters/MiscFilters.dll") core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/EEDI3m.dll") core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/GrainFilter/RemoveGrain/RemoveGrainVS.dll") 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/NEO_FFT3DFilter/neo-fft3d.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/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/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/LSmashSource/vslsmashsource.dll") # Import scripts import edi_rpow2 import G41Fun import mvsfunc import havsfunc # source: 'M:\Twemlow to Upscale\SVHS-DMR\EyeOfSatan-UsaVHS-29.97-capture.mov' # current color space: YUV411P8, bit depth: 8, resolution: 720x480, fps: 29.97, color matrix: 470bg, yuv luminance scale: limited, scanorder: bottom field first # Loading M:\Twemlow to Upscale\SVHS-DMR\EyeOfSatan-UsaVHS-29.97-capture.mov using LibavSMASHSource clip = core.lsmas.LibavSMASHSource(source="M:/Twemlow to Upscale/SVHS-DMR/EyeOfSatan-UsaVHS-29.97-capture.mov") # Setting color matrix to 470bg. clip = core.std.SetFrameProps(clip, _Matrix=5) clip = clip if not core.text.FrameProps(clip,'_Transfer') else core.std.SetFrameProps(clip, _Transfer=5) clip = clip if not core.text.FrameProps(clip,'_Primaries') else core.std.SetFrameProps(clip, _Primaries=5) # Setting color range to TV (limited) range. clip = core.std.SetFrameProp(clip=clip, prop="_ColorRange", intval=1) # making sure frame rate is set to 29.970 clip = core.std.AssumeFPS(clip=clip, fpsnum=30000, fpsden=1001) # converting interlaced to half-height progressive for filtering (vsMLDegrain) (QTGMC(preset="Fast")) clip = havsfunc.QTGMC(Input=clip, Preset="Fast", Lossless=2, TFF=False) # new fps: 59.94 clip = core.std.SetFrameProp(clip=clip, prop="_FieldBased", intval=0) # removing grain using MLDegrain clip = G41Fun.MLDegrain(clip=clip, tr=1, soft=[0,0,0]) # denoising using HQDN3D clip = core.hqdn3d.Hqdn3d(clip=clip, lum_spac=0.00, chrom_spac=7.00, chrom_tmp=10.50) # deringing using HQDeringmod clip = havsfunc.HQDeringmod(clip, nrmode=2, darkthr=3.0) # resizing using ZNEDI3 # current: 720x480 target: 1440x1080 -> pow: 4 clip = edi_rpow2.nnedi3_rpow2(clip=clip, rfactor=4) # 2880x1920 # adjusting resizing clip = core.fmtc.resample(clip=clip, w=1440, h=1080, kernel="lanczos", interlaced=False, interlacedd=False) # converting progressive to interlaced for 'progressive to interlaced (1)' clip = core.std.SeparateFields(clip=clip, tff=False) clip = core.std.SelectEvery(clip=clip, cycle=4, offsets=[0, 3]) clip = core.std.DoubleWeave(clip=clip, tff=False) # resolution 1440x1080 clip = core.std.SelectEvery(clip=clip, cycle=2, offsets=0) # new fps: 29.97 clip = core.std.SetFrameProp(clip=clip, prop="_FieldBased", intval=1) # adjusting output color from: YUV420P16 to YUV422P10 for ProResModel clip = core.resize.Bicubic(clip=clip, format=vs.YUV422P10, range_s="limited", dither_type="error_diffusion") # set output frame rate to 29.97fps clip = core.std.AssumeFPS(clip=clip, fpsnum=30000, fpsden=1001) # Output clip.set_output()



OK, I just selected -> Vapoursynth -> Filtering -> Misc -> Convert to Target Colour Space After Filtering and it now runs the script.
Reply


Messages In This Thread
25i to 29.97i with interpolation - by Miranda - 26.06.2022, 14:51
RE: 25i to 29.97i with interpolation - by Miranda - 19.07.2022, 10:02
RE: 25i to 29.97i with interpolation - by n4n - 27.07.2022, 21:41

Forum Jump:


Users browsing this thread: 1 Guest(s)