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.

Pulling my hair out, cannot get any encodes to start.
#7
The Vapoursynth script itself looks fine to me:
# Imports
import os
import sys
import ctypes
# Loading Support Files
Dllref = ctypes.windll.LoadLibrary("C:/Program Files/Hybrid/64bit/vsfilters/Support/libfftw3f-3.dll")
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/DenoiseFilter/VagueDenoiser/VagueDenoiser.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/DenoiseFilter/CTMF/CTMF.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/DenoiseFilter/HQDN3D/libhqdn3d.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/DeblockFilter/Deblock/Deblock.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/GrainFilter/AddGrain/AddGrain.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/DenoiseFilter/NEO_FFT3DFilter/neo-fft3d.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/DenoiseFilter/DFTTest/DFTTest.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/EEDI3.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/ResizeFilter/nnedi3/vsznedi3.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/libmvtools.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/temporalsoften.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/scenechange.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/fmtconv.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/SourceFilter/LSmashSource/vslsmashsource.dll")
# Import scripts
import havsfunc
# input color space: YUV420P8, bit depth: 8, resolution: 720x576, fps: 25
# Loading Z:\raid\remuxs\LWVL\title_t01.mkv using LWLibavSource
clip = core.lsmas.LWLibavSource(source="Z:/raid/remuxs/LWVL/title_t01.mkv", format="YUV420P8", cache=0, prefer_hw=0)
# making sure input color matrix is set as 470bg
clip = core.resize.Point(clip, matrix_in_s="470bg",range_s="limited")
# making sure frame rate is set to 25
clip = core.std.AssumeFPS(clip, fpsnum=25, fpsden=1)
# Setting color range 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="Slower", TFF=True)
# make sure content is preceived as frame based
clip = core.std.SetFieldBased(clip, 0)
clip = clip[::2]
# Deblocking using Deblock
# applying delocking using Deblock
clip = core.deblock.Deblock(clip=clip)
# converting to mod1 compatible format
clip = core.resize.Bicubic(clip=clip, format=vs.YUV444P8, range_s="limited")
# cropping the video to 690x552
clip = core.std.CropRel(clip=clip, left=15, right=15, top=12, bottom=12)
# removing grain using TemporalDegrain
clip = havsfunc.TemporalDegrain(inpClip=clip)
# denoising using VagueDenoiser
clip = core.vd.VagueDenoiser(clip=clip)
# adjusting output color from: YUV444P8 to YUV420P8 for x264Model (i420)
clip = core.resize.Bicubic(clip=clip, format=vs.YUV420P8, range_s="limited")
# Output
clip.set_output()
but the encoding call:
"C:\Program Files\Hybrid\64bit\Vapoursynth\vspipe.exe" "C:\Users\xxx\AppData\Local\Temp\encodingTempSynthSkript_16_58_12_2710.vpy" - --y4m | "C:\Program Files\Hybrid\64bit\x264.exe" --preset slower --crf 21.00 --profile high --level 4.1 --sync-lookahead 24 --vbv-maxrate 62500 --vbv-bufsize 78125 --sar 16:15 --qpfile "C:\Users\xxx\AppData\Local\Temp\lwvl_16_58_12_2710_03.qp" --non-deterministic --range tv --colormatrix bt709 --demuxer y4m  --input-range tv --fps 25/1 --output-depth 8 --output "C:\Users\xxx\AppData\Local\Temp\16_58_12_2710_04.264" -
fails with:
y4m [error]: bad sequence header magic
x264 [error]: could not open input file `-'
which indicates a problem with the decoding.

Vapoursynth problems might be due to a bug in the Vapoursynth script, a problem with reading or decoding the source or something totally different. Smile

-> Basically the same request as before: Check the Vapoursynth Preview.

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: Pulling my hair out, cannot get any encodes to start. - by Selur - 08.07.2020, 04:53

Forum Jump:


Users browsing this thread: 2 Guest(s)