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.

VS preview error with smdegrain refine motion, block & overlap size, and color format
#11
For Hybrid_dev_2026.10.05-203137 + VapoursynthR79_torch_2026.10.03

Case 1: Launch Hybrid, by default the encoder will be x264 2-pass with default settings. now load a input video file, don't enable any VS filter, and check VS preview, preview will fail, but if I ignore it and add it to job queue and run it, it will still be able to finish successfully.

Script
# Imports import sys import os import vapoursynth as vs # using Vapoursynth R79 # getting Vapoursynth core core = vs.core # Limit frame cache to 8192MB core.max_cache_size = 8192 # Import scripts folder scriptPath = 'D:/APPD/Hybrid_dev_20261005-203137/64bit/vsscripts' sys.path.insert(0, os.path.abspath(scriptPath)) # loading plugins core.std.LoadPlugin(path="D:/APPD/Hybrid_dev_20261005-203137/64bit/Vapoursynth/Lib/site-packages/vapoursynth/plugins2/LSMASHSource.dll") # Import scripts import validate # Source: 'C:\Users\mmddffkk\Desktop\tmp\SAMPLE.mkv' # clip current meta; color space: YUV420P8, bit depth: 8, resolution: 1920x1080, fps: 23.976, color matrix: 709, color primaries: Unspecific, color transfer: Unspecified, yuv luminance scale: limited, scanorder: progressive, full height: true (Source) # Loading 'C:\Users\mmddffkk\Desktop\tmp\SAMPLE.mkv' using LWLibavSource clip = core.lsmas.LWLibavSource(source="C:/Users/mmddffkk/Desktop/tmp/SAMPLE.mkv", format="YUV420P8", stream_index=0, cache=0, prefer_hw=0) frame = clip.get_frame(0) # setting color matrix to 709. clip = core.std.SetFrameProps(clip, _Matrix=vs.MATRIX_BT709) # setting color transfer (vs.TRANSFER_BT709), if it is not set. if validate.transferIsInvalid(clip):   clip = core.std.SetFrameProps(clip=clip, _Transfer=vs.TRANSFER_BT709) # setting color primaries info (to vs.PRIMARIES_BT709), if it is not set. if validate.primariesIsInvalid(clip):   clip = core.std.SetFrameProps(clip=clip, _Primaries=vs.PRIMARIES_BT709) # setting color range to TV (limited) range. prop_name = '_Range' if core.core_version.release_major >= 74 else '_ColorRange' clip = core.std.SetFrameProps(clip=clip, **{prop_name: vs.RANGE_LIMITED}) # making sure frame rate is set to 23.976fps clip = core.std.AssumeFPS(clip=clip, fpsnum=24000, fpsden=1001) # making sure the detected scan type is set (detected: progressive) clip = core.std.SetFrameProps(clip=clip, _FieldBased=vs.FIELD_PROGRESSIVE) # scan type: progressive # set output frame rate to 23.976fps (progressive) clip = core.std.AssumeFPS(clip=clip, fpsnum=24000, fpsden=1001) # output clip.set_output() # clip current meta; color space: YUV420P8, bit depth: 8, resolution: 1920x1080, fps: 23.976, color matrix: 709, color primaries: Unspecific, color transfer: Unspecified, yuv luminance scale: limited, scanorder: progressive, full height: true (Meta) # script was created by Hybrid 2026.10.05.1

error output
Failed to evaluate the script: Python exception: Failed to load D:/APPD/Hybrid_dev_20261005-203137/64bit/Vapoursynth/Lib/site-packages/vapoursynth/plugins2/LSMASHSource.dll. GetLastError() returned 126. The file you tried to load or one of its dependencies is probably missing. Traceback (most recent call last): File "vapoursynth.pyx", line 3832, in vapoursynth._vpy_evaluate File "vapoursynth.pyx", line 3833, in vapoursynth._vpy_evaluate File "R:\tempPreviewVapoursynthFile17_56_36_895.vpy", line 14, in core.std.LoadPlugin(path="D:/APPD/Hybrid_dev_20261005-203137/64bit/Vapoursynth/Lib/site-packages/vapoursynth/plugins2/LSMASHSource.dll") File "vapoursynth.pyx", line 3559, in vapoursynth.Function.__call__ vapoursynth.Error: Failed to load D:/APPD/Hybrid_dev_20261005-203137/64bit/Vapoursynth/Lib/site-packages/vapoursynth/plugins2/LSMASHSource.dll. GetLastError() returned 126. The file you tried to load or one of its dependencies is probably missing.

Case2: Enable SMDegrain, left all of its settings as default, then add a new job to queue. Now check VS preview, and start the job. This time both preview and job will failed.

script
# Imports import sys import os import vapoursynth as vs # using Vapoursynth R79 # getting Vapoursynth core core = vs.core # Limit frame cache to 8192MB core.max_cache_size = 8192 # Import scripts folder scriptPath = 'D:/APPD/Hybrid_dev_20261005-203137/64bit/vsscripts' sys.path.insert(0, os.path.abspath(scriptPath)) # loading plugins core.std.LoadPlugin(path="D:/APPD/Hybrid_dev_20261005-203137/64bit/Vapoursynth/Lib/site-packages/vapoursynth/plugins2/akarin/libakarin.dll") core.std.LoadPlugin(path="D:/APPD/Hybrid_dev_20261005-203137/64bit/Vapoursynth/Lib/site-packages/vapoursynth/plugins2/mvutensils/mvutensils.dll") core.std.LoadPlugin(path="D:/APPD/Hybrid_dev_20261005-203137/64bit/Vapoursynth/Lib/site-packages/vapoursynth/plugins2/fmtconv.dll") core.std.LoadPlugin(path="D:/APPD/Hybrid_dev_20261005-203137/64bit/Vapoursynth/Lib/site-packages/vapoursynth/plugins2/LSMASHSource.dll") # Import scripts import nnedi3_resample import smdegrain import validate # Source: 'C:\Users\mmddffkk\Desktop\tmp\SAMPLE.mkv' # clip current meta; color space: YUV420P8, bit depth: 8, resolution: 1920x1080, fps: 23.976, color matrix: 709, color primaries: Unspecific, color transfer: Unspecified, yuv luminance scale: limited, scanorder: progressive, full height: true (Source) # Loading 'C:\Users\mmddffkk\Desktop\tmp\SAMPLE.mkv' using LWLibavSource clip = core.lsmas.LWLibavSource(source="C:/Users/mmddffkk/Desktop/tmp/SAMPLE.mkv", format="YUV420P8", stream_index=0, cache=0, prefer_hw=0) frame = clip.get_frame(0) # setting color matrix to 709. clip = core.std.SetFrameProps(clip, _Matrix=vs.MATRIX_BT709) # setting color transfer (vs.TRANSFER_BT709), if it is not set. if validate.transferIsInvalid(clip):   clip = core.std.SetFrameProps(clip=clip, _Transfer=vs.TRANSFER_BT709) # setting color primaries info (to vs.PRIMARIES_BT709), if it is not set. if validate.primariesIsInvalid(clip):   clip = core.std.SetFrameProps(clip=clip, _Primaries=vs.PRIMARIES_BT709) # setting color range to TV (limited) range. prop_name = '_Range' if core.core_version.release_major >= 74 else '_ColorRange' clip = core.std.SetFrameProps(clip=clip, **{prop_name: vs.RANGE_LIMITED}) # making sure frame rate is set to 23.976fps clip = core.std.AssumeFPS(clip=clip, fpsnum=24000, fpsden=1001) # making sure the detected scan type is set (detected: progressive) clip = core.std.SetFrameProps(clip=clip, _FieldBased=vs.FIELD_PROGRESSIVE) # scan type: progressive # removing grain using SMDegrain clip = smdegrain.SMDegrain(clip, interlaced=False, tools={'mv': 'mvutensils', 'expr': 'akarin', 'nnedi3': 'znedi3', 'dfttest': 'neo_fft', 'nlmeans': 'nlm_ispc', 'bm3d': 'bm3d', 'rg': 'zsmooth', 'median': 'zsmooth', 'boxblur': 'std', 'scd': 'std'}) # set output frame rate to 23.976fps (progressive) clip = core.std.AssumeFPS(clip=clip, fpsnum=24000, fpsden=1001) # output clip.set_output() # clip current meta; color space: YUV420P8, bit depth: 8, resolution: 1920x1080, fps: 23.976, color matrix: 709, color primaries: Unspecific, color transfer: Unspecified, yuv luminance scale: limited, scanorder: progressive, full height: true (Meta) # script was created by Hybrid 2026.10.05.1

error output
Failed to evaluate the script: Python exception: Failed to load D:/APPD/Hybrid_dev_20261005-203137/64bit/Vapoursynth/Lib/site-packages/vapoursynth/plugins2/LSMASHSource.dll. GetLastError() returned 126. The file you tried to load or one of its dependencies is probably missing. Traceback (most recent call last): File "vapoursynth.pyx", line 3832, in vapoursynth._vpy_evaluate File "vapoursynth.pyx", line 3833, in vapoursynth._vpy_evaluate File "R:\tempPreviewVapoursynthFile18_02_48_229.vpy", line 17, in core.std.LoadPlugin(path="D:/APPD/Hybrid_dev_20261005-203137/64bit/Vapoursynth/Lib/site-packages/vapoursynth/plugins2/LSMASHSource.dll") File "vapoursynth.pyx", line 3559, in vapoursynth.Function.__call__ vapoursynth.Error: Failed to load D:/APPD/Hybrid_dev_20261005-203137/64bit/Vapoursynth/Lib/site-packages/vapoursynth/plugins2/LSMASHSource.dll. GetLastError() returned 126. The file you tried to load or one of its dependencies is probably missing.
Reply


Messages In This Thread
RE: VS preview error with smdegrain refine motion, block & overlap size, and color format - by andrewschen - 06.10.2026, 12:14

Forum Jump:


Users browsing this thread: 1 Guest(s)