Posts: 459
Threads: 107
Joined: Jul 2020
Is there anything I can do to stop Hybrid crashing?
Posts: 10.618
Threads: 57
Joined: May 2017
04.10.2024, 12:32
(This post was last modified: 04.10.2024, 12:59 by Selur.)
Update.
Check if the Vapoursynth Preview works.
----
The encoding call:
"C:\Program Files\Hybrid\64bit\Vapoursynth\vspipe.exe" "M:\BrianNewCaptures-TEMP\encodingTempSynthSkript_2024-10-04@09_54_13_1710_0.vpy" - -c y4m | "C:\Program Files\Hybrid\64bit\ffmpeg.exe" -y -noautorotate -nostdin -threads 8 -f yuv4mpegpipe -i - -an -sn -color_primaries bt470m -color_trc bt709 -colorspace bt470bg -color_range tv -pix_fmt yuv422p10le -strict -1 -vsync 0 -vcodec prores_ks -profile:v 2 -vtag apcn -metadata encoding_tool="Hybrid 2024.06.16.1" -aspect 984:720 -f mov "M:\BrianNewCaptures-TEMP\BAD_WEEKEND_1992_CHLOE_Shutter LR Crop-L8-R8-THIS_1_2024-10-04@09_54_13_1710_03.mov"
and the Vapoursynth script:
# Imports
import vapoursynth as vs
# getting Vapoursynth core
import ctypes
import sys
import os
core = vs.core
# Import scripts folder
scriptPath = 'C:/Program Files/Hybrid/64bit/vsscripts'
sys.path.insert(0, os.path.abspath(scriptPath))
# Loading Support Files
Dllref = ctypes.windll.LoadLibrary("C:/Program Files/Hybrid/64bit/vsfilters/Support/libfftw3f-3.dll")
# loading plugins
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/FrameFilter/Interframe/svpflow2_vs64.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/FrameFilter/Interframe/svpflow1_vs64.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/DenoiseFilter/FFT3DFilter/fft3dfilter.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/GrainFilter/RemoveGrain/RemoveGrainVS.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/DFTTest/DFTTest.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/Support/EEDI3m.dll")# vsQTGMC
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/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/MiscFilter/MiscFilters/MiscFilters.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/DeinterlaceFilter/Bwdif/Bwdif.dll")
core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/SourceFilter/LSmashSource/LSMASHSource.dll")
# Import scripts
import interframe
import adjust
import havsfunc
import validate
# Source: 'M:\Tanya-IN\BAD_WEEKEND_1992_CHLOE_Shutter LR Crop-L8-R8-THIS.mov'
# Current color space: YUV422P10, bit depth: 10, resolution: 720x576, frame rate: 25fps, scanorder: bottom field first, yuv luminance scale: limited, matrix: 470bg, transfer: bt.709, primaries: bt.601 pal
# Loading M:\Tanya-IN\BAD_WEEKEND_1992_CHLOE_Shutter LR Crop-L8-R8-THIS.mov using LWLibavSource
clip = core.lsmas.LWLibavSource(source="M:/Tanya-IN/BAD_WEEKEND_1992_CHLOE_Shutter LR Crop-L8-R8-THIS.mov", format="YUV422P10", stream_index=1, cache=0, fpsnum=25, prefer_hw=0)
frame = clip.get_frame(0)
# Setting detected color matrix (470bg).
clip = core.std.SetFrameProps(clip=clip, _Matrix=5)
# setting color transfer (709), if it is not set.
if validate.transferIsInvalid(clip):
clip = core.std.SetFrameProps(clip=clip, _Transfer=1)
# setting color primaries info (to 470), if it is not set.
if validate.primariesIsInvalid(clip):
clip = core.std.SetFrameProps(clip=clip, _Primaries=5)
# setting color range to TV (limited) range.
clip = core.std.SetFrameProps(clip=clip, _ColorRange=1)
# making sure frame rate is set to 25fps
clip = core.std.AssumeFPS(clip=clip, fpsnum=25, fpsden=1)
# making sure the detected scan type is set (detected: bottom field first)
clip = core.std.SetFrameProps(clip=clip, _FieldBased=1) # bff
# Deinterlacing using QTGMC
clip = havsfunc.QTGMC(Input=clip, Preset="Medium", TFF=False) # new fps: 50
# Making sure content is preceived as frame based
clip = core.std.SetFrameProps(clip=clip, _FieldBased=0) # progressive
# adjusting color space from YUV422P10 to RGB30 for vsLevels
clip = core.resize.Bicubic(clip=clip, format=vs.RGB30, matrix_in_s="470bg", range_s="limited")
# adjusting color using Levels on RGB30 (10 bit)
clip = core.std.Levels(clip=clip, min_in=64, max_in=940, min_out=64, max_out=940)
# adjusting color space from RGB30 to YUV444P10 for vsTweak
clip = core.resize.Bicubic(clip=clip, format=vs.YUV444P10, matrix_s="470bg", range_s="limited")
# adjusting color using Tweak
clip = adjust.Tweak(clip=clip, hue=-10.00, sat=1.00, cont=1.00, coring=True)
# adjusting color space from YUV444P10 to RGB30 for vsLimiter
clip = core.resize.Bicubic(clip=clip, format=vs.RGB30, matrix_in_s="470bg", range_s="limited")
# adjusting color using Limiter
clip = core.std.Limiter(clip=clip, min=0, max=1020)
# denoising using FFT3DFilter
clip = core.fft3dfilter.FFT3DFilter(clip=clip)
# adjusting color space from RGB30 to YUV420P8 for vsInterframe
clip = core.resize.Bicubic(clip=clip, format=vs.YUV420P8, matrix_s="470bg", range_s="limited", dither_type="error_diffusion")
# adjusting frame count with Interframe/SVP
clip = interframe.InterFrame(clip, Tuning="smooth", NewNum=60000, NewDen=1001, GPU=True, OverrideAlgo=1, overwriteSmooth="{rate:{num:60000,den:1001,abs:true},algo:2,mask:{area:100},scene:{mode:0}}") # new fps: 59.9401
# Resizing using 10 - bicubic spline
clip = core.fmtc.resample(clip=clip, kernel="spline16", w=984, h=720, interlaced=False, interlacedd=False) # resolution 984x720 before YUV420P8 after YUV420P16
# adjusting output color from: YUV420P16 to YUV422P10 for ProResModel
clip = core.resize.Bicubic(clip=clip, format=vs.YUV422P10, range_s="limited", dither_type="error_diffusion")
# set output frame rate to 59.9401fps (progressive)
clip = core.std.AssumeFPS(clip=clip, fpsnum=60000, fpsden=1001)
# output
clip.set_output()
Both seem fine to me, but the 'yuv4mpegpipe @ 000002c242b31180] Header too large' error normally happens if the processing of the Vapoursynth script fails. (or something is interfering with the communication of the decoder and the encoder, but that rather uncommon) => It's probably something related to the Vapoursynth script.
Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Posts: 459
Threads: 107
Joined: Jul 2020
The preview doesn't work either.
Posts: 10.618
Threads: 57
Joined: May 2017
The preview usually shows an error if it does not work,...
What does the error message in the preview window say?
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
|