376 (edited by NM64 26-10-2022 02:13:24)

Re: SVP 4 Linux

Apologies for the double-post, but I'm following the wiki to a T on a new installation of Linux Mint 21.0 Cinnamon that has had nothing done to it other than some minor GUI tweaks (set "Traditional" panel view, set desktop background, those sort of things).

Everything seems to go fine but, in the final steps of installing mpv+vapoursynth, I'm getting the following - what do?:

https://web.archive.org/web/20221025231615if_/http://0x0.st/o3cj.png

I even tried typing in "waf configure" in the terminal but it doesn't have a clue what that means, implying to me that "waf configure" is not a traditional terminal command in the way that something like "cd /." is.

(and the ".waf found" is just because that was the second time I ran the corresponding command, so it's just re-using the pre-existing .waf file - the above error still happens even on the first attempt as well)

For reference, I never had any issues on Mint 20.3 installing mpv+vapoursynth by following the wiki's instructions, but Mint 21.0 seems to be a different story...

Re: SVP 4 Linux

install meson?

378 (edited by NM64 26-10-2022 09:22:01)

Re: SVP 4 Linux

Chainik wrote:

install meson?

It wasn't clear to me that "meson" was an actual package that could be installed.  Also, nowhere in the wiki article is "meson" mentioned.

Nevertheless, that was all that was required to get it to work.

That being said, I still had to forgo AV1 because both libdav1d and libaom were throwing up the error shown in the below screenshots.  Not having AV1 decode isn't particularly important for this test system, but it would be kind of annoying to not have it for the final PC configuration (which could still be several months away).

https://web.archive.org/web/20221026091820if_/http://0x0.st/o3ui.png

https://web.archive.org/web/20221026091948if_/http://0x0.st/o3u-.png

379 (edited by BaconCatBug 31-10-2022 20:13:17)

Re: SVP 4 Linux

Anyone been able to get AMD GPU Acceleration working on Fedora? I installed rocm-opencl but I get the following error

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

In case someone else comes across this:

https://www.reddit.com/r/Fedora/comment … ro_opencl/

https://archive.ph/xOiy7

sudo dnf copr enable rmnscnce/amdgpu-pro-shims

sudo dnf install amdgpu-pro-shims

sudo dnf install rocm-opencl-runtime

I now have GPU acceleration working

380 (edited by NM64 01-12-2022 07:31:13)

Re: SVP 4 Linux

Psst, am I crazy or does the "autospeed" script straight-up not work for changing playback speed in the compiles mpv+vapoursynth?  As I mentioned in the dedicated thread, I was trying to use it to make only 25fps videos play at 24fps, but it's not doing anything...
https://www.svp-team.com/forum/viewtopic.php?pid=81126

BaconCatBug wrote:

I now have GPU acceleration working

It may have been easier if you just used the newly-developed rusticl paired with the standard default kernel-level AMD graphics drivers and mesa 22.3:
https://lists.freedesktop.org/archives/ … 25898.html

I just never said much of anything about it because I've not managed to test it out myself just yet and therefore I cannot say from experience what the exact steps are to enable rusticl for AMD graphics considering that rusticl as a whole is disabled by default.

Re: SVP 4 Linux

Would it be possible to upgrade the project to QT6 or upper? Currently the program shows extremely broken on modern wayland desktops, and lacks any kind of HiDPI rescaling capabilities. (In other words, it displays tiny and broken).

The features are great but the GUI is so broken it's very hard to use.

Re: SVP 4 Linux

set the scaling factor manually via ui-scale.txt

383 (edited by zeioth 15-11-2022 20:01:28)

Re: SVP 4 Linux

Thank you. Menus still look kinda broken, but that's much better. (I found the file under '/opt/svp').

Also, please don't tell your users to set 777 permissions. This is very dangerous.
https://www.svp-team.com/wiki/SVP:Linux … figuration

Do SVP use some user group I can give permissions instead?

Re: SVP 4 Linux

Setting up Emby Theater in Arch linux. I THINK it's at least partially working as the log shows that it's communicating with emby and running a movie at 59.5401 but there is no OSD or when hovering over the SVP icon in system tray it shows no active playback.

Am I correct that it is working? I feel like I missed something. Log details below:

04:22:44.114  VideoPlayer: mpv [emby-theater] connected, waiting for the video info...
04:22:44.595 VideoPlayer: mpv 0.34.0-265-g305332f8a0 /via '/tmp/mpvsocket'
04:22:45.553 Media: video looks like some kind of stream
04:22:45.553  Media: video 1920x1080 [PAR 1.000] at 23.976 fps (via video player)
04:22:45.553 Media: codec type is h264 (H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10)
04:22:45.560 Playback: starting up...
04:22:45.586 Playback [5dc668bb]: resulting video frame 1920x1080
04:22:45.587 Playback [5dc668bb]: 1 acceptible profiles, best is 'Automatic' [0]
04:22:45.603  Playback [5dc668bb]: enabled while video is playing
04:22:45.604  Profile: using automatic profile #1 /film
04:22:45.605 Playback [5dc668bb]: playing at 59.9401 [23.976 *5/2]
04:25:13.901 Playback [5dc668bb]: deleted

Re: SVP 4 Linux

mpv w/o vapoursynth support

386 (edited by labre 02-01-2023 06:30:28)

Re: SVP 4 Linux


NM64 wrote:

It may have been easier if you just used the newly-developed rusticl paired with the standard default kernel-level AMD graphics drivers and mesa 22.3:
https://lists.freedesktop.org/archives/ … 25898.html

I just never said much of anything about it because I've not managed to test it out myself just yet and therefore I cannot say from experience what the exact steps are to enable rusticl for AMD graphics considering that rusticl as a whole is disabled by default.

That won’t work either. With rusticl, SVP will break for all open source drivers in the foreseeable future. I happened to get to the point with preliminary radeonsi support in rusticl, which currently advertises OpenCL 1.2. SVP won’t detect it though (the tool itself works in a shell), because it links against its own mesa and especially LLVM, but let’s start from the beginning.

To hunt down that LLVM error, I looked up the source and eventually found the related bug [1]. The error comes down to libllvm being linked to twice and is triggered by the CommandLine module. So I went ahead, commented the fatal errors out, recompiled LLVM and the whole system afterwards. This resulted in… nothing. The message persists, so it is coming from LLVM linked to by SVP. The main difference between OpenCL use and non-OpenCL use revealed by gdb looking at mpv is simply the linking to libllvm, which means, that the libsvpflow libraries already statically link against it and the dynamic load is the second one, which leads to the abort. This also explains, why the SVP performance test works for OpenCL.

Afterwards I prepared a Gentoo mesa ebuild update for rusticl support. While I can’t test rusticl actually because of the lacking OpenCL support with radeonsi, I now know definitely, that it also links to libllvm, so it will be broken with current SVP linking.

I see about 3 solutions:
1. Link dynamically to the system libs, at least for libllvm.
2. Request LLVM upstream to make a change to ignore double linkage, if that works. If it does not work, ask for suggestions to get this software constellation to work.
3. Remove the dependency on libllvm, if possible. If the Manager’s GUI libraries are the sole consumers, provide a CLI tool, which can act as daemon, read the config and enable the plugin on video playback. SVP overlay is not mandatory beyond the configuration phase.

Edit:

And a 4th:
Compile mesa with Dgallium-opencl (clover) support or install the corresponding package for your distribution. That prevents the error for whatever reason. RocM is still used as OpenCL backend, because unmerging it leads to OpenCL not being detected in SVP. Anyway while Clover is not used in any way, it has to be present for SVP.

Maybe the linking is changed in system mesa lib or SVP loads system libs depending on certain symbols being present in them, which prevents the LLVM error from being thrown, but I’m just guessing. Considering these facts, rusticl might in fact be a solution. Note, that Clover is going to be removed upstream, so if rusticl will not work, we still have a problem.

Edit2:
Nope, Clover was not the fix. Actually RocM broke after restarting the X server, reproducing the LLVM error, like it is warned in the Gentoo Wiki. That’s the error, which should have been patched out on my system. So it seems, the patch did not work, which breaks my assumptions about SVP linking. So, actually I did not change anything, but it started to work after ~2 years and a system update, which did not contain mesa nor RocM, but at least mpv. Maybe it was mpv, a RocM update two weeks ago or a patch in Gentoo, which others are missing. Versions:
Rocm-5.3.3
mesa-22.2.3
opencl-icd-loader-2022.09.30
mpv-0.35.0-r1

Sorry for not having any clues to fix this one.

The last god damned edit:

Found it. The double linking occurs with radeonsi’s vaapi driver in mesa and rocm-comgr:

$ ldd /usr/lib64/va/drivers/radeonsi_drv_video.so
...
libLLVM-15.so => /usr/lib/llvm/15/lib64/libLLVM-15.so (0x00007f933e600000)
...
$ ldd /usr/lib64/libamd_comgr.so.2.4
...
libLLVM-15.so => /usr/lib/llvm/15/lib64/libLLVM-15.so (0x00007f933e600000)
...

I missed an occurrence of the report_fatal_error call in my LLVM patch, which has been fixed. Providing the updated patch for reference. Recompiling mesa and rocm-comgr with this patched LLVM resolves the issue. The patched LLVM now prints a warning instead of aborting with an error, which otherwise seems to have zero side effects.

So to summarize:

1. You can either disable hardware decoding, which should get OpenCL to work or disable SVP’s OpenCL use, which should allow hardware decoding.
2. You can patch LLVM and compile mesa and rocm-comgr with it, which gets both to work.
3. You can be angry with LLVM developers for ignoring an issue for ≈8 years, which could have been solved with a 17 lines patch.
4. You’re welcome. wink


[1]: https://github.com/llvm/llvm-project/issues/23326

Post's attachments

0001-ignore-commandline-inconsistencies.patch 2.83 kb, 102 downloads since 2023-01-02 

387

Re: SVP 4 Linux

With some help from the LLVM guys, I found the root cause, which was also found by someone else a few weeks ago:
https://github.com/RadeonOpenCompute/RO … /issues/52

Basically comgr-objdump in RocM is originally a copy of llvm-objdump and still explicitly registers an option on LLVM without any need for that. Removing the code registering that option fixes the issue. LLVM also works on the duplication errors in general and likely has CommandLine isolation in version 16. This should prevent the error class for registered options from different libraries.

Re: SVP 4 Linux

While testing the mpv build, I noticed that the description of mpv_options has changed.Specifically, it seems that "-DOpt1=value" is required to specify the option.This option is for my environment and should be changed by yourself.All of the options are in mpv-build/mpv/meson_options.txt.

Before

--enable-vapoursynth
--enable-libmpv-shared
--enable-gl
--enable-vdpau
--enable-xv
--enable-x11
--enable-wayland
--enable-vulkan
--enable-pulse
--enable-libplacebo

After

-Dvapoursynth=enabled
-Dlibmpv=true
-Dgl=enabled
-Dvdpau=enabled
-Dxv=enabled
-Dx11=enabled
-Dwayland=enabled
-Dvulkan=enabled
-Dpulse=enabled
-Dlibplacebo=enabled

Re: SVP 4 Linux

NM64 wrote:

That being said, I still had to forgo AV1 because both libdav1d and libaom were throwing up the error shown in the below screenshots.  Not having AV1 decode isn't particularly important for this test system, but it would be kind of annoying to not have it for the final PC configuration (which could still be several months away).

https://web.archive.org/web/20221026091820if_/http://0x0.st/o3ui.png

https://web.archive.org/web/20221026091948if_/http://0x0.st/o3u-.png

I'm on debian 11
I recently (today) tried to recompile everything with av1 support, ended up with the same error about libdav1d. I'm not expert so I'm not sure if what I did make sense but i installed (apt):

libdav1d-dev - fast and small AV1 video stream decoder (development files)
libdav1d4 - fast and small AV1 video stream decoder (shared library)

And it worked, or at least, the build process continued. Actually, there were other minor adjustments I had to made to the instructions in the wiki https://www.svp-team.com/wiki/SVP:Linux, like the mpv_options were no longer in the form "--enable-vapoursynth" but "-Dvapoursynth=enabled", but other than that it got to the end without errors.

Problem is, I still can't play av1 encoded videos, I get this error:

me@nuc:~/videos$ mpv ./myav1file
[ffmpeg/video] av1: Your platform doesn't suppport hardware accelerated AV1 decoding.
[ffmpeg/video] av1: Failed to get pixel format.
Error while decoding frame!
[ffmpeg/video] av1: Missing Sequence Header.
Error while decoding frame!
[ffmpeg/video] av1: Missing Sequence Header.
Error while decoding frame!
AV: 00:00:03 / 00:23:55 (0%) A-V:  0.000

Which is true, I don't have hw support for av1, I'm on an old i3-3217U (integrated graphics), but it also doesn't have h265 hw decoder and that works...

me@nuc:~/mpv-build/build_libs/bin$ ./ffmpeg -codecs |grep av1
ffmpeg version n5.1.2 Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 10 (Debian 10.2.1-6)
  configuration: --prefix=/home/me/mpv-build/build_libs --enable-gpl --disable-debug --disable-doc --enable-static --disable-shared --enable-pic --enable-nonfree --enable-openssl --enable-libx264 --enable-vaapi --enable-libdav1d
  libavutil      57. 28.100 / 57. 28.100
  libavcodec     59. 37.100 / 59. 37.100
  libavformat    59. 27.100 / 59. 27.100
  libavdevice    59.  7.100 / 59.  7.100
  libavfilter     8. 44.100 /  8. 44.100
  libswscale      6.  7.100 /  6.  7.100
  libswresample   4.  7.100 /  4.  7.100
  libpostproc    56.  6.100 / 56.  6.100
 D.V.L. av1                  Alliance for Open Media AV1 (decoders: libdav1d av1 )

ffmpeg lists av1 in the decoders, and I can use ffmpeg to successfully transcode (to h264 for example) the same file I can't open with mpv, so I don't understand why it does't work through mpv

390

Re: SVP 4 Linux

Hello ,

tired today to install svp4 linux on Devuan4.0 (based on Debian 11)

but there is error with meson,

please see error

make: Leaving directory '/home/rich/test_app/mpv-build/ffmpeg_build'
Using mpv options: -Dc_link_args='-Wl,-Bsymbolic' --enable-vapoursynth --enable-libmpv-shared
usage: meson [-h]
             {setup,configure,dist,install,introspect,init,test,wrap,subprojects,rewrite,compile,devenv,env2mfile,help}
             ...
meson: error: unrecognized arguments: --enable-vapoursynth --enable-libmpv-shared

https://pastebin.ubuntu.com/p/zr966Fxf35/

Re: SVP 4 Linux

two posts above?

392

Re: SVP 4 Linux

thanks, now it functions,

however, svptube says "could not extract uploader ID, please report"


could it be because Debian / Devuan missing libpython3.8? have installed 3.8 manually, but maybe libpython3.8 missing, and no deadsnakes ppa on Debian?

Re: SVP 4 Linux

nope it's because bundled yt-dlp is too outdated

394

Re: SVP 4 Linux

well, i had updated before, but the problem would not go away.

can§t i just switch to internal yt-dlp?

yt-dlp --version
2023.02.17

Re: SVP 4 Linux

updated now, run SVP's online updater

396

Re: SVP 4 Linux

thanks, this now functions,

have installed the amdgpu driver on devuan/debian with the help of this package here

https://gitlab.com/BCMM/amdgpu-opencl-on-debian

397

Re: SVP 4 Linux

today again getting this error on Ubuntu 22.04

Using mpv options: -Dc_link_args='-Wl,-Bsymbolic' --enable-vapoursynth --enable-libmpv-shared
usage: meson [-h]
             {setup,configure,dist,install,introspect,init,test,wrap,subprojects,rewrite,compile,devenv,env2mfile,help}
             ...


thanks.
meson: error: unrecognized arguments: --enable-vapoursynth --enable-libmpv-shared

398

Re: SVP 4 Linux

Looks like you have mpv compiled without vapoursynth support. Check it please.

399

Re: SVP 4 Linux

thank you, must have things messed up this time, getting another error

follow you instructions from "notes for linux"

sing ffmpeg options: --enable-gpl --disable-debug --disable-doc --enable-static --disable-shared --enable-pic --enable-nonfree --enable-openssl --enable-libx264 --enable-nvdec --enable-vaapi

but getting

make: Leaving directory '/home/rich/Programs/mpv-build/ffmpeg_build'
Using mpv options: -Dc_link_args='-Wl,-Bsymbolic' --enable-vapoursynth --enable-libmpv-shared
usage: meson [-h]
             {setup,configure,dist,install,introspect,init,test,wrap,subprojects,rewrite,compile,devenv,env2mfile,help}
             ...
meson: error: unrecognized arguments: --enable-vapoursynth --enable-libmpv-shared

afterwards i change as suggested above the "meson_options"

from

  # booleans
option('gpl', type: 'boolean', value: true, description: 'GPL (version 2 or later) build')
option('cplayer', type: 'boolean', value: true, description: 'mpv CLI player')
option('libmpv', type: 'boolean', value: false, description: 'libmpv library')
option('build-date', type: 'boolean', value: true, description: 'whether to include binary compile time')
option('tests', type: 'boolean', value: false, description: 'meson unit tests')
# Reminder: normally always built, but enabled by MPV_LEAK_REPORT.
# Building it can be disabled only by defining NDEBUG through CFLAGS.
option('ta-leak-report', type: 'boolean', value: false, description: 'enable ta leak report by default (development only)')

# misc features
option('cdda', type: 'feature', value: 'disabled', description: 'cdda support (libcdio)')
option('cplugins', type: 'feature', value: 'auto', description: 'C plugins')
option('dvbin', type: 'feature', value: 'disabled', description: 'DVB input module')
option('dvdnav', type: 'feature', value: 'disabled', description: 'dvdnav support')
option('iconv', type: 'feature', value: 'auto', description: 'iconv')
option('javascript', type: 'feature', value: 'auto', description: 'Javascript (MuJS backend)')
option('lcms2', type: 'feature', value: 'auto', description: 'LCMS2 support')
option('libarchive', type: 'feature', value: 'auto', description: 'libarchive wrapper for reading zip files and more')
option('libavdevice', type: 'feature', value: 'auto', description: 'libavdevice')
option('libbluray', type: 'feature', value: 'auto', description: 'Bluray support')
option('lua',
    type: 'combo',
    choices: ['lua', 'lua52', 'lua5.2', 'lua-5.2', 'luajit', 'lua51',
              'lua5.1', 'lua-5.1', 'auto', 'enabled', 'disabled'],
    value: 'auto',
    description: 'Lua'
)
option('pthread-debug', type: 'feature', value: 'disabled', description: 'pthread runtime debugging wrappers')
option('rubberband', type: 'feature', value: 'auto', description: 'librubberband support')
option('sdl2', type: 'feature', value: 'disabled', description: 'SDL2')
option('sdl2-gamepad', type: 'feature', value: 'auto', description: 'SDL2 gamepad input')
option('stdatomic', type: 'feature', value: 'auto', description: 'C11 stdatomic.h')
option('uchardet', type: 'feature', value: 'auto', description: 'uchardet support')
option('uwp', type: 'feature', value: 'disabled', description: 'Universal Windows Platform')
option('vapoursynth', type: 'feature', value: 'auto', description: 'VapourSynth filter bridge')
option('vector', type: 'feature', value: 'auto', description: 'GCC vector instructions')
option('win32-internal-pthreads', type: 'feature', value: 'auto', description: 'internal pthread wrapper for win32 (Vista+)')
option('zimg', type: 'feature', value: 'auto', description: 'libzimg support (high quality software scaler)')
option('zlib', type: 'feature', value: 'auto', description: 'zlib')

# audio output features
option('alsa', type: 'feature', value: 'auto', description: 'ALSA audio output')
option('audiounit', type: 'feature', value: 'auto', description: 'AudioUnit output for iOS')
option('coreaudio', type: 'feature', value: 'auto', description: 'CoreAudio audio output')
option('jack', type: 'feature', value: 'auto', description: 'JACK audio output')
option('openal', type: 'feature', value: 'disabled', description: 'OpenAL audio output')
option('opensles', type: 'feature', value: 'auto', description: 'OpenSL ES audio output')
option('oss-audio', type: 'feature', value: 'auto', description: 'OSSv4 audio output')
option('pipewire', type: 'feature', value: 'auto', description: 'PipeWire audio output')
option('pulse', type: 'feature', value: 'auto', description: 'PulseAudio audio output')
option('sdl2-audio', type: 'feature', value: 'auto', description: 'SDL2 audio output')
option('sndio', type: 'feature', value: 'auto', description: 'sndio audio output')
option('wasapi', type: 'feature', value: 'auto', description: 'WASAPI audio output')

# video output features
option('caca', type: 'feature', value: 'auto', description: 'CACA')
option('cocoa', type: 'feature', value: 'auto', description: 'Cocoa')
option('d3d11', type: 'feature', value: 'auto', description: 'Direct3D 11 video output')
option('direct3d', type: 'feature', value: 'auto', description: 'Direct3D support')
option('drm', type: 'feature', value: 'auto', description: 'DRM')
option('egl', type: 'feature', value: 'auto', description: 'EGL 1.4')
option('egl-android', type: 'feature', value: 'auto', description: 'Android EGL support')
option('egl-angle', type: 'feature', value: 'auto', description: 'OpenGL ANGLE headers')
option('egl-angle-lib', type: 'feature', value: 'auto', description: 'OpenGL Win32 ANGLE library')
option('egl-angle-win32', type: 'feature', value: 'auto', description: 'OpenGL Win32 ANGLE Backend')
option('egl-drm', type: 'feature', value: 'auto', description: 'OpenGL DRM EGL Backend')
option('egl-wayland', type: 'feature', value: 'auto', description: 'OpenGL Wayland Backend')
option('egl-x11', type: 'feature', value: 'auto', description: 'OpenGL X11 EGL Backend')
option('gbm', type: 'feature', value: 'auto', description: 'GBM')
option('gl', type: 'feature', value: 'enabled', description: 'OpenGL context support')
option('gl-cocoa', type: 'feature', value: 'auto', description: 'gl-cocoa')
option('gl-dxinterop', type: 'feature', value: 'auto', description: 'OpenGL/DirectX Interop Backend')
option('gl-win32', type: 'feature', value: 'auto', description: 'OpenGL Win32 Backend')
option('gl-x11', type: 'feature', value: 'disabled', description: 'OpenGL X11/GLX (deprecated/legacy)')
option('jpeg', type: 'feature', value: 'auto', description: 'JPEG support')
option('libplacebo', type: 'feature', value: 'auto', description: 'libplacebo support')
option('rpi', type: 'feature', value: 'disabled', description: 'Raspberry Pi support')
option('sdl2-video', type: 'feature', value: 'auto', description: 'SDL2 video output')
option('shaderc', type: 'feature', value: 'auto', description: 'libshaderc SPIR-V compiler')
option('sixel', type: 'feature', value:'auto', description: 'Sixel')
option('spirv-cross', type: 'feature', value: 'auto', description: 'SPIRV-Cross SPIR-V shader converter')
option('plain-gl', type: 'feature', value: 'auto', description: 'OpenGL without platform-specific code (e.g. for libmpv)')
option('vdpau', type: 'feature', value: 'auto', description: 'VDPAU acceleration')
option('vdpau-gl-x11', type: 'feature', value: 'auto', description: 'VDPAU with OpenGL/X11')
option('vaapi', type: 'feature', value: 'auto', description: 'VAAPI acceleration')
option('vaapi-drm', type: 'feature', value: 'auto', description: 'VAAPI (DRM/EGL support)')
option('vaapi-wayland', type: 'feature', value: 'auto', description: 'VAAPI (Wayland support)')
option('vaapi-x11', type: 'feature', value: 'auto', description: 'VAAPI (X11 support)')
option('vaapi-x-egl', type: 'feature', value: 'auto', description: 'VAAPI EGL on X11')
option('vulkan', type: 'feature', value: 'auto', description: 'Vulkan context support')
option('wayland', type: 'feature', value: 'auto', description: 'Wayland')
option('x11', type: 'feature', value: 'auto', description: 'X11')
option('xv', type: 'feature', value: 'auto', description: 'Xv video output')

# hwaccel features
option('android-media-ndk', type: 'feature', value: 'auto', description: 'Android Media APIs')
option('cuda-hwaccel', type: 'feature', value: 'auto', description: 'CUDA acceleration')
option('cuda-interop', type: 'feature', value: 'auto', description: 'CUDA with graphics interop')
option('d3d-hwaccel', type: 'feature', value: 'auto', description: 'D3D11VA hwaccel')
option('d3d9-hwaccel', type: 'feature', value: 'auto', description: 'DXVA2 hwaccel')
option('gl-dxinterop-d3d9', type: 'feature', value: 'auto', description: 'OpenGL/DirectX Interop Backend DXVA2 interop')
option('ios-gl', type: 'feature', value: 'auto', description: 'iOS OpenGL ES hardware decoding interop support')
option('rpi-mmal', type: 'feature', value: 'auto', description: 'Raspberry Pi MMAL hwaccel')
option('videotoolbox-gl', type: 'feature', value: 'auto', description: 'Videotoolbox with OpenGL')

# macOS features
option('macos-10-11-features', type: 'feature', value: 'auto', description: 'macOS 10.11 SDK Features')
option('macos-10-12-2-features', type: 'feature', value: 'auto', description: 'macOS 10.12.2 SDK Features')
option('macos-10-14-features', type: 'feature', value: 'auto', description: 'macOS 10.14 SDK Features')
option('macos-cocoa-cb', type: 'feature', value: 'auto', description: 'macOS libmpv backend')
option('macos-media-player', type: 'feature', value: 'auto', description: 'macOS Media Player support')
option('macos-touchbar', type: 'feature', value: 'auto', description: 'macOS Touch Bar support')
option('swift-build', type: 'feature', value: 'auto', description: 'macOS Swift build tools')
option('swift-flags', type: 'string', description: 'Optional Swift compiler flags')

# manpages
option('html-build', type: 'feature', value: 'disabled', description: 'html manual generation')
option('manpage-build', type: 'feature', value: 'auto', description: 'manpage generation')
option('pdf-build', type: 'feature', value: 'disabled', description: 'pdf manual generation')

to

-Dvapoursynth=enabled
-Dlibmpv=true
-Dgl=enabled
-Dvdpau=enabled
-Dxv=enabled
-Dx11=enabled
-Dwayland=enabled
-Dvulkan=enabled
-Dpulse=enabled
-Dlibplacebo=enabled

re-run

./rebuild -j4

still getting error

make: Leaving directory '/home/rich/Programs/mpv-build/ffmpeg_build'
Using mpv options: -Dc_link_args='-Wl,-Bsymbolic' --enable-vapoursynth --enable-libmpv-shared
usage: meson [-h] {setup,configure,dist,install,introspect,init,test,wrap,subprojects,rewrite,compile,devenv,env2mfile,help} ...
meson: error: unrecognized arguments: --enable-vapoursynth --enable-libmpv-shared

sorry if messed up.

400

Re: SVP 4 Linux

thanks, now it functions again on Ubuntu,
did pass those options only albeit,

echo --enable-libx264 >> ffmpeg_options
echo --enable-vaapi >> ffmpeg_options
echo -Dvapoursynth=enabled >> mpv_options
echo -Dlibmpv=true >> mpv_options

echo --enable-nvdec >> ffmpeg_options had to leave away, otherwise it would complain of not finding nvdec or something (having only AMD card installed), but it seems a strange error.