20.02.2022, 12:46
Imports
import os
import sys
import vapoursynth as vs
# getting Vapoursynth core
core = vs.core
# Import scripts folder
scriptPath = 'D:/Progs/Hybrid/64bit/vsscripts'
sys.path.insert(0, os.path.abspath(scriptPath))
# Loading Plugins
core.std.LoadPlugin(path="D:/Progs/Hybrid/64bit/vsfilters/DenoiseFilter/RemoveDirt/RemoveDirtVS.dll")
core.std.LoadPlugin(path="D:/Progs/Hybrid/64bit/vsfilters/Support/libmvtools.dll")
core.std.LoadPlugin(path="D:/Progs/Hybrid/64bit/vsfilters/GrainFilter/RemoveGrain/RemoveGrainVS.dll")
core.std.LoadPlugin(path="D:/Progs/Hybrid/64bit/vsfilters/SourceFilter/LSmashSource/vslsmashsource.dll")
# Import scripts
import killerspots
# source: 'C:\Users\Dmitry\Desktop\Kroshka_Enot_new.mp4'
# current color space: YUV420P8, bit depth: 8, resolution: 720x544, fps: 25, color matrix: 470bg, yuv luminance scale: limited, scanorder: progressive
# Loading C:\Users\Dmitry\Desktop\Kroshka_Enot_new.mp4 using LibavSMASHSource
clip = core.lsmas.LibavSMASHSource(source="C:/Users/Dmitry/Desktop/Kroshka_Enot_new.mp4")
# 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)
clip = killerspots.KillerSpots(clip=clip, limit=25)
# set output frame rate to 25.000fps
clip = core.std.AssumeFPS(clip=clip, fpsnum=25, fpsden=1)
# Output
clip.set_output()
"D:\Progs\Hybrid\64bit\Vapoursynth\vspipe.exe" "C:\Users\Dmitry\AppData\Local\Temp\encodingTempSynthSkript_2022-02-20@13_38_59_2010.vpy" - -c y4m | "D:\Progs\Hybrid\64bit\VCEEncC.exe" --y4m -i - --codec h265 --vbr 7500 --max-bitrate 10000 --ref 0 --motion-est q-pel --profile main --level 6.1 --tier main --level auto --vbv-bufsize 20000 --slices 1 --sar 1:1 --fps 25.000 --output-file "C:\Users\Dmitry\AppData\Local\Temp\Kroshka_Enot_new_new_2022-02-20@13_38_59_2010_02.265"
->
1. try lowering the Vapoursynth thread count to 1 and see if that works.
2. try whether using another decoder helps
3. does it work with another encoder
Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.