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. |
15th July 2020, 22:48 | #3901 | Link |
Inspector Gadget
Join Date: May 2019
Location: BC, Canada
Posts: 14
|
I am getting a "Failed to initialize VapourSynth" error whenever I try to use it. Where can I get a more verbose log?
Vapoursynth: VapourSynth 64bit (R50 final) Frontend: StaxRip (2.1.3.0) Python: Python 3.8.4 64bit (build 3.8.4150.1013) OS: Windows 10 Pro 1909 64bit (build 18363.836) Best available "log": ------------------------ Error opening source ------------------------ Failed to initialize VapourSynth import os, sys import vapoursynth as vs core = vs.get_core() sys.path.append(r"C:\Users\Dante\Desktop\Random\Util\StaxRip-2.1.3.0\Apps\Plugins\VS\Scripts") core.std.LoadPlugin(r"C:\Users\Dante\Desktop\Random\Util\StaxRip-2.1.3.0\Apps\Support\DGDecodeNV\DGDecodeNV.dll") clip = core.dgdecodenv.DGSource(r"G:\2020-07-14 17-14-06_temp\2020-07-14 17-14-06.dgi") clip.set_output() P.S. This crash occurs with any source (LibavSMASHSource/LWLibavsource/DGDecodeNV) Last edited by Exaris; 15th July 2020 at 22:51. Reason: Additional information |
16th July 2020, 01:17 | #3902 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
This message shows when vsscript_init fails which probably means that vapoursynth does generally not work.
Is VapourSynth is installed, for all or current user, in which location? Portable mode is disabled in the staxrip settings? (it's enabled by default) Does the script open in other apps such as VirtualDub2, MPC-BE or VapourSynth Editor?
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
16th July 2020, 01:53 | #3903 | Link |
Inspector Gadget
Join Date: May 2019
Location: BC, Canada
Posts: 14
|
I've uninstalled Vapoursynth and enabled the use of the portable version but the problem persists.
If by "the script" you mean the .vpy file in the _temp folder then yes, MPC-BE plays it just fine. Last edited by Exaris; 16th July 2020 at 02:20. |
16th July 2020, 11:44 | #3904 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
The VapourSynth docs on vsscript_init:
This function will only fail if the VapourSynth installation is broken in some way. Please try the last Beta StaxRip 2.1.3.7. If portable mode is enabled in the settings then the paths in the Apps dialog for VapourSynth and Python should both point to Apps\FrameServer\VapourSynth. Maybe just a runtime is missing, here is an all-in-one package: https://github.com/abbodi1406/vcredi...es/tag/v0.33.0
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
16th July 2020, 18:46 | #3905 | Link |
Inspector Gadget
Join Date: May 2019
Location: BC, Canada
Posts: 14
|
I've just tried the beta, same problem.
Portable mode is enabled and pointing to Apps\FrameServer\VapourSynth. I installed that repack and its still not working. Also MPC-BE plays the .vpy in _temp perfectly as well. |
20th July 2020, 14:51 | #3906 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
I'm not dead, just working on the next big api version. Proper graph dumping included.
https://www.dropbox.com/s/k6m0uxfy9l...phviz.svg?dl=0
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
21st July 2020, 07:49 | #3907 | Link |
Registered User
Join Date: Jul 2003
Location: India
Posts: 890
|
In one of the functions of my plugin I return a frame of same input format but having different width and height, as in stack horizontal or any resize filter. I get a new frame of these dimensions, but I think I should not return this as subsequent filters will be unaware. Where can I look at the source code of resize to learn the coding required. As vi is a const I am prevented to change it.
|
21st July 2020, 08:04 | #3908 | Link | |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
Quote:
https://github.com/vapoursynth/vapou...ilters.c#L1143
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
|
23rd July 2020, 16:13 | #3909 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
Usage question of the day:
Does anyone actually use the --start and --end arguments of vspipe?
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
23rd July 2020, 18:15 | #3910 | Link |
Registered User
Join Date: Sep 2010
Location: Ukraine, Bohuslav
Posts: 377
|
Yes, but rare. It was good for partial renders when I was lazy to copy script with different trims and just made a list of commands with different -s -e options and output names.
Last edited by DJATOM; 23rd July 2020 at 23:01. Reason: typo |
23rd July 2020, 20:31 | #3911 | Link |
Registered User
Join Date: Mar 2018
Posts: 447
|
Yes. I need them on some scripts which are not utilizing the cores efficiently. So I split the clip into ranges and run them simultaneously and combine the parts in the end. This can be up to 12 times faster than running the script as is (Ryzen 3900X).
|
23rd July 2020, 21:19 | #3912 | Link | |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
Quote:
https://staxrip.readthedocs.io/usage...chunk-encoding
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
|
23rd July 2020, 22:10 | #3913 | Link |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,795
|
I use it sometimes too.
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database |
24th July 2020, 09:59 | #3915 | Link | |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,795
|
Quote:
Code:
import functools def MyFunc(n, c): if (n % 2) == 0: return c.text.Text("Frame: " + str(n)) else: return c.text.Text("Frame: " + str(n)).text.Text("\nThats odd...") clip = core.std.FrameEval(clip, functools.partial(MyFunc, c=clip))
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database Last edited by ChaosKing; 24th July 2020 at 10:03. |
|
24th July 2020, 10:53 | #3916 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
You have successfully saved the --start and --end arguments then.
Now for the new vspipe experiment of the day. How many of your scripts would break if --preserve-cwd was made the default option?
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
24th July 2020, 11:14 | #3917 | Link |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,795
|
Looks like zero breaks for me.
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database |
24th July 2020, 17:21 | #3919 | Link |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,795
|
cwd = current working dir
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database |
26th July 2020, 11:47 | #3920 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
R51-RC1
This should be a quick release process. Only bug fixes this time (and probably forever until the glorious audio branch is ready) Code:
r51: updated visual studio 2019 runtime version fixed an extremely rare threading issue only affecting fmparallelrequests filters and arframeready events fixed compilation when avs+ master is used fixed lut and lut2 triggering a fatal error when invalid planes were specified fixed property append operations on non-empty keys not properly copying the underlying data fixed wave64 headers generated by avfs fixed crash in averageframes with odd number of clips (sekrit-twc) scale averageframes for integer chroma by distance from grey (sekrit-twc) several fixes and improvements regarding handling of the active script environment in python (stuxcrystal) plugin loading now has better error messages (jackoneill) using get_core() in python now generates a deprecation warning since it's been deprecated for years
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
Tags |
speed, vaporware, vapoursynth |
Thread Tools | Search this Thread |
Display Modes | |
|
|