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.

Dev Version Crashed Error "too small"
#2
# Imports
import vapoursynth as vs
# getting Vapoursynth core
import ctypes
# Loading Support Files
Dllref = ctypes.windll.LoadLibrary("C:/Program Files/Hybrid/64bit/vsfilters/Support/libfftw3f-3.dll")
core = vs.core
# Loading Plugins
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/SourceFilter/LSmashSource/vslsmashsource.dll")
# source: 'C:\Users\Michael\Desktop\New folder\Scenes From a Marriage S01E01.mkv'
# current color space: YUV420P8, bit depth: 8, resolution: 1920x1080, fps: 23.976, color matrix: 709, yuv luminance scale: limited, scanorder: progressive
# Loading C:\Users\Michael\Desktop\New folder\Scenes From a Marriage S01E01.mkv using LWLibavSource
clip = core.lsmas.LWLibavSource(source="C:/Users/Michael/Desktop/New folder/Scenes From a Marriage S01E01.mkv", format="YUV420P8", cache=0, prefer_hw=0)
# making sure input color matrix is set as 709
clip = core.resize.Bicubic(clip, matrix_in_s="709",range_s="limited")
# making sure frame rate is set to 23.976
clip = core.std.AssumeFPS(clip=clip, fpsnum=24000, fpsden=1001)
# Setting color range to TV (limited) range.
clip = core.std.SetFrameProp(clip=clip, prop="_ColorRange", intval=1)
# denoising using Neo-FFT3D
clip = core.neo_fft3d.FFT3D(clip=clip, bw=16, bh=16)
# Loading image based subtitle C:\Video\Hybrid Output\Scenes From a Marriage S01E01_id_2_lang_en.sup using Subtitle
subs = core.sub.ImageFile(clip=clip, file="C:/Video/Hybrid Output/Scenes From a Marriage S01E01_id_2_lang_en.sup", blend=False)
alpha = core.std.PropToClip(subs)
subs = core.resize.Bicubic(subs, width=clip.width, height=clip.height, format=clip.format.id, matrix_s="709", range_s="limited")
gray_format = core.register_format(vs.GRAY, clip.format.sample_type, clip.format.bits_per_sample, 0, 0)
alpha = core.resize.Bicubic(alpha, width=clip.width, height=clip.height, format=gray_format.id, range_s="limited")
clip = core.std.MaskedMerge(clip, subs, alpha)
# adjusting output color from: RGB24 to YUV420P8 for x264Model
clip = core.resize.Bicubic(clip=clip, format=vs.YUV420P8, matrix_s="709", range_s="limited")
# set output frame rate to 23.976fps
clip = core.std.AssumeFPS(clip=clip, fpsnum=24000, fpsden=1001)
# Output
clip.set_output()
does see fine.

Encoding call, also looks fine:
[code]"C:\Program Files\Hybrid\64bit\Vapoursynth\vspipe.exe" "C:\Users\Michael\AppData\Local\Temp\encodingTempSynthSkript_2021-10-09@19_37_17_8510.vpy" - --y4m | "C:\Program Files\Hybrid\64bit\x264.exe" --preset slow --crf 24.00 --profile high --sync-lookahead 18 --psy-rd 1.00:0.15 --sar 1:1 --qpfile "C:\Users\Michael\AppData\Local\Temp\Scenes From a Marriage S01E01_2021-10-09@19_37_17_8510_05.qp" --deblock -1:-1 --non-deterministic --range tv --colormatrix bt709 --demuxer y4m --input-range tv --fps 24000/1001 --output-depth 8 --output "C:\Users\Michael\AppData\Local\Temp\2021-10-09@19_37_17_8510_06.264" -
but directly aborts. :/

What happens if you call the encoding call inside a 'Windows Command Prompt'-window?
Does the Vapoursynth Preview work properly or does is show an error with you settings?

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: Dev Version Crashed Error "too small" - by Selur - 10.10.2021, 08:28

Forum Jump:


Users browsing this thread: 1 Guest(s)