28.01.2018, 16:20
(28.01.2018, 16:10)Selur Wrote: Vapoursynth script looks fine to me:
Encoding call looks fine too:# Imports
import os
import sys
import vapoursynth as vs
core = vs.get_core()
# Import scripts folder
scriptPath = 'C:/Program Files/Hybrid/64bit/vsscripts'
sys.path.append(os.path.abspath(scriptPath))
# Loading Plugins
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/libmvtools.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/SourceFilter/LSmashSource/vslsmashsource.dll")
# Import scripts
import nnedi3_resample
import mvsfunc
import havsfunc
# Loading C:\Users\Mohammad\Desktop\it.mkv using LWLibavSource
clip = core.lsmas.LWLibavSource(source="C:/Users/Mohammad/Desktop/it.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)
# removing grain using SMDegrain
clip = havsfunc.SMDegrain(input=clip, thSAD=350, thSADC=100, interlaced=False, pel=2, blksize=16, overlap=2, truemotion=False, MVglobal=True, limit=10, limitc=10)
# adjusting output color from: YUV420P8 to YUV420P10 for x265Model (i420)
clip = core.resize.Bicubic(clip=clip, format=vs.YUV420P10)
# Output
clip.set_output()
What happens if you call the encoding call inside a Windows command prompt?"C:\PROGRA~1\Hybrid\64bit\VAPOUR~1\vspipe.exe" "C:\Users\Mohammad\Desktop\encodingTempSynthSkript_17_30_30_6510.vpy" - --y4m | "C:\PROGRA~1\Hybrid\64bit\x265.exe" --preset slow --input - --output-depth 10 --y4m --profile main10 --high-tier --level-idc 4.1 --crf 18.00 --nr-inter 50 --qpfile "C:\Users\Mohammad\Desktop\it_new_17_30_30_6510_02.qp" --aq-mode 2 --vbv-maxrate 50000 --vbv-bufsize 50000 --range limited --colormatrix bt709 --output "C:\Users\Mohammad\Desktop\17_30_30_6510_03.265"
Cu Selur
Ps.: Just out of curiosity: Why do you use 'high tier'? (don't know of any reason to use it so far, so I'm wondering,..)
I just activated "high tier" for curiosity.
Here:
Microsoft Windows [Version 10.0.16299.15]
(c) 2017 Microsoft Corporation. All rights reserved.
C:\Users\Mohammad>"C:\PROGRA~1\Hybrid\64bit\VAPOUR~1\vspipe.exe" "C:\Users\Mohammad\Desktop\encodingTempSynthSkript_17_30_30_6510.vpy" - --y4m | "C:\PROGRA~1\Hybrid\64bit\x265.exe" --preset slow --input - --output-depth 10 --y4m --profile main10 --high-tier --level-idc 4.1 --crf 18.00 --nr-inter 50 --qpfile "C:\Users\Mohammad\Desktop\it_new_17_30_30_6510_02.qp" --aq-mode 2 --vbv-maxrate 50000 --vbv-bufsize 50000 --range limited --colormatrix bt709 --output "C:\Users\Mohammad\Desktop\17_30_30_6510_03.265"
x265 [error]: unable to open input file <->
Error: fwrite() call failed when writing frame: 0, plane: 0, errno: 32
Output 5 frames in 0.78 seconds (6.41 fps)
C:\Users\Mohammad>