Selur's Little Message Board
VS preview error with smdegrain refine motion, block & overlap size, and color format - Printable Version

+- Selur's Little Message Board (https://forum.selur.net)
+-- Forum: Hybrid - Support (https://forum.selur.net/forum-1.html)
+--- Forum: Problems & Questions (https://forum.selur.net/forum-3.html)
+--- Thread: VS preview error with smdegrain refine motion, block & overlap size, and color format (/thread-4502.html)

Pages: 1 2 3


RE: VS preview error with smdegrain refine motion, block & overlap size, and color format - andrewschen - 06.10.2026

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.



RE: VS preview error with smdegrain refine motion, block & overlap size, and color format - Selur - 06.10.2026

Seems like LSmashSource was not compiled statically, preferring Bestsource should work as a workaround.

Cu Selur


RE: VS preview error with smdegrain refine motion, block & overlap size, and color format - andrewschen - 06.10.2026

yes, prefer BestSource works.


RE: VS preview error with smdegrain refine motion, block & overlap size, and color format - Selur - 06.10.2026

Please check:
Does copying Hybrid/64bit/msvcp140.dll to Hybrid/64bit/Vapoursynth/msvcp140.dll fix the problem for you?

If not check that the file LSMASHSource.dll exists and wasn't removed by some virus scanner,..

Cu Selur

Ps.: also uploading VapoursynthR79_torch_2026.10.06, but that will take ~1 hour


RE: VS preview error with smdegrain refine motion, block & overlap size, and color format - andrewschen - 06.10.2026

Quote:Does copying Hybrid/64bit/msvcp140.dll to Hybrid/64bit/Vapoursynth/msvcp140.dll fix the problem for you?

Doesn't do the trick.

Quote:If not check that the file LSMASHSource.dll exists

Exist but in different location.

I got Hybrid_dev_2026.06.25-152245 / Hybrid_dev_2026.10.04-204526 / Hybrid_dev_2026.10.05-203137 on my disk, all with addon installed, and LSMASHSource.dll are all located in HybridFolder\64bit\vsfilters\SourceFilter\LSmashSource (except the avisynth one). Only Hybrid_dev_2026.10.05-203137 will crash at previewing & encoding.

And in the original Hybrid_dev_2026.10.05-20313 (no addon installed yet), LSMASHSource.dll is located in HybridFolder\VapourSynth\Lib\site-packages\vapoursynth\plugins2.


RE: VS preview error with smdegrain refine motion, block & overlap size, and color format - Selur - 06.10.2026

the new torch-add-on should also have the dll under VapourSynth\Lib\site-packages\vapoursynth\plugins2 (should be up in ~20min)


RE: VS preview error with smdegrain refine motion, block & overlap size, and color format - andrewschen - 06.10.2026

Preview and encode now work well.

The Windows Title of Hybrid_dev_2026.10.06-194225 is still Hybrid 2026.10.05.1, and now the width of Hybrid on screen is a lot wider than before... won't fit in 2K screen, have to lower the font size by 2 click, makes it a little bit difficult to read tip and click button. Is it possible to change the default window size back to narrower form in next dev release?


RE: VS preview error with smdegrain refine motion, block & overlap size, and color format - Selur - 07.10.2026

What does Hybrid look like for you?
Not really sure, what is wider?


RE: VS preview error with smdegrain refine motion, block & overlap size, and color format - Selur - 07.10.2026

What does Hybrid look like for you?
Not really sure, what is wider?


RE: VS preview error with smdegrain refine motion, block & overlap size, and color format - Selur - 07.10.2026

I suspect it's related to the Filtering info/log view,.. => looking into it