View Single Post
Old 27th November 2017, 17:52   #3251  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,259
Vapoursynth script looks fine to me:
Code:
# Imports
import os
import sys
import ctypes
Dllref = ctypes.windll.LoadLibrary("F:/Hybrid/vsfilters/Support/libfftw3f-3.dll")
# Loading Support Files
Dllref = ctypes.windll.LoadLibrary("F:/Hybrid/vsfilters/Support/OpenCL.dll")
import vapoursynth as vs
core = vs.get_core()
# Import scripts folder
scriptPath = 'F:/Hybrid/vsscripts'
sys.path.append(os.path.abspath(scriptPath))
# Loading Plugins
core.std.LoadPlugin(path="F:/Hybrid/vsfilters/GrainFilter/AddGrain/AddGrain.dll")
core.std.LoadPlugin(path="F:/Hybrid/vsfilters/DenoiseFilter/FFT3DFilter/vsfft3dfilter.dll")
core.std.LoadPlugin(path="F:/Hybrid/vsfilters/DenoiseFilter/DFTTest/DFTTest.dll")
core.std.LoadPlugin(path="F:/Hybrid/vsfilters/DenoiseFilter/KNLMeansCL/KNLMeansCL.dll")
core.std.LoadPlugin(path="F:/Hybrid/vsfilters/ResizeFilter/NNEDI3/libnnedi3.dll")
core.std.LoadPlugin(path="F:/Hybrid/vsfilters/Support/libmvtools.dll")
core.std.LoadPlugin(path="F:/Hybrid/vsfilters/Support/temporalsoften.dll")
core.std.LoadPlugin(path="F:/Hybrid/vsfilters/Support/scenechange.dll")
core.std.LoadPlugin(path="F:/Hybrid/vsfilters/Support/fmtconv.dll")
core.std.LoadPlugin(path="F:/Hybrid/vsfilters/SourceFilter/LSmashSource/vslsmashsource.dll")
# Import scripts
import havsfunc as havsfunc
# Loading F:\TEMP\Howards.End.S01E03.1080p.HDTV.H264-MTB[rarbg]\test.mkv using LWLibavSource
clip = core.lsmas.LWLibavSource(source="F:/TEMP/Howards.End.S01E03.1080p.HDTV.H264-MTB[rarbg]/test.mkv", format="YUV420P8", cache=0)
# making sure input color matrix is set as 709
clip = core.resize.Point(clip, matrix_in_s="709")
# Making sure input color range is set to TV (limited) range.
clip = core.std.SetFrameProp(clip=clip, prop="_ColorRange", intval=1)
# setting field order to what QTGMC should assume
clip = core.std.SetFrameProp(clip=clip, prop="_FieldBased", intval=2)
# Deinterlacing using QTGMC
clip = havsfunc.QTGMC(Input=clip, Preset="Fast", TFF=True)
clip = clip[::2]
# adjusting output color from: YUV420P8 to YUV420P10
clip = core.resize.Bicubic(clip=clip, format=vs.YUV420P10)
# Output
clip.set_output()
Encoding call seems fine too:
Code:
"F:\Hybrid\Vapoursynth\vspipe.exe" "F:\CORBEAU\encodingTempSynthSkript_15_34_40_3010.vpy" - --y4m  | "F:\Hybrid\ffmpeg.exe" -y -threads 8 -f yuv4mpegpipe -i - -an -sn  -vsync 0 -strict -1 -pix_fmt yuv420p10le  -vcodec hevc_nvenc -preset 5 -profile:v 1 -level 0 -rc constqp -cq 18 -2pass 0 -rc-lookahead -1 -surfaces 32 -nonref_p 1 -strict_gop 1 "F:\CORBEAU\test_15_34_40_3010_02.mkv"
(assuming your graphic card support 10bit hevc encoding; mine doesn't)

Cu Selur
What happens if you call the encoding call inside a Windows Command Prompt?
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote