View Full Version : vspreview: Source Not Working
jay123210599
5th October 2024, 23:31
Using LibavSMASHSource (core.lsmas.LibavSMASHSource) for vspreview doesn't even though I have LSMASHSource.dll installed for VapourSynth. How do I fix that?
Selur
6th October 2024, 04:56
No details,...
I have LSMASHSource.dll installed for VapourSynth
What does 'installed' mean exactly? Maybe you did something wrong there?
If the dll isn't located inside a folder that is scanned for autoloading, Vapoursynth won't know about it.
In case you use a portable version of Vapoursynth, you might need to load the plugin.
core.std.LoadPlugin(path="F:/Hybrid/64bit/vsfilters/SourceFilter/LSmashSource/LSMASHSource.dll")
clip = core.lsmas.LibavSMASHSource(source="G:/TestClips&Co/files/5000frames.mp4")
works fine here.
If your source isn't a mp4/mov you should not use LibavSMASHSource, but LWLibavSource.
Also, Vapoursynth should report some error which hints into what is going wrong in your setup.
jay123210599
6th October 2024, 05:10
No details,...
What does 'installed' mean exactly? Maybe you did something wrong there?
If the dll isn't located inside a folder that is scanned for autoloading, Vapoursynth won't know about it.
In case you use a portable version of Vapoursynth, you might need to load the plugin.
core.std.LoadPlugin(path="F:/Hybrid/64bit/vsfilters/SourceFilter/LSmashSource/LSMASHSource.dll")
clip = core.lsmas.LibavSMASHSource(source="G:/TestClips&Co/files/5000frames.mp4")
works fine here.
If your source isn't a mp4/mov you should not use LibavSMASHSource, but LWLibavSource.
Also, Vapoursynth should report some error which hints into what is going wrong in your setup.
My video is a mkv file, and the .dll is in the plugins64 folder.
Selur
6th October 2024, 07:22
My video is a mkv file
Then you should not use 'core.lsmas.LibavSMASHSource', but 'core.lsmas.LWLibavSource'.
LightArrowsEXE
7th October 2024, 00:33
It would really help if you posted your stacktrace so we could take a look at the exact error.
jay123210599
7th October 2024, 19:21
It would really help if you posted your stacktrace so we could take a look at the exact error.
Here's the information of my video:
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L5.1
Format settings : CABAC / 11 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 11 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 23 min 3 s
Bit rate : 1 574 kb/s
Nominal bit rate : 1 974 kb/s
Width : 640 pixels
Height : 480 pixels
Display aspect ratio : 4:3
Frame rate mode : Constant
Frame rate : 24.000 FPS
Original frame rate : 29.970 (30000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.214
Stream size : 260 MiB (76%)
Writing library : x264 core 49 svn-546M
Encoding settings : cabac=1 / ref=8 / deblock=1:-6:-6 / analyse=0x3:0x133 / me=umh / subme=6 / brdo=1 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / chroma_qp_offset=0 / slices=1 / nr=0 / decimate=1 / bframes=3 / b_pyramid=1 / b_adapt=1 / b_bias=0 / direct=3 / wpredb=1 / bime=1 / keyint=250 / keyint_min=25 / scenecut=40 / rc=2pass / bitrate=1974 / ratetol=1.0 / rceq='blurCplx^(1-qComp)' / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / pb_ratio=1.30
Default : Yes
Forced : No
https://imgur.com/6MAn8eT
Z2697
8th October 2024, 01:54
Then you should not use 'core.lsmas.LibavSMASHSource', but 'core.lsmas.LWLibavSource'.
That's the problem. I'll bet 50 cents.
It would really help if you posted your stacktrace so we could take a look at the exact error.
;) In the meantime can you help with this:
https://github.com/HomeOfAviSynthPlusEvolution/L-SMASH-Works/issues/73
LightArrowsEXE
8th October 2024, 06:05
Here's the information of my video:
Could you post the full error it gives you (which is the stacktrace)? If that doesn't work, upload your video so we can look at that directly, please.
jay123210599
8th October 2024, 15:03
Could you post the full error it gives you (which is the stacktrace)? If that doesn't work, upload your video so we can look at that directly, please.
[importer: Error]: failed to find the matched importer.
2024-10-08 07:01:04.323: root: ERROR: Traceback (most recent call last):
File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\vsengine\vpy.py", line 219, in _execute
runpy.run_path(str(script), module.__dict__, module.__name__)
File "<frozen runpy>", line 286, in run_path
File "<frozen runpy>", line 98, in _run_module_code
File "C:\Users\User\AppData\Local\Programs\Python\Python312\Lib\site-packages\vspreview\core\vsenv.py", line 36, in _monkey_runpy_func
glob_dict = orig_runpy_run_code(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen runpy>", line 88, in _run_code
File "C:\Users\Jalen\Downloads\comp pys\4\comp.py", line 13, in <module>
clip3 = core.lsmas.LibavSMASHSource(r"C:\Users\User\Downloads\Video Folder\video.mkv")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "src\\cython\\vapoursynth.pyx", line 3110, in vapoursynth.Function.__call__
vapoursynth.Error: lsmas: failed to open file.
LightArrowsEXE
8th October 2024, 15:05
Are you sure the video is in that location?
If yes, can you send the video file?
jay123210599
8th October 2024, 17:13
Are you sure the video is in that location?
If yes, can you send the video file?
Here is it.
https://mega.nz/file/8VBnCTxa#U_PbLdMeqP44Z-C5fyxd05_1ajL5kOqu6eF8LnpU-9Y
poisondeathray
8th October 2024, 18:02
clip3 = core.lsmas.LibavSMASHSource(r"C:\Users\User\Downloads\Video Folder\video.mkv")
vapoursynth.Error: lsmas: failed to open file.[/CODE]
Please read Selur's posts above.
You cannot open a mkv with core.lsmas.LibavSMASHSource - that function is only for MP4/MOV/ISO base media
Use core.lsmas.LWLibavSource for other container formats such as MKV
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.