Selur's Little Message Board

Full Version: 25i to 29.97i with interpolation
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14
I am trying to convert another file, this time it is 25fps DV capture from VHS, bottom field first. Here are the reports.

Preview error:

Code:
2022-07-07 20:40:42.405 Failed to evaluate the script: Python exception: ChangeFPS() got an unexpected keyword argument 'target_fps_num' 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\tempPreviewVapoursynthFile20_40_36_994.vpy", line 65, in original = havsfunc.ChangeFPS(clip=original,target_fps_num=30000,target_fps_den=1001) TypeError: ChangeFPS() got an unexpected keyword argument 'target_fps_num'

DeBug:

Code:
2022.07.07 - 20:40:29_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: player finished,... 2022.07.07 - 20:40:29_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: setting updatingScript to: false 2022.07.07 - 20:40:29_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: kill process,... 2022.07.07 - 20:40:29_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9:  VapoursynthPreview disable show(3),.. 2022.07.07 - 20:40:29_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9:  VapoursynthPreview disable updating(3),.. 2022.07.07 - 20:40:36_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: generating vapoursynth script for preview,.. 2022.07.07 - 20:40:36_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: generateScript - dual: 1, crop: 0, preview: 0, script: 0, job: 0 2022.07.07 - 20:40:36_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: There's no timecode in mov_aada267769e1af4c3846354ab2007b03_853323747 2022.07.07 - 20:40:36_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: There's no Profile in mov_aada267769e1af4c3846354ab2007b03_853323747 2022.07.07 - 20:40:36_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: target bit depth from filtering model: 10 2022.07.07 - 20:40:36_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: getColorSampling for 4:2:0 YUV at 8bit 2022.07.07 - 20:40:36_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9:  -> input&current colorSampling: YUV420P8 2022.07.07 - 20:40:36_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: Luminance scale: tv -> yuvPCScale: false 2022.07.07 - 20:40:36_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: There's no Codec in mov_aada267769e1af4c3846354ab2007b03_853323747 2022.07.07 - 20:40:36_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: getColorSampling for i422 i422 at 10bit 2022.07.07 - 20:40:36_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9:  -> input&current colorSampling: YUV422P10 2022.07.07 - 20:40:36_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: target color: YUV422P10 2022.07.07 - 20:40:36_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: There's no typ in mov_aada267769e1af4c3846354ab2007b03_853323747 2022.07.07 - 20:40:36_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9:  vc1: false 2022.07.07 - 20:40:36_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: Disabling DGDevNV incompatible format: DV 2022.07.07 - 20:40:36_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: dgDecNVCompatible: false 2022.07.07 - 20:40:36_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: vsDGDecNVAvailable: true 2022.07.07 - 20:40:36_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: vsUseDGDecNV: false 2022.07.07 - 20:40:36_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: Disabling DGDec incompatible input container! 2022.07.07 - 20:40:36_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: Vapoursynth tryLSMASHSource for: M:\Twemlow to Upscale\SVHS-DMR\GBH-Liverpool-SVHS-DMR.mov 2022.07.07 - 20:40:36_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9:  vsPreferLSMASH: true 2022.07.07 - 20:40:36_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9:  mp4Compatible: true 2022.07.07 - 20:40:36_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9:  forcing CFR output: true 2022.07.07 - 20:40:36_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: -> using LibAvSource 2022.07.07 - 20:40:36_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9:  getStartAndEnd(cutStartTime: 0, cutEndTime: 0, selectionStartTime: 0, selectionEndTime: 0, ...) 2022.07.07 - 20:40:36_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9:  startTime: 0.00000000 2022.07.07 - 20:40:36_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9:  endTime: 0.00000000 2022.07.07 - 20:40:36_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9:  -> startTime: 0, endTime: 0 2022.07.07 - 20:40:36_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9:  matchesChapter: true 2022.07.07 - 20:40:36_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: no Vapoursynth deinterlacer,.. 2022.07.07 - 20:40:36_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: no Vapoursynth deinterlacer,.. 2022.07.07 - 20:40:36_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: Interframe::call(59.94,50) 2022.07.07 - 20:40:36_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: There's no timecode in mov_aada267769e1af4c3846354ab2007b03_853323747 2022.07.07 - 20:40:36_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: using 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/FrameFilter/Interframe/svpflow2_vs64.dll") core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/FrameFilter/Interframe/svpflow1_vs64.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 havsfunc # source: 'M:\Twemlow to Upscale\SVHS-DMR\GBH-Liverpool-SVHS-DMR.mov' # current color space: YUV420P8, bit depth: 8, resolution: 720x576, fps: 25, color matrix: 470bg, yuv luminance scale: limited, scanorder: bottom field first # Loading M:\Twemlow to Upscale\SVHS-DMR\GBH-Liverpool-SVHS-DMR.mov using LWLibavSource clip = core.lsmas.LWLibavSource(source="M:/Twemlow to Upscale/SVHS-DMR/GBH-Liverpool-SVHS-DMR.mov", format="YUV420P8", cache=0, fpsnum=25, prefer_hw=0) # 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 25 clip = core.std.AssumeFPS(clip=clip, fpsnum=25, fpsden=1) original = clip # converting interlaced to half-height progressive for filtering (Interframe) (QTGMC(preset="Fast")) clip = havsfunc.QTGMC(Input=clip, Preset="Fast", Lossless=2, TFF=False) # new fps: 50 clip = core.std.SetFrameProp(clip=clip, prop="_FieldBased", intval=0) # adjusting frame count with Interframe/SVP clip = havsfunc.InterFrame(clip, Tuning="smooth", NewNum=60000, NewDen=1001) # new fps: 59.94 # adjusting frame count by adding duplicate frames original = havsfunc.ChangeFPS(clip=original,fpsnum=60000,fpsden=1001) # Resizing using 10 - bicubic spline clip = core.fmtc.resample(clip=clip, kernel="spline16", w=720, h=540, interlaced=False, interlacedd=False) # resolution 720x540 original = core.resize.Bicubic(clip=original, width=720, height=540) # dualVar: original # dualVar m_scanorder: bottom field first # dualVar fps: 59.94 # variable: clip # variable m_scanorder: progressive # variable fps: 59.94 # frameInterpol.needed: true # 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 720x540 clip = core.std.SelectEvery(clip=clip, cycle=2, offsets=0) # new fps: 29.97 clip = core.std.SetFrameProp(clip=clip, prop="_FieldBased", intval=1) original = havsfunc.ChangeFPS(clip=original,target_fps_num=30000,target_fps_den=1001) # adjusting output color from: YUV420P8 to YUV422P10 for ProResModel original = core.resize.Bicubic(clip=original, format=vs.YUV422P10, range_s="limited") # 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") original = core.text.Text(clip=original,text="Original",scale=1) clip = core.text.Text(clip=clip,text="Filtered",scale=1) stacked = core.std.StackHorizontal([original,clip]) # set output frame rate to 0fps stacked = core.std.AssumeFPS(clip=stacked, fpsnum=1, fpsden=1) # Output stacked.set_output() 2022.07.07 - 20:40:36_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9:  writing: UTF8BOM 2022.07.07 - 20:40:36_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9:  VapoursynthPreview enabling show,.. 2022.07.07 - 20:40:36_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: VapoursynthPreview m_currentTempVPY: M:\Twemlow to Upscale\Twemlow-TEMP30\tempPreviewVapoursynthFile20_40_36_994.vpy 2022.07.07 - 20:40:36_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: VapoursynthPreview m_currentCall: C:\Program Files\Hybrid\64bit\Vapoursynth\vsViewer.exe --preview-only M:\Twemlow to Upscale\Twemlow-TEMP30\tempPreviewVapoursynthFile20_40_36_994.vpy --matrix Rec601 2022.07.07 - 20:40:36_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: Creating index files,... 2022.07.07 - 20:40:36_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: Files to index for VAPOURSYNTHPREVIEW:   2022.07.07 - 20:40:36_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: Indexer createIndexFiles disable GUI(1),.. 2022.07.07 - 20:40:36_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: enableGui 0 + -1 = -1 2022.07.07 - 20:40:37_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9:  -> m_toIndex is empty,... -> nothing to do,... 2022.07.07 - 20:40:37_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: VsScriptGenerator indexerFinished(0,0): VAPOURSYNTHPREVIEW 2022.07.07 - 20:40:37_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: Vapoursynth, indexerFinished after: 04:6042:22.819 2022.07.07 - 20:40:37_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: shortFileName for: 2022.07.07 - 20:40:37_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: VsScriptGenerator indexerFinished enable GUI(6),.. 2022.07.07 - 20:40:37_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: enableGui -1 + 1 = 0 2022.07.07 - 20:40:37_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9:  indexing finished,.. 2022.07.07 - 20:40:37_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9:  VapoursynthPreview disable show(2),.. 2022.07.07 - 20:40:37_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9:  VapoursynthPreview disable updating(2),.. 2022.07.07 - 20:40:37_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: Connected vsViewer->2finished(int, QProcess::ExitStatus) to VapoursynthPreview->1playerFinished(int, QProcess::ExitStatus), type: 384 2022.07.07 - 20:40:37_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: Connected vsViewer->2readyReadStandardOutput() to VapoursynthPreview->1handlePreviewOutput(), type: 128 2022.07.07 - 20:40:37_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: Connected vsViewer->2readyReadStandardError() to VapoursynthPreview->1handlePreviewOutput(), type: 128 2022.07.07 - 20:40:37_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: startPreview call: C:\Program Files\Hybrid\64bit\Vapoursynth\vsViewer.exe --preview-only M:\Twemlow to Upscale\Twemlow-TEMP30\tempPreviewVapoursynthFile20_40_36_994.vpy --matrix Rec601 --listen 168_VPY_ --listen-to HYBRID --crop off#0#0#0#0 2022.07.07 - 20:40:37_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: Connected ->2messageReceived(QString) to VapoursynthPreview->1gotMessage(QString), type: 128 2022.07.07 - 20:40:37_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: Connected ->2connected() to ->1socket_connected(), type: 128 2022.07.07 - 20:40:37_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: Connected ->2disconnected() to ->1socket_disconnected(), type: 128 2022.07.07 - 20:40:37_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: Connected ->2readyRead() to ->1socket_readReady(), type: 128 2022.07.07 - 20:40:37_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: Connected ->2errorOccurred(QLocalSocket::LocalSocketError) to ->1socket_error(QLocalSocket::LocalSocketError), type: 128 2022.07.07 - 20:40:37_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: tokenizing(2) 'C:\Program Files\Hybrid\64bit\Vapoursynth\vsViewer.exe' with:   --preview-only   M:\Twemlow to Upscale\Twemlow-TEMP30\tempPreviewVapoursynthFile20_40_36_994.vpy   --matrix   Rec601   --listen   168_VPY_   --listen-to   HYBRID   --crop   off#0#0#0#0 2022.07.07 - 20:40:37_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: tool(2): C:\Program Files\Hybrid\64bit\Vapoursynth\vsViewer.exe 2022.07.07 - 20:40:37_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: arguments(2):   --preview-only   M:\Twemlow to Upscale\Twemlow-TEMP30\tempPreviewVapoursynthFile20_40_36_994.vpy   --matrix   Rec601   --listen   168_VPY_   --listen-to   HYBRID   --crop   off#0#0#0#0 2022.07.07 - 20:40:37_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: Preview::indexingIsFinished 'VAPOURSYNTHPREVIEW' ignored,.. 2022.07.07 - 20:40:42_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: --- vsViewer output - START --- 2022.07.07 - 20:40:42_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: --- vsViewer output - END --- 2022.07.07 - 20:40:42_Windows 10 Version 2009 (64bit)_2022.06.30.1 - level 9: Got unhandled IPC message: Failed to evaluate the script: Python exception: ChangeFPS() got an unexpected keyword argument 'target_fps_num' 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\tempPreviewVapoursynthFile20_40_36_994.vpy", line 65, in <module> original = havsfunc.ChangeFPS(clip=original,target_fps_num=30000,target_fps_den=1001) TypeError: ChangeFPS() got an unexpected keyword argument 'target_fps_num'
I think I fixed that a few days ago send you a link to my current dev version.

Cu Selur
I am using the dev version you sent last time. I will try this newer dev version.

Hybrid_dev_2022.07.07-154831.exe

I'm still seeing this error on preview:

Code:
2022-07-08 12:17:53.072 Failed to evaluate the script: Python exception: No module named 'ChangefPS' 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\tempPreviewVapoursynthFile12_17_51_605.vpy", line 28, in import ChangefPS ModuleNotFoundError: No module named 'ChangefPS' 2022-07-08 12:18:21.850 [VSE Server]: incoming connection [VSE Server]: ConnectedState [VSE Server]: socket is ready to be read [VSE Server]: connection open: true [VSE Server]: connection readable: true [VSE Server] - Message received: changeTo ### M:\Twemlow to Upscale\Twemlow-TEMP30\tempPreviewVapoursynthFile12_18_21_829.vpy ### off#0#0#0#0 2022-07-08 12:18:21.917 Failed to evaluate the script: Python exception: No module named 'ChangefPS' 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\tempPreviewVapoursynthFile12_18_21_829.vpy", line 29, in import ChangefPS ModuleNotFoundError: No module named 'ChangefPS' 2022-07-08 12:18:23.234 [VSE Server]: socket is ready to be read [VSE Server]: connection open: true [VSE Server]: connection readable: true [VSE Server] - Message received: changeTo ### M:\Twemlow to Upscale\Twemlow-TEMP30\tempPreviewVapoursynthFile12_18_23_217.vpy ### off#0#0#0#0 2022-07-08 12:18:23.295 Failed to evaluate the script: Python exception: No module named 'ChangefPS' 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\tempPreviewVapoursynthFile12_18_23_217.vpy", line 28, in import ChangefPS ModuleNotFoundError: No module named 'ChangefPS'
Okay, seems like I accidentally deleted the ChangeFPS.py from the Installer. :/
Extracting the content of the attached zip into your Hybrid/64bit folder should help.

Cu Selur
I checked, the folder is already installed, Including changeFPS.py
Ohh, I made a typ "ChangefPS" should be "ChangeFPS" -> It'll fix it build a new dev version and send you a link once it's all packed and uploaded.

Cu Selur
Can I also use the same settings to create 29.97 interlaced from 25fps progressive?
probably, since
Quote:setting "Filtering->Vapoursynth->Misc->Script->Finter interlace handling' to 'QTGMC(preset="Fast")'.
will not be used.
Interpolation will still work, but you are going from 25fps to 60fps, so you are adding quite a a few frames so expect potentially to see more interpolation artifacts. Using RIFE with Model 'rife-v4 and a multiplier of 2.4 and enabled scene change might help a bit, but will be a lot slower.


Cu Selur
I guess RIFE is not part of Hybrid?
Should be there,.. "Filtering->Vapoursynth->Frame->Interpolation->Frame Interplation" and instead of "Interframe/SVP", RIFE should also be available.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14