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] Fragments disappear in hand-drawn animation
#27
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()
scripts looks fine.

"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"
encoding call seems fine (aside from using a 6.1 level while restricting vbv that much).

->
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.
Reply


Messages In This Thread
RE: Fragments disappear in hand-drawn animation - by Selur - 20.02.2022, 12:46

Forum Jump:


Users browsing this thread: 2 Guest(s)