Compilation problems
Hi,
I have compiled this vapoursynth plugin with the following script:
#!/bin/sh
git clone https://gitlab.com/EleonoreMizo/fmtconv.git temp/fmtconv
cd temp/fmtconv
cd build/unix
autoreconf -if
./configure
make
sudo mv .libs/libfmtconv.so /opt/vapoursynth/vsplugins/
cd ../../../..
rm -rf temp
The file libfmtconv.so
is correctly added to the vsplugins vapoursynth folder. Despite of that vapoursynth does not seem to find it, because I get the following error:
vspipe --info /mnt/data/fmtconv/test.vpy
Script evaluation failed:
Python exception: There is no attribute or namespace named fmtc. Did you mistype a plugin namespace or forget to install a plugin?
Traceback (most recent call last):
File "src/cython/vapoursynth.pyx", line 3378, in vapoursynth._vpy_evaluate
File "src/cython/vapoursynth.pyx", line 3379, in vapoursynth._vpy_evaluate
File "/mnt/data/fmtconv/test.vpy", line 121, in <module>
fin = res.fmtc.bitdepth(bits=8, dmode=3)
^^^^^^^^
File "src/cython/vapoursynth.pyx", line 2167, in vapoursynth.VideoNode.__getattr__
AttributeError: There is no attribute or namespace named fmtc. Did you mistype a plugin namespace or forget to install a plugin?
Here is the proof:
[redacted]@[redacted]:/opt/vapoursynth/vsplugins$ ls -alh | grep fmtc
-rwxrwxr-x 1 [redacted] [redacted] 33M Oct 5 16:14 libfmtconv.so
Vapoursynth is configured to load the plugins from that folder with the following file under $HOME/.config/vapoursynth/vapoursynth.conf
SystemPluginDir=/opt/vapoursynth/vsplugins
Here is the vpy script to test the plugin:
import vapoursynth as vs
core = vs.core
src = core.bs.VideoSource("source.mkv", cachemode=4)
fin = core.fmtc.bitdepth(src, bits=8, dmode=3)
fin.set_output()
I am pretty confused right now, bestsource works fine so I don't know why just fmtconv does not work properly. Do you have any suggestion?
Thanks in advance
Edited by Mario Rossi