@hydra3333
At your questions on how a basic vapoursynth script should look:
Code:
import vapoursynth as vs
# This above is mandatory in every file, it loads vapoursynth in python.
import havsfunc as haf
import finesharp
# These are optional imports, you can import it directly or make an alias like we did with vapoursynth
core = vs.get_core()
# This is mandatory too
def a_random_function(clip, cool_setting=0):
clip = core.do.something(clip, a_setting=cool_setting)
return clip
# This is how you define your functions, no need to create another core because it is already created outside of it.
clip = core.lsmas.LWLibavSource(r'/path/to/my/video.m2ts')
# In avisynth wen we don't define were the output of a plug-in goes, it automatically goes to a hidden variable "last", not in vapoursynth.
# Here we need to explicitly send it somewhere, "clip" in this example.
clip = haf.QTGMC(clip, Preset="Very Slow", Sharpness=1.2, SLMode=2, EZKeepGrain=1.2, NoiseProcess=2)
# No EdiThreads because vapoursynth manages all of this internally.
clip = finesharp.sharpen(clip)
clip = a_random_function(clip, 2)
clip.set_output()
# This is also needed, without it the script will not return a video