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. |
17th April 2020, 19:35 | #1 | Link |
Soul Architect
Join Date: Apr 2014
Posts: 2,559
|
VapourSynth Setup Problem -- cannot load vsscript.dll
I have installed Python 3.8 and VapourSynth both x64 and x86 versions using the installer on the website.
When I try to run a script, however, it says that "vsscript.dll" cannot be loaded. It seems there's something wrong with the installer. The DLL isn't properly registered to be found? |
17th April 2020, 20:54 | #3 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
Running a script can mean many things, there is a vfw wrapper and there the vs api and different apps use the api in a different way, the most important way is using following reg key:
https://github.com/staxrip/staxrip/b...Server.cpp#L49 If LoadLibrary to this DLL fails then there is probably something wrong with the DLL or something with load time linked DLLs, the OS unfortunately does not tell which DLL.
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
18th April 2020, 00:51 | #4 | Link |
Soul Architect
Join Date: Apr 2014
Posts: 2,559
|
I tried with VapourSynth Editor (says it can't load script resources on startup) and with my VapourSynth Multi-Viewer (fails to load vsscript.dll)
http://www.vapoursynth.com/2014/08/a-new-editor/ If I have to read the DLL path from the registry, then I can do that. ... but also it's failing to open in a video player; and even vspipe.exe is failing on a basic "blankclip" script I'm using Windows 10 x64 |
18th April 2020, 01:29 | #5 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
If you need to research error codes you can use this tool:
https://www.microsoft.com/en-us/down...aspx?id=100432 If there is an issue with load time linked DLLs I think the OS will just show some stupid code like 126 but I read that tools like ProcessMonitor or FileMon can reveal which DLL exactly is the problem. Issues with installing VapourSynth are not exactly uncommon, restarting an app or the OS can help, or re-installing Python and VapourSynth.
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists Last edited by stax76; 18th April 2020 at 01:33. |
18th April 2020, 01:50 | #6 | Link | |||
Soul Architect
Join Date: Apr 2014
Posts: 2,559
|
Opening VapourSynth Editor throws
Quote:
Quote:
Quote:
__________________
FrameRateConverter | AvisynthShader | AvsFilterNet | Natural Grounding Player with Yin Media Encoder, 432hz Player, Powerliminals Player and Audio Video Muxer Last edited by MysteryX; 18th April 2020 at 01:53. |
|||
18th April 2020, 08:22 | #7 | Link |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,795
|
Is python installed globally or is it a per user installation? You are using VS R49? R48 and lower only work with python 3.7.
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database |
24th April 2020, 21:38 | #11 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
I'm usually against codec and runtime packages but if nothing else helps maybe try an AIO VC redist package.
Maybe here is something helpful: https://stackoverflow.com/questions/...error-code-126 You are an experienced programmer, right?
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
26th April 2020, 05:04 | #12 | Link |
Soul Architect
Join Date: Apr 2014
Posts: 2,559
|
Of course I could make it work by explicitely pointing to the right DLL folder, but I'm more concerned about making it work in MPC-HC and making sure it works reliably if I install it on a client computer.
If you tell me the current behavior is "by design", then I could work with it, but that doesn't seem to be the case. |
3rd May 2020, 17:22 | #13 | Link |
Soul Architect
Join Date: Apr 2014
Posts: 2,559
|
Nobody? Ok... how is it designed to work? With Avisynth, we copy Avisynth.dll into the system folder so that it finds it.
Is an application like MPC-HC supposed to find the DLLs on its own? How is the DLL supposed to be found after setup? - system folder - DLL registered in the registry - each application must find the DLL path and load it manually |
3rd May 2020, 20:02 | #14 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
You either find the path through one of the VS registry entries (when installed) or simply assuming it's somewhere in the path (portable version).
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
4th May 2020, 01:13 | #16 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
It's probably an issue of the video player, in mpv it works if both python and vapoursynth are in path and if mpv has some extra configuration:
https://github.com/stax76/mpv.net/bl...anced-features
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
4th May 2020, 17:23 | #18 | Link | |
Soul Architect
Join Date: Apr 2014
Posts: 2,559
|
Quote:
I find it strange, however, that the sample script I was using before is no longer working Code:
import vapoursynth as vs core = vs.get_core() video = core.std.BlankClip(length=100, format=vs.YUV444P8, color=[100, 0, 0]) video.set_output() |
|
6th May 2020, 17:12 | #20 | Link | |
Registered User
Join Date: Sep 2007
Posts: 5,377
|
Quote:
what application are you running that in ? does vspipe give error ? Code:
vspipe --info script.vpy - |
|
|
|