27.09.2020, 22:36
How would the script look if I added that?
When looking at my script preview, I see this:
When looking at my script preview, I see this:
# Imports
import vapoursynth as vs
core = vs.get_core()
# defining beforeEnd-function
def beforeEnd(clip):
#Imports
import os
import sys
# Import scripts folder
scriptPath = '/Applications/Hybrid.app/Contents/MacOS/vsscripts' # <- adjust this if necessary
sys.path.append(os.path.abspath(scriptPath))
# Import scripts
import havsfunc
clip = havsfunc.QTGMC(Input=clip, InputType=1, Preset="Placebo", NoiseProcess=1, NoiseRestore=0.3, Sigma=8.0,opencl=True)
return clip
# loading source: /Volumes/Volume 2/anotherthinprorez/000000.mov
# color sampling YUV444P16@12, matrix:709, scantyp: progressive
# luminance scale TV
# resolution: 1440x1080
# frame rate: 23.976 fps
# input color space: YUV444P16, bit depth: 12, resolution: 1440x1080, fps: 23.976
# Loading /Volumes/Volume 2/anotherthinprorez/000000.mov using LWLibavSource
clip = core.lsmas.LWLibavSource(source="/Volumes/Volume 2/anotherthinprorez/000000.mov", format="YUV444P16", cache=0, fpsnum=24000, fpsden=1001, prefer_hw=0)
# making sure input color matrix is set as 709
clip = core.resize.Point(clip, matrix_in_s="709",range_s="limited")
# making sure frame rate is set to 23.976
clip = core.std.AssumeFPS(clip, fpsnum=24000, fpsden=1001)
# Setting color range to TV (limited) range.
clip = core.std.SetFrameProp(clip=clip, prop="_ColorRange", intval=1)
clip = beforeEnd(clip)
# adjusting output color from: YUV444P16 to YUV420P8 for x264Model (i420)
clip = core.resize.Bicubic(clip=clip, format=vs.YUV420P8, range_s="limited")
# Output
clip.set_output()