1 (edited by 644517236 28-09-2019 09:08:07)

Topic: Thanks to Chainik, now I use MPV+smplayer for 144, vlc is also work

I'm use Ubuntu18.04.3 with kernel 5.2.0. Use VLC 3.0.8 Player.

I have two problems on using SVP4+VLC in Ubuntu18.04
The first one is about branch R46 of vapoursynth
The second one is about SVPManager cannot work when open videos via VLC.It occur error like main video output error and chain filter error.

You can just view the last two replay in this post.
All system information can be find at the end of post.

Re: Thanks to Chainik, now I use MPV+smplayer for 144, vlc is also work

turn off hw decoder
turn on deinterlace

Re: Thanks to Chainik, now I use MPV+smplayer for 144, vlc is also work

Chainik wrote:

turn off hw decoder
turn on deinterlace

I already turn off hw decoder and turn on deinterlace in VLC, but it doesn't work.

Re: Thanks to Chainik, now I use MPV+smplayer for 144, vlc is also work

any lines in the log?

5 (edited by 644517236 25-09-2019 09:38:25)

Re: Thanks to Chainik, now I use MPV+smplayer for 144, vlc is also work

Chainik wrote:

any lines in the log?

terminal type in vlc.
output:
VLC media player 3.0.8 Vetinari (revision 3.0.8-0-gf350b6b5a7)
[000055e5eb322580] main libvlc error: stale plugins cache: modified /usr/lib/x86_64-linux-gnu/vlc/plugins/video_filter/libvapoursynth_plugin.so
[000055e5eb322580] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[000055e5eb3264f0] main playlist: playlist is empty

when open videos, output is
[00007f55a0bda000] deinterlace filter: Conversion filter created successfully
[00007f55a0bda000] deinterlace filter error: VapourSynth engine error - possibly corrupted installation
[00007f55a173fe30] deinterlace filter error: VapourSynth engine error - possibly corrupted installation
[00007f55a1740800] deinterlace filter error: VapourSynth engine error - possibly corrupted installation
[00007f55a1743880] chain filter error: Too high level of recursion (3)
[00007f55a175fca0] main filter error: Failed to create video converter
[00007f55a1743880] chain filter error: Too high level of recursion (3)
[00007f55a175fca0] main filter error: Failed to create video converter
[00007f55a1743880] chain filter error: Too high level of recursion (3)
......

Re: Thanks to Chainik, now I use MPV+smplayer for 144, vlc is also work

> VapourSynth engine error - possibly corrupted installation

Re: Thanks to Chainik, now I use MPV+smplayer for 144, vlc is also work

Chainik wrote:

> VapourSynth engine error - possibly corrupted installation

I will try reinstall it.

Re: Thanks to Chainik, now I use MPV+smplayer for 144, vlc is also work

it may indiciate some mess with different Python versions, for example
vapoursynth-script.so loads Python any then tries to find the corresponding vapoursynth python module that must be in the correct site-packages dir

Re: Thanks to Chainik, now I use MPV+smplayer for 144, vlc is also work

Chainik wrote:

it may indiciate some mess with different Python versions, for example
vapoursynth-script.so loads Python any then tries to find the corresponding vapoursynth python module that must be in the correct site-packages dir

I have Anaconda, and in order to install vapoursynth, I install python3.7-dev libpython3.7-dev

Re: Thanks to Chainik, now I use MPV+smplayer for 144, vlc is also work

then double-check everything, which python is used by vapoursynth-script.so and where vapousynth.so (a complied python module) is installed
in Windows there's a env variable PYTHONPATH that affect Python's search path, I dunno if it's applicable for Linux too hmm

11 (edited by 644517236 25-09-2019 13:59:55)

Re: Thanks to Chainik, now I use MPV+smplayer for 144, vlc is also work

SVP's control interface is not in VLC's Control interfaces
According  https://www.svp-team.com/wiki/SVP:VLC,   I find that  SVP's control interface is not under Tools -> Preferences, Show settings -> All, Interface -> Control interfaces,  How can I  turned  it on ??
Please help.

Re: Thanks to Chainik, now I use MPV+smplayer for 144, vlc is also work

Linux build is still at ver. 1.0.0.168

13 (edited by 644517236 26-09-2019 03:35:49)

Re: Thanks to Chainik, now I use MPV+smplayer for 144, vlc is also work

When I build Vapoursynth.
git clone https://github.com/vapoursynth/vapoursynth.git
cd vapoursynth
./autogen.sh && ./configure
make -j4
# this line has error, like

CXXLD    libvapoursynth.la
/usr/bin/ld: ./.libs/libexprfilter.a(libexprfilter_la-exprfilter.o): relocation R_X86_64_PC32 against undefined symbol `_ZN12_GLOBAL__N_115ExprCompiler1289constDataE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
Makefile:1166: recipe for target 'libvapoursynth.la' failed
make: *** [libvapoursynth.la] Error 1

But when change to branch R46
git clone https://github.com/vapoursynth/vapoursynth.git
git checkout R46
./autogen.sh && ./configure
make clean && make -j6
sudo make install
It's Passed!
The make result:

CXX      src/filters/misc/libmiscfilters_la-miscfilters.lo
  CC       src/filters/morpho/libmorpho_la-morpho.lo
  CC       src/filters/morpho/libmorpho_la-morpho_filters.lo
  CC       src/filters/morpho/libmorpho_la-morpho_selems.lo
  CXX      src/filters/removegrain/libremovegrain_la-clense.lo
  CXX      src/filters/removegrain/libremovegrain_la-removegrainvs.lo
  CXX      src/filters/removegrain/libremovegrain_la-repairvs.lo
  CXX      src/filters/removegrain/libremovegrain_la-shared.lo
  CXX      src/filters/removegrain/libremovegrain_la-verticalcleaner.lo
  CC       src/filters/vinverse/libvinverse_la-vinverse.lo
  CC       src/filters/vivtc/libvivtc_la-vivtc.lo
  CC       src/cython/vapoursynth_la-vapoursynth.lo
  CXX      src/vspipe/vspipe.o
  CXXLD    libvapoursynth-script.la
ar: `u' modifier ignored since `D' is the default (see `U')
  CXXLD    libsubtext.la
  CCLD     libeedi3.la
  CXXLD    libmiscfilters.la
  CCLD     libmorpho.la
  CCLD     libvinverse.la
  CCLD     libvivtc.la
  CXXLD    vspipe
  CXXLD    libremovegrain.la
  CXXLD    libvapoursynth.la
ar: `u' modifier ignored since `D' is the default (see `U')
  CCLD     vapoursynth.la

the make install result

make[1]: 进入目录“/home/why/vapoursynth”
 /bin/mkdir -p '/usr/local/lib'
 /bin/bash ./libtool   --mode=install /usr/bin/install -c   libvapoursynth.la libvapoursynth-script.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libvapoursynth.so /usr/local/lib/libvapoursynth.so
libtool: install: /usr/bin/install -c .libs/libvapoursynth.lai /usr/local/lib/libvapoursynth.la
libtool: install: /usr/bin/install -c .libs/libvapoursynth-script.so.0.0.0 /usr/local/lib/libvapoursynth-script.so.0.0.0
libtool: install: (cd /usr/local/lib && { ln -s -f libvapoursynth-script.so.0.0.0 libvapoursynth-script.so.0 || { rm -f libvapoursynth-script.so.0 && ln -s libvapoursynth-script.so.0.0.0 libvapoursynth-script.so.0; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libvapoursynth-script.so.0.0.0 libvapoursynth-script.so || { rm -f libvapoursynth-script.so && ln -s libvapoursynth-script.so.0.0.0 libvapoursynth-script.so; }; })
libtool: install: /usr/bin/install -c .libs/libvapoursynth-script.lai /usr/local/lib/libvapoursynth-script.la
libtool: install: /usr/bin/install -c .libs/libvapoursynth.a /usr/local/lib/libvapoursynth.a
libtool: install: chmod 644 /usr/local/lib/libvapoursynth.a
libtool: install: ranlib /usr/local/lib/libvapoursynth.a
libtool: install: /usr/bin/install -c .libs/libvapoursynth-script.a /usr/local/lib/libvapoursynth-script.a
libtool: install: chmod 644 /usr/local/lib/libvapoursynth-script.a
libtool: install: ranlib /usr/local/lib/libvapoursynth-script.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the 'LD_RUN_PATH' environment variable
     during linking
   - use the '-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to '/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
 /bin/mkdir -p '/usr/local/bin'
  /bin/bash ./libtool   --mode=install /usr/bin/install -c vspipe '/usr/local/bin'
libtool: install: /usr/bin/install -c .libs/vspipe /usr/local/bin/vspipe
 /bin/mkdir -p '/usr/local/lib/vapoursynth'
 /bin/bash ./libtool   --mode=install /usr/bin/install -c   libsubtext.la libeedi3.la libmiscfilters.la libmorpho.la libremovegrain.la libvinverse.la libvivtc.la '/usr/local/lib/vapoursynth'
libtool: install: /usr/bin/install -c .libs/libsubtext.so /usr/local/lib/vapoursynth/libsubtext.so
libtool: install: /usr/bin/install -c .libs/libsubtext.lai /usr/local/lib/vapoursynth/libsubtext.la
libtool: install: /usr/bin/install -c .libs/libeedi3.so /usr/local/lib/vapoursynth/libeedi3.so
libtool: install: /usr/bin/install -c .libs/libeedi3.lai /usr/local/lib/vapoursynth/libeedi3.la
libtool: install: /usr/bin/install -c .libs/libmiscfilters.so /usr/local/lib/vapoursynth/libmiscfilters.so
libtool: install: /usr/bin/install -c .libs/libmiscfilters.lai /usr/local/lib/vapoursynth/libmiscfilters.la
libtool: install: /usr/bin/install -c .libs/libmorpho.so /usr/local/lib/vapoursynth/libmorpho.so
libtool: install: /usr/bin/install -c .libs/libmorpho.lai /usr/local/lib/vapoursynth/libmorpho.la
libtool: install: /usr/bin/install -c .libs/libremovegrain.so /usr/local/lib/vapoursynth/libremovegrain.so
libtool: install: /usr/bin/install -c .libs/libremovegrain.lai /usr/local/lib/vapoursynth/libremovegrain.la
libtool: install: /usr/bin/install -c .libs/libvinverse.so /usr/local/lib/vapoursynth/libvinverse.so
libtool: install: /usr/bin/install -c .libs/libvinverse.lai /usr/local/lib/vapoursynth/libvinverse.la
libtool: install: /usr/bin/install -c .libs/libvivtc.so /usr/local/lib/vapoursynth/libvivtc.so
libtool: install: /usr/bin/install -c .libs/libvivtc.lai /usr/local/lib/vapoursynth/libvivtc.la
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/sbin" ldconfig -n /usr/local/lib/vapoursynth
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib/vapoursynth

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the 'LD_RUN_PATH' environment variable
     during linking
   - use the '-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to '/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
 /bin/mkdir -p '/usr/local/lib/python3.7/site-packages'
 /bin/bash ./libtool   --mode=install /usr/bin/install -c   vapoursynth.la '/usr/local/lib/python3.7/site-packages'
libtool: warning: relinking 'vapoursynth.la'
libtool: install: (cd /home/why/vapoursynth; /bin/bash "/home/why/vapoursynth/libtool"  --silent --tag CC --tag disable-static --mode=relink gcc -std=c99 -O3 -fvisibility=hidden -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -Wno-ignored-attributes -I./include -mfpmath=sse -msse2 -fvisibility=default -Wno-implicit-fallthrough -avoid-version -module -o vapoursynth.la -rpath /usr/local/lib/python3.7/site-packages src/cython/vapoursynth_la-vapoursynth.lo libvapoursynth.la )
libtool: install: /usr/bin/install -c .libs/vapoursynth.soT /usr/local/lib/python3.7/site-packages/vapoursynth.so
libtool: install: /usr/bin/install -c .libs/vapoursynth.lai /usr/local/lib/python3.7/site-packages/vapoursynth.la
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/sbin" ldconfig -n /usr/local/lib/python3.7/site-packages
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib/python3.7/site-packages

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the 'LD_RUN_PATH' environment variable
     during linking
   - use the '-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to '/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
 /bin/mkdir -p '/usr/local/lib/pkgconfig'
 /usr/bin/install -c -m 644 pc/vapoursynth.pc pc/vapoursynth-script.pc '/usr/local/lib/pkgconfig'
 /bin/mkdir -p '/usr/local/include/vapoursynth'
 /usr/bin/install -c -m 644 include/VapourSynth.h include/VSHelper.h include/VSScript.h '/usr/local/include/vapoursynth'
make[1]: 离开目录“/home/why/vapoursynth”

Then
sudo gedit ~/.bashrc   add
export PYTHONPATH=/usr/local/lib/python3.7/site-packages:$PYTHONPATH
source ~/.bashrc

vspipe --version
output:
VapourSynth Video Processing Library
Copyright (c) 2012-2019 Fredrik Mellbin
Core R46
API R3.5
Options: -

So, this operation is right? PLEASE Help.

14 (edited by 644517236 26-09-2019 06:33:30)

Re: Thanks to Chainik, now I use MPV+smplayer for 144, vlc is also work

Ubuntu18.04.2
open svp4 with Terminal.
~/SVP4/SVPManager
It's output:
-------------------------------------------------------------------------------------------------------------------------

11:27:52.605 [i]: Main: starting up SVP 4 Linux [4.3.0.168]... 
11:27:52.605 [i]: Main: args: none
11:27:52.606 [i]: Main: working dir is /home/why/SVP4/
11:27:52.606 [i]: Main: data dir set to /home/why/.local/share/SVP4/
11:27:52.606 [i]: Settings: loading reg.cfg OK
11:27:52.606 [i]: Settings: loading main.cfg OK
11:27:52.607 [i]: Settings: loading ui.cfg OK
11:27:52.607 [i]: Settings: loading frc.cfg OK
11:27:52.607 [i]: Settings: loading profiles.cfg OK
11:27:52.607 [i]: Settings: loading custom.cfg OK
11:27:52.607 [i]: Settings: loading lights.cfg OK
11:27:52.608 [i]: Main: using Qt 5.9.5 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 7.4.0)
11:27:52.608 [i]: Main: device scale is 1, user defined scale is 1
11:27:52.608 [i]: Main: system locale is [zh]
11:27:52.609 [i]: Main: preferred language is [zh-cn]
11:27:52.610 [i]: Main: setting language file to zh-cn.qm...
11:27:52.611 [W]: Main: using Chinese server for all network requests
11:27:52.612 [i]: Main: module 'plugins/libsvpflow1_vs64.so': 4.3.0.156
11:27:52.612 [i]: Main: module 'plugins/libsvpflow2_vs64.so': 4.3.0.168
11:27:52.613 [i]: Main: VLC filter (64 bit): 1.0.0.168
11:27:52.613 [i]: Main: running OpenCL info...
11:27:52.623 [i]: Main: collecting system information...
11:27:52.626 [i]: OS: Linux 5.2.0-050200-generic #201907231526 SMP Tue Jul 23 15:29:02 UTC 2019 x86_64
11:27:52.645 [i]: Desktop environment:  / ubuntu / ubuntu:gnome
11:27:52.647 [i]: CPU: Intel Core i5-9400F [base frequency 3923 MHz, 6 threads]
11:27:52.647 [i]: Video: reading OpenCL info...
11:27:52.652 [i]: Video: 1 GPU OpenCL device(s) on NVIDIA CUDA [OpenCL 1.2 CUDA 10.1.120] (NVIDIA Corporation)
11:27:52.652 [i]: Video 1: GeForce GTX 1070 (NVIDIA Corporation, ver.430.40) [gpuID=11]: OK
11:27:52.653 [i]: Memory:  32112  MB total,  21908 MB free
11:27:52.653 [i]: System: finding network settings...
11:27:52.672 [i]: Network: using system-defined proxy server
11:27:52.677 [i]: Screens: updating information, 2 screen(s) found
11:27:52.677 [i]: Screens: screen 0 (DP-0) - 1920x1080 @144.000 Hz, x1.0 [127 DPI]
11:27:52.677 [i]: Screens: screen 1 (DP-3) - 1920x1080 @60.000 Hz, x1.0 [92 DPI]
11:27:52.677 [i]: Screens: primary screen is 0
11:27:52.903 [i]: Main: preparing video profiles...
11:27:53.233 [i]: Main: preparing performance graphs...
11:27:53.283 [i]: Main: preparing mpv...
11:27:53.296 [i]: VLC: installed Vapoursynth plugin: 1.0.0.168
11:27:53.297 [i]: Main: preparing remote control...
11:27:53.297 [E]: RemoteControl: listening error - QAbstractSocket::UnknownSocketError
11:27:53.297 [i]: Main: preparing main menu...
11:27:53.335 [i]: Main: loading extensions...
11:27:53.438 [i]: Main: initialization completed in 815 ms
11:27:53.495 [i]: Updates: checking now...
11:27:55.728 [i]: Performance: quick estimation = 790 (previous value was 789)

Use SVP4 open file  to open a video, it's use vlc,  output:

[00007f4840132140] main video output error: option sout-deinterlace-mode does not exist
libEGL warning: DRI2: failed to authenticate
[00007f4834cc8010] deinterlace filter: Conversion filter created successfully
[00007f483590c9f0] chain filter error: Too high level of recursion (3)
[00007f48358e10b0] main filter error: Failed to create video converter
[00007f483590c9f0] chain filter error: Too high level of recursion (3)
[00007f48358e10b0] main filter error: Failed to create video converter
[00007f483590c9f0] chain filter error: Too high level of recursion (3)
[00007f48358e10b0] main filter error: Failed to create video converter
...
[00007f4840132140] main video output error: Failed to create video converter
[00007f4840132140] main video output error: Failed to compensate for the format changes, removing all filters
[00007f4834cc8010] deinterlace filter: Conversion filter created successfully
[00007f483590be30] chain filter error: Too high level of recursion (3)
[00007f48358e1570] main filter error: Failed to create video converter
[00007f483590be30] chain filter error: Too high level of recursion (3)
...
[00007f4840132140] main video output error: Failed to create video converter
[00007f4840132140] main video output error: Failed to compensate for the format changes, removing all filters
[00007f4834cc88b0] deinterlace filter: Conversion filter created successfully
[00007f48350796d0] chain filter error: Too high level of recursion (3)
[00007f483590c9f0] main filter error: Failed to create video converter
...
[00007f4840132140] main video output error: Failed to create video converter
[00007f4840132140] main video output error: Failed to compensate for the format changes, removing all filters
[00007f4834cc88b0] deinterlace filter: Conversion filter created successfully
[00007f483429a510] chain filter error: Too high level of recursion (3)
[00007f483590be30] main filter error: Failed to create video converter
...
[00007f483590be30] main filter error: Failed to create video converter
[00007f483429a510] chain filter error: Too high level of recursion (3)
[00007f483590be30] main filter error: Failed to create video converter
[00007f48358e1570] main filter error: Failed to create video converter
[00007f4840132140] main video output error: Failed to create video converter
[00007f4840132140] main video output error: Failed to compensate for the format changes, removing all filters
libEGL warning: DRI2: failed to authenticate
[00007f4834cc88b0] deinterlace filter: Running in IPC mode
[00007f4834cc88b0] deinterlace filter: input format: 4cc: I420, picture chroma: I420
[00007f48357eaf20] deinterlace filter: Running in IPC mode
[00007f48357eaf20] deinterlace filter: input format: 4cc: I420, picture chroma: I420

-------------------------------------------------------------------------------------------------------------------------END
I use branch R46 for Vapoursynth
type in  vspipe --version, get

VapourSynth Video Processing Library
Copyright (c) 2012-2019 Fredrik Mellbin
Core R46
API R3.5
Options: -

I open Vapoursynth filter in VLC.  The deinterlace filter is replaced by Vapoursynth filter correctly.

Help me please!

Re: Thanks to Chainik, now I use MPV+smplayer for 144, vlc is also work

there must be something is SVP's log after you turn on deinterlace in VLC
if not then there's probably no connection between VLC's plugin and SVP Manager
do you have /tmp dir with user write access?

16 (edited by 644517236 26-09-2019 11:08:33)

Re: Thanks to Chainik, now I use MPV+smplayer for 144, vlc is also work

Chainik wrote:

there must be something is SVP's log after you turn on deinterlace in VLC
if not then there's probably no connection between VLC's plugin and SVP Manager
do you have /tmp dir with user write access?

Thanks. I  will check.

After turn on VLC in SVP and  turn it off, log like this

19:01:12.711 [i]: VLC: replacing deinterlace filter for '/usr/bin/vlc' ver. 3.0.3: OK
19:01:18.523 [i]: VLC: reverting deinterlace filter for '/usr/bin/vlc' ver. 3.0.3: OK

tmp is like this
drwxrwxrwt  34 root root  80K