Posts: 10.980
Threads: 57
Joined: May 2017
Something is 'off' with the vapoursynth build.
Calling:
/home/selur/opt/hybrid/vsfilters_env.sh "/home/selur/opt/hybrid/vsViewer" --preview-only "/home/selur/Schreibtisch/HybridTemp/tempPreviewVapoursynthFile21_14_18_848.vpy" --aspect 1 --matrix Rec601
with:
# Imports
import vapoursynth as vs
core = vs.get_core()
# Loading source using FFMS2
clip = core.ffms2.Source(source="/home/selur/Schreibtisch/test.avi",cachefile="/home/selur/Schreibtisch/HybridTemp/avi_77c74b7b15937c7267959c738c5ee2fa_936145377.ffindex",format=vs.YUV420P8,alpha=False)
# making sure input color matrix is set as 470bg
clip = core.resize.Point(clip, matrix_in_s="470bg",range_s="limited")
# making sure frame rate is set to 25/1
clip = core.std.AssumeFPS(clip, fpsnum=25, fpsden=1)
# Setting color range to TV (limited) range.
clip = core.std.SetFrameProp(clip=clip, prop="_ColorRange", intval=1)
# Output
clip.set_output()
in the vapoursynth script, results in:
VapourSynth plugins manager: Failed to get VapourSynth API!
Failed to initialize VapourSynth
first time I see: 'Failed to get VapourSynth API'
Cu Selur
Posts: 76
Threads: 2
Joined: May 2017
I don't know. I guess the vapoursynth Python module isn't loaded somehow.
I built it on Ubuntu 16.04, tested it with "vspipe --version" on Ubuntu 18.04 and didn't get the "Failed to get ..." error.
Check the content of env.sh and vapoursynth.conf.
Edit: to clarify, I ran build-vapoursynth.sh on Ubuntu 16.04 and install-vs.sh on Ubuntu 18.04.
Posts: 10.980
Threads: 57
Joined: May 2017
07.08.2019, 05:13
(This post was last modified: 07.08.2019, 17:50 by Selur.)
I ran build-vapoursynth.sh on Ubuntu 16.04 and install-vs.sh on Ubuntu 19.04.
Calling vspipe on it's own without calling the env.sh gives me:
selur@selur-VirtualBox:~/opt/vapoursynth$ ./vspipe --version
Failed to initialize VapourSynth environment
and
selur@selur-VirtualBox:~/opt/vapoursynth$ ~/opt/hybrid/vsfilters_env.sh ~/opt/vapoursynth/vspipe --version
sourcing /home/selur/opt/vapoursynth/env.sh
Failed to initialize VapourSynth environment
with the env, where
vsfilters_env.sh contains:
#!/bin/sh
scriptDir="$(dirname "$(readlink -f "$0")")"
env="$HOME/opt/vapoursynth/env.sh"
if [ -f "$env" ]; then
echo "sourcing $env"
. "$env"
else
echo "'$env' does not exist!"
fi
$*
home/selur/opt/vapoursynth/env.sh contains:
# source this file with
# . "/home/selur/opt/vapoursynth/env.sh"
export LD_LIBRARY_PATH="/home/selur/opt/vapoursynth/lib:$LD_LIBRARY_PATH"
export PYTHONPATH="/home/selur/opt/vapoursynth/lib/python3/site-packages:$PYTHONPATH"
/home/selur/.config/vapoursynth/vapoursynth.conf contains:
SystemPluginDir=/home/selur/opt/vapoursynth/vsplugins
Cu Selur
Ps.: a new DTTTest version is out which uses arrays instead of the strings.
Posts: 76
Threads: 2
Joined: May 2017
Does it work if you open a terminal and manually set all the paths and run vspipe?
Posts: 10.980
Threads: 57
Joined: May 2017
09.08.2019, 16:16
(This post was last modified: 10.08.2019, 09:12 by Selur.)
No
selur@selur-VirtualBox:~$ export LD_LIBRARY_PATH="/home/selur/opt/vapoursynth/lib:$LD_LIBRARY_PATH"
selur@selur-VirtualBox:~$ export PYTHONPATH="/home/selur/opt/vapoursynth/lib/python3/site-packages:$PYTHONPATH"
selur@selur-VirtualBox:~$ ~/opt/vapoursynth/vspipe --version
Failed to initialize VapourSynth environment
sicne the previous variant, where vapoursynth was build on the system worked, my guess is that something if 'off' with the vapoursynth building,..
Posts: 76
Threads: 2
Joined: May 2017
I'll set up Ubuntu 19.04 and test it.
Posts: 10.980
Threads: 57
Joined: May 2017
Did you find the cause of the problem?
May be compiling the plugins with Hybrid and just compiling and installing Vapoursynth on the guest system is the more workable way to go.
Cu Selur
Posts: 76
Threads: 2
Joined: May 2017
(17.08.2019, 09:40)Selur Wrote: Did you find the cause of the problem?
May be compiling the plugins with Hybrid and just compiling and installing Vapoursynth on the guest system is the more workable way to go.
Cu Selur
Haven't done anything yet besides installing Ubuntu 19.04 in Virtualbox, sorry. The problem could be related to a not-so-obvious dependency issue or a configuration thing. Yeah, I guess compiling on the guest system may be better, even though that can take a while if you want to include all plugins plus you still have to build imagemagick and ffmpeg libraries. I mean, you could try to bundle python but that's probably overkill. On the plus side, compiling on the guest system allows to build with "-march=native" which may give some minor speed improvements later.
Posts: 10.980
Threads: 57
Joined: May 2017
So, if you don't find the dependency issue let's go back to adding a build-vs-plugins and build-vapoursynth which compile vapoursynth and the plugins and place them under ~/opt/vapoursynth.
Cu Selur
Posts: 10.980
Threads: 57
Joined: May 2017
vsViewer and vsEdit both have problems with the new R47 API, seems like some problem with the getVSApi functionality and stuff marked deprecated that doesn't work anymore,..
-> looking into it