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.

Crash DVD encoding and Vapoursynth
#4
x264
"C:\Audio-video App\Hybrid\64bit\Vapoursynth\vspipe.exe" "D:\DVD\VIDEO_TS\2023-10-15@18_15_17_7210\encodingTempSynthSkript_2023-10-15@18_15_17_7210_0.vpy" - -c y4m | "C:\Audio-video App\Hybrid\64bit\x264.exe" --preset veryfast --pass 1 --bitrate 963 --profile high --direct auto --b-adapt 0 --sync-lookahead 12 --ratetol 2.00 --qcomp 0.50 --rc-lookahead 40 --qpmax 51 --aq-mode 0 --sar 64:45 --qpfile "D:\DVD\VIDEO_TS\2023-10-15@18_15_17_7210\Scusi dov'è il west AC3.ITA.ENG_1_2023-10-15@18_15_17_7210_06.qp" --non-deterministic --range tv --stats "D:\DVD\VIDEO_TS\2023-10-15@18_15_17_7210\Scusi dov'è il west AC3.ITA.ENG_1_2023-10-15@18_15_17_7210_07.stats" --demuxer y4m --input-range tv --fps 25/1 --output-depth 8 --output NUL -
aborts with:
x264 output: y4m [error]: bad sequence header magic
Which usually happens if there is a problem with the Avisynth or Vapoursynth script used.
Looking at the Vapoursynth script used:
# Imports
import vapoursynth as vs
import os
import ctypes
# Loading Support Files
Dllref = ctypes.windll.LoadLibrary("C:/Audio-video App/Hybrid/64bit/vsfilters/Support/libfftw3f-3.dll")
import sys
# getting Vapoursynth core
core = vs.core
# Import scripts folder
scriptPath = 'C:/Audio-video App/Hybrid/64bit/vsscripts'
sys.path.insert(0, os.path.abspath(scriptPath))
# Loading Plugins
core.std.LoadPlugin(path="C:/Audio-video App/Hybrid/64bit/vsfilters/GrainFilter/RemoveGrain/RemoveGrainVS.dll")
core.std.LoadPlugin(path="C:/Audio-video App/Hybrid/64bit/vsfilters/GrainFilter/AddGrain/AddGrain.dll")
core.std.LoadPlugin(path="C:/Audio-video App/Hybrid/64bit/vsfilters/DenoiseFilter/FFT3DFilter/fft3dfilter.dll")
core.std.LoadPlugin(path="C:/Audio-video App/Hybrid/64bit/vsfilters/DenoiseFilter/DFTTest/DFTTest.dll")
core.std.LoadPlugin(path="C:/Audio-video App/Hybrid/64bit/vsfilters/Support/EEDI3m.dll")
core.std.LoadPlugin(path="C:/Audio-video App/Hybrid/64bit/vsfilters/ResizeFilter/nnedi3/vsznedi3.dll")
core.std.LoadPlugin(path="C:/Audio-video App/Hybrid/64bit/vsfilters/Support/libmvtools.dll")
core.std.LoadPlugin(path="C:/Audio-video App/Hybrid/64bit/vsfilters/Support/scenechange.dll")
core.std.LoadPlugin(path="C:/Audio-video App/Hybrid/64bit/vsfilters/Support/fmtconv.dll")
core.std.LoadPlugin(path="C:/Audio-video App/Hybrid/64bit/vsfilters/MiscFilter/MiscFilters/MiscFilters.dll")
core.std.LoadPlugin(path="C:/Audio-video App/Hybrid/64bit/vsfilters/DeinterlaceFilter/Bwdif/Bwdif.dll")
core.std.LoadPlugin(path="C:/Audio-video App/Hybrid/64bit/vsfilters/SourceFilter/d2vSource/DGDecode.dll")
# Import scripts
import havsfunc
# source: 'D:\DVD\VIDEO_TS'
# current color space: YUV420P8, bit depth: 8, resolution: 720x576, fps: 25, color matrix: 709, yuv luminance scale: limited, scanorder: top field first
# Loading D:\DVD\VIDEO_TS\VTS_03_1.VOB using DGDecode
clip = core.dgdecode.MPEG2Source("D:/Jdownloader/[DVD] Scusi, dov e il West_ - EB/Scusi, dov'e il west/VIDEO_TS/2023-10-15@18_15_17_7210/2023-10-15@18_15_17_7210.d2v")# 25 fps, scanorder: top field first
# Setting detected color matrix (709).
clip = core.std.SetFrameProps(clip, _Matrix=1)
# Setting color transfer info (709), when it is not set
clip = clip if not core.text.FrameProps(clip,'_Transfer') else core.std.SetFrameProps(clip, _Transfer=1)
# Setting color primaries info (bt709), when it is not set
clip = clip if not core.text.FrameProps(clip,'_Primaries') else core.std.SetFrameProps(clip, _Primaries=1)
# Setting color range to TV (limited) range.
clip = core.std.SetFrameProp(clip=clip, prop="_ColorRange", intval=1)
# making sure frame rate is set to 25
clip = core.std.AssumeFPS(clip=clip, fpsnum=25, fpsden=1)
clip = core.std.SetFrameProp(clip=clip, prop="_FieldBased", intval=2) # tff
# Deinterlacing using QTGMC
clip = havsfunc.QTGMC(Input=clip, Preset="Fast", TFF=True) # new fps: 25
# Making sure content is preceived as frame based
clip = core.std.SetFrameProp(clip=clip, prop="_FieldBased", intval=0) # progressive
clip = clip[::2] # selecting previously even frames
# set output frame rate to 25fps (progressive)
clip = core.std.AssumeFPS(clip=clip, fpsnum=25, fpsden=1)
# Output
clip.set_output()
I don't see any issue with the script. => Does the Vapoursynth Preview work, or does it show an error?

Quote:DGindexNV can parse the files without any problem and also extracting the audio tracks.
Okay, since you didn't tell Hybrid to use DGDecNV, it is not using it, but normal DGIndex&DGDecode.
You can tell Hybrid to use DGDecNV, by enabling "Filtering->Vapoursynth->Misc->Source->Use DGDeNV when available".

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: Crash DVD encoding and Vapoursynth - by Selur - 15.10.2023, 18:58

Forum Jump:


Users browsing this thread: 1 Guest(s)