Re: SVP 4 Linux

> This option is not available. Please see --help for all possible usages

this message is not from SVPManager

302 (edited by Luximal 11-12-2020 14:09:18)

Re: SVP 4 Linux

Hi, using void linux and mpv/smplayer.

Svp works great on the 5.8 kernel, but on 5.9 it does not detect my gtx 1080. It should not be the nvidia 5.9 problem since my steam games work fine with my gpu.
Tried reinstalling Svp, drivers etc. , nothing worked

Re: SVP 4 Linux

if drivers are installed and work and clinfo shows the gpu device --> SVP will also work
otherwise SVP won't work
simple big_smile

304 (edited by Sinity 16-12-2020 16:49:01)

Re: SVP 4 Linux

I'm also trying to run it on nixos. I wrote all of the progress/details so far here: https://github.com/NixOS/nixpkgs/issues/64344

libsvpflow works, SVP Manager - same problem, "This option is not available. Please see --help for all possible usages". It comes from the 'zenity' - SVP Manager still fails even if it's not present through. I have no clue why.

As for error 255, it's about missing ocl-icd package -  and it needs to be specified in hardware.opengl.extraPackages list. That should put libOpenCL into /run/opengl-driver/lib.

Then libsvpflow needs to have that in it's rpath. In the linked github comment I've included "svpflow.nix" derivation: it only installs the libs without SVP Manager (which doesn't work), and they're available under /run/current-system/sw/lib/libsvpflow1_vs64.so (and the same for 2).

305

Re: SVP 4 Linux

@Sinity

I feel as though just using libsvpflow directly is more nix-like since it's declarative, and creating an mpv script package for home-manager would be better. It would let you configure svp using a .nix file instead of through svp-manager.

306 (edited by Nintendo Maniac 64 23-05-2021 03:56:55)

Re: SVP 4 Linux

I've recently come into possession of an A8-7600 and have been trying and failing to get OpenCL GPU acceleration working on the newly-released Linux Mint 20.1. UPDATE: AMD's GPU driver selector on their website is a derp - the solution is to say your GPU is an R9 290X and just use the provided Ubuntu 20.04 drivers since the R9 290X uses the same GPU architecture, GCN2, as the A8-7600.


First off, even on a fresh OS installation, mpv+vapoursynth wouldn't compile unless I first installed harfbuzz from the package manager.  After that it all seemed to install fine...

...except that the ".run" file for SVP straight up wouldn't run as if it was a corrupt or incomplete file.  I even tried re-installing the snap store and even that didn't work.

https://ttm.sh/dO5.png

But I was able to run it without issue around 2 years ago, so sure enough I was able to find an older version through archive.org that similarly "just worked", the key point being the archive itself is named "svp4-linux-64.tar.brz" without any version number as all the newer versions with the version number in the .tar.brz result in the "simply doesn't work", and from there I was able to just run the built-in updater to upgrade to whatever the latest version of SVP was:

https://web.archive.org/web/20190701200 … ux-64.tbz2

https://ttm.sh/dOG.png


Once I got that installed, the issue was the thing I said at the top - I seem to be unable to get OpenCL GPU acceleration working.  I know historically you're supposed to install the proprietary driver, but it doesn't seem to support Ubuntu 20.04 LTS and derivative OSes (e.g. Linux Mint 20.x).  From what I can tell, including on the SVP wiki's page for Linux, you're supposed to use ROCm for OpenCL nowadays, and while it seemed like I was able to successfully install ROCm, it made no difference with regards to enabling OpenCL GPU support in SVP.

I tried to also follow a process to install only the OpenCL driver from the AMDGPU-PRO driver but...well, it pretty much borked up my video drivers altogether (it was a completely fresh OS install so doing another fresh OS install is no big deal).


So yeah uh, I'm not particularly concerned about the newest SVP installer not running at all, but I definitely want to get GPU OpenCL functioning and am hoping people have insight on the process. UPDATE: AMD's GPU driver selector on their website is a derp - the solution is to say your GPU is an R9 290X and just use the provided Ubuntu 20.04 drivers since the R9 290X uses the same GPU architecture, GCN2, as the A8-7600.

307 (edited by Nintendo Maniac 64 15-04-2021 00:18:30)

Re: SVP 4 Linux

Apologies for the double-post, but I just wanted to clarify a few things.  And PSA, the "list" forum bbcode seems broken.


First off, on Linux Mint 20.1, you need to first run the following command or else the mpv+vapoursynth compilation will fail:

sudo apt install libicu-le-hb-dev

(this may be required on Mint 20.0 as well, but you'll first want to enable the setting "Consider recommended packages as dependencies" in the package manager)


Secondly, AMD's newest vendor-supplied Linux driver does in fact support GCN 2-based GPUs, but you need to know where to find said driver.  For example, if you put in a GCN 2-based APU on amd.com, there's a very high chance that it'll simply list an old pre-Ubuntu 18 driver.  What you need to do is instead get the driver on amd.com for the discrete GPU the "R9 290" which is in fact GCN 2-based yet has a driver listed for Ubuntu 20.04:

https://www.amd.com/en/support/graphics … eon-r9-290


Thirdly, when actually installing AMD's vendor-supplied Linux driver, you definitely need to append the "--opencl=legacy" argument or you simply won't get OpenCL support on GCN 2-based GPUs.  This means navigating to the folder that you extracted the downloaded driver archive to, opening a terminal session in that folder, and running the following command:

./amdgpu-install --opencl=legacy

Lastly, for whatever reason, SVP's newest Linux installer straight-up doesn't work on Linux Mint (I tested on both 20.1 and 19.3 - neither worked).  You must instead get an older installer for SVP v4.3 which will in fact "just work":

https://web.archive.org/web/20190701200 … ux-64.tbz2

Once installed you can then update SVP to v4.5 through the built-in update manager without any issue at all.


----------------------------------------------------------------


Oh and BTW, trying to run SVP on a GCN 1-based GPU at this point in time seems to be a bit of a no-man's land in terms of support.  AMD's vendor-supplied driver only supports GCN 1 up to Ubuntu 18.04, but without djcj's PPA (which "just worked" on Ubuntu 18.04-based distros) it seems like it's not possible to actually get mpv+vapoursynth working on Ubuntu 18.04 (even after I installed all the necessary additional dependencies and everything seemed to install fine...mpv wouldn't actually launch), and I wasn't able to get the SVP-in-VLC deinterlace-replacement filter working either.

Also trying to run OpenCL with AMDGPU on Mint 20.1 (Ubuntu 20.04) with a GCN 1-based GPU didn't get me anywhere either.  The farthest I got was, after compiling the 5.4.0-54 kernel with the necessary configurations so that it uses AMDGPU rather than radeon, and installing the newest vendor-provided AMDGPU driver via the same command as above, it throw up an error but, after rebooting, SVP would see my GPU...but it itself would throw up an error.  I was able to avoid any errors when installing AMDGPU by additionally appending the "--no-dkms" argument, but that didn't change the OpenCL error message result in SVP.

clinfo: https://ttm.sh/dXj.txt
Mirror: https://archive.is/13xNy

SVP log: https://ttm.sh/dX_.log
Mirror: https://archive.is/5bwPD

And no, installing kernel 5.10 (which includes improved support for GCN 1-based GPUs) onto Mint 20.1 didn't work either as it not only resulted in no graphics acceleration but the AMDGPU driver refused to install altogether with that kernel.


So for the time being I hope you have an existing OS installation that used djcj's PPA, otherwise unless you're a Linux guru you may be out of luck for the time being with regards to using a GCN 1-based GPU with SVP until kernel 5.10+ becomes built-in to distros or mesa's OpenCL image support for AMD GPUs gets out of draft state (I even tried Oibaf's PPA for much more updated mesa drivers but it seems like mesa's AMD OpenCL image support truly is not available yet - https://gitlab.freedesktop.org/mesa/mes … uests/7241).

308 (edited by motig 27-01-2021 15:38:16)

Re: SVP 4 Linux

labre wrote:

mpv breaks with:

mesa: CommandLine Error: Option 'help-list' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options

I am having almost the same problems. But for me even the "assess performance" in SVP Manager crashes at 66% with:

15:42:22.607 [i]: Performance: motion vectors estimation = 2473
15:42:33.120 [i]: Performance: CPU-based frame rendering = 4052
realloc(): invalid pointer
Neúspěšně ukončen (SIGABRT)

mpv crashes with the aforementioned mesa error (no matter what video output I choose, even with vo=null). I have tried vlc, with the same result, except the Mesa error now appears in SVP log.
From what I've found on the web, it is probably caused by a LLVM version mismatch. What LLVM version are you building SVP with at the moment? I'm currently running SVP 4.5.0.205

LLVM 10.0.1
mesa 20.2.4
vapoursynth 52
mpv 0.33.0
vlc 3.0.11.1
kernel 5.10.5

I have attached clinfo and SVP log. The SVP log first runs mpv, then VLC, then the performance test which crashes it.

Post's attachments

clinfo.log 10.35 kb, 271 downloads since 2021-01-27 

svp.log 6.27 kb, 254 downloads since 2021-01-27 

Re: SVP 4 Linux

Hi,

I want to use the SVP for a VR Glass. (Cinera)
I tried to install on Ubuntu 20.04. but it doesnt work:

Message from Ubuntu:

https://s12.directupload.net/images/210205/uxb5ewyn.png



Any help?

kind regards
seifenchef

Re: SVP 4 Linux

some dependency is not installed

Re: SVP 4 Linux

ok, thanks

but there is no way to say what is 'some' ?
(I'm not a computer-freak)

it's better to install a version for WIN10 ?
(i have dual-boot)


kind regards
seifenchef

Re: SVP 4 Linux

https://www.svp-team.com/wiki/SVP:Linux#Ubuntu_packages

313 (edited by seifenchef 06-02-2021 18:14:44)

Re: SVP 4 Linux

Ok, I managed to install something from SVP.
Two problems remain:


1. How do I get an icon on the desktop?


Once you've closed the program, it's gone! !
(it still works, but you can no longer access the user interface))
The program cannot be found with the Linux functions at all!
After all, you want to change something in the settings from time to time, e.g. whether the frame rate should be doubled or tripled ...


2. It still doesn't work with VLC Player,

it only works with mpv media player

How can I install 'VLC support-package' and 'Vapoursynth'?


https://s12.directupload.net/images/210206/vnvluqa5.png


kind regards
seifenchef

Post's attachments

SVP Messung GeForce RTX 2060.jpg 188.56 kb, 122 downloads since 2021-02-06 

314 (edited by Nintendo Maniac 64 13-02-2021 07:23:38)

Re: SVP 4 Linux

While reading through various 4-year old posts in this thread, I can't help but notice that Chainik nowadays seems a bit less...joyful shall we say (at least in this thread he is; I've admittedly kind of taken to ignoring the rest of the "Using SVP" forum now that I'm doing more and more with Linux).


seifenchef wrote:

1. How do I get an icon on the desktop?

Once you've closed the program, it's gone! !
(it still works, but you can no longer access the user interface))
The program cannot be found with the Linux functions at all!
After all, you want to change something in the settings from time to time, e.g. whether the frame rate should be doubled or tripled ...


Is this not the issue about SVP running without the tray icon being visible, an issue I had back six years ago with Linux Mint 18.1?:


Nintendo Maniac 64 wrote:
Chainik wrote:

> there seems to be no way to have SVP running without the SVP control panel also being open

run it with "-tray" arg

I realize I'm pretty much literally a month late on this, but this is exactly what I was looking for, especially since it makes SVP behave like it does on Windows and the program even remembers this setting! (so when you have a video file associated with SVP, it only launches the SVP tray and not the SVP control panel window).

However, this does beg the question...why is this not the default behavior?  As I mentioned, this is how it behaves on Windows, so I would think that consistent behavior between different platforms would be ideal...

315 (edited by subluminal 02-04-2021 16:22:36)

Re: SVP 4 Linux

Installing amd's proprietary driver in Mint would cause far more harm than good. In Linux Mesa in general not only outperforms amd's own closed-source drivers but also is far easier to install. For opencl you need an icd loader. Did you try and install mesa-opencl-icd? For amd gpus, you need mesa and mesa icd, that's pretty much it. Also, mesa should already have been installed when you installed Mint 20 or LMDE4.

And, seifenchef, why did you install svp in /root directory? Your user doesn't have permission to run any binaries in /root, only root does. That's why that error is popping up.

316 (edited by Nintendo Maniac 64 12-04-2021 02:49:49)

Re: SVP 4 Linux

subluminal wrote:

In Linux Mesa in general not only outperforms amd's own closed-source drivers but also is far easier to install.

I'm well aware of that, but the one thing mesa's OpenCL lacks that SVP needs is "image support" (scroll down near the bottom under "OpenCL 1.0"): https://mesamatrix.net/

To clarify, I asked about this around two years ago and Chainlink established to me that the lack of image support was the sticking point:
https://www.svp-team.com/forum/viewtopi … 502#p71502

Therefore one cannot use mesa's OpenCL directly for SVP until the currently-draft image support gets merged or the like.

Re: SVP 4 Linux

Have you tried ROCm?

https://github.com/RadeonOpenCompute/RO … CL-Runtime

318 (edited by Nintendo Maniac 64 14-04-2021 07:24:26)

Re: SVP 4 Linux

subluminal wrote:

Have you tried ROCm?

https://github.com/RadeonOpenCompute/RO … CL-Runtime

...Uh, I already said I did in my two lengthy posts above on this very page.  I can get it working on the A8-7600's iGPU pretty easily by simply getting the Ubuntu 20.04 driver that AMD provides for the R9 290X dGPU.

To clarify, ROCm is used for the OpenCL portion of AMD's vendor-supplied Linux graphics driver as of a few years ago.

But the bigger issue is that I was unable to get ROCm OpenCL working on my HD7850 dGPU on Mint 20.1.  While I could get OpenCL working on Mint 19.3, I wasn't able to get SVP working with mpv or vlc (mpv+svp used to "just work" with djcj's now-removed ppa however).


(for reference, the multithreaded CPU grunt of the A8-7600 is considerably slower than the Xeon X3470 that I already own, so my "plan B" was to try and pair that HD7850 with my Xeon)

Re: SVP 4 Linux

What was the error you got with mpv in Linux Mint 20? What was the vapoursynth and mpv version?

320 (edited by Nintendo Maniac 64 15-04-2021 00:18:42)

Re: SVP 4 Linux

subluminal wrote:

What was the error you got with mpv in Linux Mint 20? What was the vapoursynth and mpv version?

Do note that SVP and mpv worked fine without GPU acceleration on Mint 20.1.

For the errors with GPU acceleration, see: https://www.svp-team.com/forum/viewtopi … 652#p77652

Nintendo Maniac 64 wrote:

Also trying to run OpenCL with AMDGPU on Mint 20.1 (Ubuntu 20.04) with a GCN 1-based GPU didn't get me anywhere either.  The farthest I got was, after compiling the 5.4.0-54 kernel with the necessary configurations so that it uses AMDGPU rather than radeon, and installing the newest vendor-provided AMDGPU driver via the same command as above, it throw up an error but, after rebooting, SVP would see my GPU...but it itself would throw up an error.  I was able to avoid any errors when installing AMDGPU by additionally appending the "--no-dkms" argument, but that didn't change the OpenCL error message result in SVP.

clinfo: https://ttm.sh/dXj.txt
Mirror: https://archive.is/13xNy

SVP log: https://ttm.sh/dX_.log
Mirror: https://archive.is/5bwPD

And no, installing kernel 5.10 (which includes improved support for GCN 1-based GPUs) onto Mint 20.1 didn't work either as it not only resulted in no graphics acceleration but the AMDGPU driver refused to install altogether with that kernel.

Re: SVP 4 Linux

Do you have an ICD Loader installed?

What is the output of
ls /etc/OpenCL/vendors

Ideally, you should use OpenCL only using AMDGPU Pro/rocm. And everything else ( OpenGL, Vulkan etc ) using Mesa.

rocm may or may not support your GPU. AMDGPU Pro should. I mean OpenCL support. But AMDGPU Pro can be buggy. Look at the comments here. This is for Polaris though.
https://aur.archlinux.org/packages/opencl-amd/

Re: SVP 4 Linux

Wanted to check here before filing a bug report:

OS: Fedora 34
Kernel: 5.13.4-200
SVP: 4.5.0.205

MPV crashes (while using SVP) during any seek operation with libvmaf v2.1.1 & ffmpeg 4.4-4, but works fine with libvmaf v1.5.3 and ffmpeg 4.4-2.
Final error from terminal: Job 1, 'mpv --profile=svp --loop $argv' terminated by signal SIGSEGV (Address boundary error)


Stack trace of failing instance:
(with libvmaf 2.1.1 / ffmpeg 4.4-4)
                                                               #0  0x00007f93b67e4789 __libc_free (libc.so.6 + 0x8c789)
                                                               #1  0x00007f93b1e7ce59 _ZN5CacheD1Ev (libvmaf.so.1 + 0xbe59)
                                                               #2  0x00007f92f7ee69c9 n/a (/home/user/.local/share/SVP4/plugins/libsvpflow2_vs64.so + 0x269c9)
gdb output of working instance
(with libvmaf 1.5.3 / ffmpeg 4.4-2)
                                                               #0  0x00007f93b67e4789 in free () at /lib64/libc.so.6
                                                               #1  0x00007f93b1e7ce59 in  ()
                                                               #2  0x000055faf05ce890 in  ()
                                                               #3  0x000055faf01119a0 in  ()
                                                               #4  0x000055faf05c0720 in  ()
                                                               #5  0x00007f92f7ee69c9 in Cache::~Cache() () at /home/user/.local/share/SVP4/plugins/libsvpflow2_vs64.so

I suspect this has more to do with libvmaf than ffmpeg, but included both of their version numbers just in case. I've pinned ffmpeg and libvmaf to the lower version for now.

Anyone else have this problem?

323 (edited by GianniTee 09-09-2021 12:47:34)

Re: SVP 4 Linux

probsolver wrote:

Wanted to check here before filing a bug report:

OS: Fedora 34
Kernel: 5.13.4-200
SVP: 4.5.0.205

MPV crashes (while using SVP) during any seek operation with libvmaf v2.1.1 & ffmpeg 4.4-4, but works fine with libvmaf v1.5.3 and ffmpeg 4.4-2.
Final error from terminal: Job 1, 'mpv --profile=svp --loop $argv' terminated by signal SIGSEGV (Address boundary error)


Stack trace of failing instance:
(with libvmaf 2.1.1 / ffmpeg 4.4-4)
                                                               #0  0x00007f93b67e4789 __libc_free (libc.so.6 + 0x8c789)
                                                               #1  0x00007f93b1e7ce59 _ZN5CacheD1Ev (libvmaf.so.1 + 0xbe59)
                                                               #2  0x00007f92f7ee69c9 n/a (/home/user/.local/share/SVP4/plugins/libsvpflow2_vs64.so + 0x269c9)
gdb output of working instance
(with libvmaf 1.5.3 / ffmpeg 4.4-2)
                                                               #0  0x00007f93b67e4789 in free () at /lib64/libc.so.6
                                                               #1  0x00007f93b1e7ce59 in  ()
                                                               #2  0x000055faf05ce890 in  ()
                                                               #3  0x000055faf01119a0 in  ()
                                                               #4  0x000055faf05c0720 in  ()
                                                               #5  0x00007f92f7ee69c9 in Cache::~Cache() () at /home/user/.local/share/SVP4/plugins/libsvpflow2_vs64.so

I suspect this has more to do with libvmaf than ffmpeg, but included both of their version numbers just in case. I've pinned ffmpeg and libvmaf to the lower version for now.

Anyone else have this problem?


I would like to confirm on the OpenSuse Tumbleweed edition that I have the same problem. SVP crashes during the video seek operation in any video player such as SMplayer that uses SVP.

The video can be played and paused, the previous playback position can be stored, but the video player crashes on seek, on stop, or when closing the player from a paused state.

Re: SVP 4 Linux

try this (replace files in SVP 4/plugins)

Post's attachments

libsvpflow1_vs64.so 481.23 kb, 198 downloads since 2021-09-09 

libsvpflow2_vs64.so 455.37 kb, 191 downloads since 2021-09-09 

Re: SVP 4 Linux

Chainik wrote:

try this (replace files in SVP 4/plugins)

Can confirm that the new plugins work flawlessly on libvmaf 2.1.1, thank you!