1 (edited by Michael_MW 24-10-2016 08:07:57)

Topic: VapourSynth engine error + not detecting playback[MacOS Sierra][SVP 4]

Bug:
SVP does not detect any active playback

I'm on mac 10.12 Sierra.
Followed all the steps from here:
https://www.svp-team.com/wiki/SVP:Mac
Tried both MPV and VLC, both played as if SVP is not on at all.
Tried "Open File..." from SVP. No response.

When I switch on "Deinterlace" in VLC, the log reads "VapourSynth engine error":

Log with VLC:
...
deinterlace error: VapourSynth engine error - possibly corrupted installation
core debug: no video filter2 modules matched
core error: Failed to create video filter2 'deinterlace'
core error: Failed to add filter 'deinterlace'
...

So I suspect it's VapourSynth installation problem.
I tried reinstalling VapourSynth alone,
as well as reinstalling VapourSynth + MPV together.

Since I'm using anaconda python, I also tried adding VapourSynth to python path by putting in ~/.bash_profile
"export PYTHONPATH="${PYTHONPATH}:/usr/local/lib/python3.5/site-packages""

I made sure in python3, "import vapoursynth" can work.
I made sure in terminal, "vspipe -v" can work.

Still, the problem is there. SVP does not detect any active playback. It's like SVP is not running at all.

Just bought SVP for Mac because I had great experience with Windows. But trying to debug this has been frustrating.
Anyone could help? Thanks in advance!

Re: VapourSynth engine error + not detecting playback[MacOS Sierra][SVP 4]

> But trying to debug this has been frustrating.

the obvious mistake is "anaconda python"
on a clean Sierra SVP installation is as easy as one-two-three wink

Re: VapourSynth engine error + not detecting playback[MacOS Sierra][SVP 4]

bash-3.2$ otool -L /usr/local/bin/mpv
/usr/local/bin/mpv:
    ...
    /usr/local/opt/vapoursynth/lib/libvapoursynth-script.0.dylib (compatibility version 1.0.0, current version 1.0.0)
    /usr/local/opt/vapoursynth/lib/libvapoursynth.dylib (compatibility version 0.0.0, current version 0.0.0)
    ...

bash-3.2$ otool -L /usr/local/opt/vapoursynth/lib/libvapoursynth-script.dylib 
/usr/local/opt/vapoursynth/lib/libvapoursynth-script.dylib:
    /usr/local/opt/python3/Frameworks/Python.framework/Versions/3.5/Python (compatibility version 3.5.0, current version 3.5.0)
    ...

bash-3.2$ ls -l /usr/local/opt/python3
lrwxr-xr-x  1 chainik  admin  25 Oct 22 17:57 /usr/local/opt/python3 -> ../Cellar/python3/3.5.2_3

I'll try to make a research on how all of this can co-exists with Anaconda installation...

Re: VapourSynth engine error + not detecting playback[MacOS Sierra][SVP 4]

Hey Chainik,

Thank you for the quick response. You are pointing to the right direction. It's fixed now.

So first, I tired
"otool -L /usr/local/bin/mpv| grep libvapoursynth", which is normal.
However, "otool -L /usr/local/opt/vapoursynth/lib/libvapoursynth-script.dylib" show that python 3.5 is not linked to anaconda but to brew cellar.
"ls -l /usr/local/opt/python3" is normal

So I uninstalled and reinstalled python3 with brew.
This redirected "otool -L /usr/local/opt/vapoursynth/lib/libvapoursynth-script.dylib" to anaconda.

Then I uninstalled and reinstalled SVP and vapoursynth. And now it's working properly!

Cheers,

Michael