Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > VapourSynth

Reply
 
Thread Tools Search this Thread Display Modes
Old 5th October 2024, 23:31   #1  |  Link
jay123210599
Registered User
 
Join Date: Apr 2024
Posts: 137
vspreview: Source Not Working

Using LibavSMASHSource (core.lsmas.LibavSMASHSource) for vspreview doesn't even though I have LSMASHSource.dll installed for VapourSynth. How do I fix that?
jay123210599 is offline   Reply With Quote
Old 6th October 2024, 04:56   #2  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,472
No details,...

Quote:
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.
Code:
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.
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 6th October 2024, 05:10   #3  |  Link
jay123210599
Registered User
 
Join Date: Apr 2024
Posts: 137
Quote:
Originally Posted by Selur View Post
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.
Code:
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.
jay123210599 is offline   Reply With Quote
Old 6th October 2024, 07:22   #4  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,472
Quote:
My video is a mkv file
Then you should not use 'core.lsmas.LibavSMASHSource', but 'core.lsmas.LWLibavSource'.
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 7th October 2024, 00:33   #5  |  Link
LightArrowsEXE
Mt. Fuji Encoding Alumni
 
LightArrowsEXE's Avatar
 
Join Date: Nov 2016
Location: Netherlands
Posts: 13
It would really help if you posted your stacktrace so we could take a look at the exact error.
LightArrowsEXE is offline   Reply With Quote
Old 7th October 2024, 19:21   #6  |  Link
jay123210599
Registered User
 
Join Date: Apr 2024
Posts: 137
Quote:
Originally Posted by LightArrowsEXE View Post
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:
Code:
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
jay123210599 is offline   Reply With Quote
Old 8th October 2024, 01:54   #7  |  Link
Z2697
Registered User
 
Join Date: Aug 2024
Posts: 119
Quote:
Originally Posted by Selur View Post
Then you should not use 'core.lsmas.LibavSMASHSource', but 'core.lsmas.LWLibavSource'.
That's the problem. I'll bet 50 cents.

Quote:
Originally Posted by LightArrowsEXE View Post
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/HomeOfAviSynthPlu...orks/issues/73
Z2697 is offline   Reply With Quote
Old 8th October 2024, 06:05   #8  |  Link
LightArrowsEXE
Mt. Fuji Encoding Alumni
 
LightArrowsEXE's Avatar
 
Join Date: Nov 2016
Location: Netherlands
Posts: 13
Quote:
Originally Posted by jay123210599 View Post
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.
LightArrowsEXE is offline   Reply With Quote
Old 8th October 2024, 15:03   #9  |  Link
jay123210599
Registered User
 
Join Date: Apr 2024
Posts: 137
Quote:
Originally Posted by LightArrowsEXE View Post
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.
Code:
[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.
jay123210599 is offline   Reply With Quote
Old 8th October 2024, 15:05   #10  |  Link
LightArrowsEXE
Mt. Fuji Encoding Alumni
 
LightArrowsEXE's Avatar
 
Join Date: Nov 2016
Location: Netherlands
Posts: 13
  1. Are you sure the video is in that location?
  2. If yes, can you send the video file?
LightArrowsEXE is offline   Reply With Quote
Old 8th October 2024, 17:13   #11  |  Link
jay123210599
Registered User
 
Join Date: Apr 2024
Posts: 137
Quote:
Originally Posted by LightArrowsEXE View Post
  1. Are you sure the video is in that location?
  2. If yes, can you send the video file?
Here is it.
https://mega.nz/file/8VBnCTxa#U_PbLd...Oqu6eF8LnpU-9Y
jay123210599 is offline   Reply With Quote
Old 8th October 2024, 18:02   #12  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,470
Quote:
Originally Posted by jay123210599 View Post
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
poisondeathray is offline   Reply With Quote
Reply

Tags
source filter, vapoursynth

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:09.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.