Re: SVP 4 Linux

rcmz wrote:

Hello, since the last update I get the following error :

zsh: Input/output error: SVPManager

Does someone know what that could be ?

I'm getting the same error on Arch

427

Re: SVP 4 Linux

heektoor45 wrote:
rcmz wrote:

Hello, since the last update I get the following error :

zsh: Input/output error: SVPManager

Does someone know what that could be ?

I'm getting the same error on Arch

As pointed out on https://aur.archlinux.org/packages/svp-bin, this can be solved by changing

options=(!strip)

to

options=(!strip !debug)

in the PKGBUILD.
This can be done with the command

yay -S --editmenu --rebuild svp-bin

Re: SVP 4 Linux

Is there other way to install or build mpv with vapoursynth support?i'm new to linux already installed vapoursynth but got stuck on ./rebuild -j4. poor connection maybe?

+ git pull --rebase
Already up to date.
+ do_clone_all
+ do_clone ffmpeg https://github.com/FFmpeg/FFmpeg.git
+ set -ex
+ test -e ffmpeg
+ git clone https://github.com/FFmpeg/FFmpeg.git ffmpeg
Cloning into 'ffmpeg'...
remote: Enumerating objects: 723842, done.
remote: Counting objects: 100% (155/155), done.
remote: Compressing objects: 100% (85/85), done.
error: RPC failed; curl 56 GnuTLS recv error (-9): Error decoding the received TLS packet.
error: 287 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output

Re: SVP 4 Linux

i did manage to build the mpv now but with error..im using ubuntu 24.04

Main binary: /usr/bin/python3
Build Options: -Dbuildtype=release -Dvapoursynth=enabled -Dlibmpv=true -Dgl=enabled -Dvdpau=enabled -Dxv=enabled -Dx11=enabled -Dwayland=enabled -Dvulkan=enabled -Dpulse=enabled -Dlibplacebo=enabled
Python system: Linux
The Meson build system
Version: 1.3.2
Source dir: /home/jrq/mpv-build/mpv
Build dir: /home/jrq/mpv-build/mpv/build
Build type: native build

meson.build:1:0: ERROR: Unknown options: "libplacebo"

Re: SVP 4 Linux

option "libplacebo" removed in mpv 0.37

Re: SVP 4 Linux

em312s0n wrote:
em312s0n wrote:
LordKordus wrote:

Sorry, I forgot an important part. You need to configure MPV, so it knows where to get SVP's work.

With your file explorer, you can create mpv.conf file in ~/.var/app/io.mpv.Mpv/config/mpv and save this inside of it:


profile=svp
hwdec=auto-copy
hwdec-codecs=all

[svp]
input-ipc-server=/tmp/mpvsocket     # Receives input from SVP
hr-seek-framedrop=no                # Fixes audio desync
resume-playback=no                  # Not compatible with SVP

# Can fix stuttering in some cases, in other cases probably causes it. Try it if you experience stuttering.
#opengl-early-flush=yes

Or alternatively just run this in the terminal, this does it for you:


echo 'profile=svp
hwdec=auto-copy
hwdec-codecs=all

[svp]
input-ipc-server=/tmp/mpvsocket     # Receives input from SVP
hr-seek-framedrop=no                # Fixes audio desync
resume-playback=no                  # Not compatible with SVP

# Can fix stuttering in some cases, in other cases probably causes it. Try it if you experience stuttering.
#opengl-early-flush=yes' > ~/.var/app/io.mpv.Mpv/config/mpv/mpv.conf

That should make it work. Open the video normally through a file explorer while SVP is running.


Note: This part is related to HW decoding, not SVP, if it gives you issues, remove it:


hwdec=auto-copy
hwdec-codecs=all

Sir I wanna thank you! this worked. finally get to watch on 60 fps on the bed. cheers

it appears that an update in mpv broke something.. no longer works i tried rerunning the script but nothing sad did anyone else get it to work with steam deck?

It did break, unfortunately I'm unable to do anything about that.

But I did write a script that sets up a distrobox container with MPV and SVP: https://github.com/lorduskordus/linux-s … x/svp-arch

Hopefully it works for you. You have to use the newly created SVP4 and MPV menu shortcuts, Flatpak MPV and normal SVP4 will not work.

Re: SVP 4 Linux

Please help - why does SVP not work with rusticl, does not see opencl/GPU?

There are no errors, but the Settings→GPU acceleration→No acceleration.

At the same time, it worked with rocm-opencl-runtime-5.5.1, but it no longer worked with rock-opencl-runtime-5.7.1-r1. Moreover, since 5.7.1-r1, GPU acceleration was detected correctly, only there was no FPS increase, but there were no errors in the logs. 5.5.1 I didn't want to, because it's the only one that requires llvm-16.

AMD Radeon RX 6700 XT, Gentoo x86_64, media-libs/mesa-24.1.0-r1, kernel 6.6.30, GPU driver is free, SVP is the latest release.

Installed:
dev-libs/opencl-icd-loader-2023.12.14
media-libs/vulkan-loader-1.3.280.0
dev-util/spirv-headers-1.3.280.0
dev-util/spirv-llvm-translator-17.0.0-r2
dev-util/spirv-tools-1.3.280.0

clinfo output:

Number of platforms                               1
  Platform Name                                   rusticl
  Platform Vendor                                 Mesa/X.org
  Platform Version                                OpenCL 3.0
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_byte_addressable_store cl_khr_create_command_queue cl_khr_expect_assume cl_khr_extended_versioning cl_khr_icd cl_khr_il_program cl_khr_spirv_no_integer_wrap_decoration cl_khr_suggested_local_work_size
  Platform Extensions with Version                cl_khr_byte_addressable_store                                    0x400000 (1.0.0)
                                                  cl_khr_create_command_queue                                      0x400000 (1.0.0)
                                                  cl_khr_expect_assume                                             0x400000 (1.0.0)
                                                  cl_khr_extended_versioning                                       0x400000 (1.0.0)
                                                  cl_khr_icd                                                       0x400000 (1.0.0)
                                                  cl_khr_il_program                                                0x400000 (1.0.0)
                                                  cl_khr_spirv_no_integer_wrap_decoration                          0x400000 (1.0.0)
                                                  cl_khr_suggested_local_work_size                                 0x400000 (1.0.0)
  Platform Numeric Version                        0xc00000 (3.0.0)
  Platform Extensions function suffix             MESA
  Platform Host timer resolution                  1ns

  Platform Name                                   rusticl
Number of devices                                 1
  Device Name                                     AMD Radeon RX 6700 XT (radeonsi, navi22, LLVM 17.0.6, DRM 3.54, 6.6.30-gentoo)
  Device Vendor                                   AMD
  Device Vendor ID                                0x1002
  Device Version                                  OpenCL 3.0
  Device UUID                                     00000000-2d00-0000-0000-000000000000
  Driver UUID                                     414d442d-4d45-5341-2d44-525600000000
  Valid Device LUID                               No
  Device LUID                                     0000-000000000000
  Device Node Mask                                0
  Device Numeric Version                          0xc00000 (3.0.0)
  Driver Version                                  24.1.0
  Device OpenCL C Version                         OpenCL C 1.2
  Device OpenCL C Numeric Version                 0x402000 (1.2.0)
  Device OpenCL C all versions                    OpenCL C                                                         0xc00000 (3.0.0)
                                                  OpenCL C                                                         0x402000 (1.2.0)
                                                  OpenCL C                                                         0x401000 (1.1.0)
                                                  OpenCL C                                                         0x400000 (1.0.0)
  Device OpenCL C features                        __opencl_c_integer_dot_product_input_4x8bit_packed               0x800000 (2.0.0)
                                                  __opencl_c_integer_dot_product_input_4x8bit                      0x800000 (2.0.0)
                                                  __opencl_c_int64                                                 0x400000 (1.0.0)
                                                  __opencl_c_images                                                0x400000 (1.0.0)
                                                  __opencl_c_3d_image_writes                                       0x400000 (1.0.0)
                                                  __opencl_c_subgroups                                             0x400000 (1.0.0)
  Latest conformance test passed                  v0000-01-01-00
  Device Type                                     GPU
  Device PCI bus info (KHR)                       PCI-E, 0000:2d:00.0
  Device Profile                                  EMBEDDED_PROFILE
  Device Available                                Yes
  Compiler Available                              Yes
  Linker Available                                Yes
  Max compute units                               40
  Max clock frequency                             2585MHz
  Device Partition                                (core)
    Max number of sub-devices                     0
    Supported partition types                     None
    Supported affinity domains                    (n/a)
  Max work item dimensions                        3
  Max work item sizes                             1024x1024x1024
  Max work group size                             1024
  Preferred work group size multiple (device)     64
  Preferred work group size multiple (kernel)     64
  Max sub-groups per work group                   32
  Preferred / native vector sizes
    char                                                 1 / 1
    short                                                1 / 1
    int                                                  1 / 1
    long                                                 1 / 1
    half                                                 0 / 0        (n/a)
    float                                                1 / 1
    double                                               0 / 0        (n/a)
  Half-precision Floating-point support           (n/a)
  Single-precision Floating-point support         (core)
    Denormals                                     No
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 No
    Round to infinity                             No
    IEEE754-2008 fused multiply-add               No
    Support is emulated in software               No
    Correctly-rounded divide and sqrt operations  No
  Double-precision Floating-point support         (n/a)
  Address bits                                    64, Little-Endian
  Global memory size                              12884901888 (12GiB)
  Error Correction support                        No
  Max memory allocation                           2147483648 (2GiB)
  Unified memory for Host and Device              No
  Shared Virtual Memory (SVM) capabilities        (core)
    Coarse-grained buffer sharing                 No
    Fine-grained buffer sharing                   No
    Fine-grained system sharing                   No
    Atomics                                       No
  Minimum alignment for any data type             128 bytes
  Alignment of base address                       4096 bits (512 bytes)
  Preferred alignment for atomics
    SVM                                           0 bytes
    Global                                        0 bytes
    Local                                         0 bytes
  Atomic memory capabilities                      relaxed, work-group scope
  Atomic fence capabilities                       relaxed, acquire/release, work-group scope
  Max size for global variable                    0
  Preferred total size of global vars             0
  Global Memory cache type                        None
  Image support                                   Yes
    Max number of samplers per kernel             32
    Max size for 1D images from buffer            268435455 pixels
    Max 1D or 2D image array size                 8192 images
    Base address alignment for 2D image buffers   0 bytes
    Pitch alignment for 2D image buffers          0 pixels
    Max 2D image size                             16384x16384 pixels
    Max 3D image size                             8192x8192x8192 pixels
    Max number of read image args                 32
    Max number of write image args                16
    Max number of read/write image args           0
  Pipe support                                    No
  Max number of pipe args                         0
  Max active pipe reservations                    0
  Max pipe packet size                            0
  Local memory type                               Global
  Local memory size                               65536 (64KiB)
  Max number of constant args                     16
  Max constant buffer size                        67108864 (64MiB)
  Generic address space support                   No
  Max size of kernel argument                     4096 (4KiB)
  Queue properties (on host)
    Out-of-order execution                        No
    Profiling                                     Yes
  Device enqueue capabilities                     (n/a)
  Queue properties (on device)
    Out-of-order execution                        No
    Profiling                                     No
    Preferred size                                0
    Max size                                      0
  Max queues on device                            0
  Max events on device                            0
  Prefer user sync for interop                    Yes
  Profiling timer resolution                      10ns
  Execution capabilities
    Run OpenCL kernels                            Yes
    Run native kernels                            No
    Non-uniform work-groups                       No
    Work-group collective functions               No
    Sub-group independent forward progress        No
    IL version                                    SPIR-V_1.0 SPIR-V_1.1 SPIR-V_1.2 SPIR-V_1.3 SPIR-V_1.4
    ILs with version                              SPIR-V                                                           0x400000 (1.0.0)
                                                  SPIR-V                                                           0x401000 (1.1.0)
                                                  SPIR-V                                                           0x402000 (1.2.0)
                                                  SPIR-V                                                           0x403000 (1.3.0)
                                                  SPIR-V                                                           0x404000 (1.4.0)
  printf() buffer size                            1048576 (1024KiB)
  Built-in kernels                                (n/a)
  Built-in kernels with version                   (n/a)
  Device Extensions                               cl_khr_byte_addressable_store cl_khr_create_command_queue cl_khr_expect_assume cl_khr_extended_versioning cl_khr_icd cl_khr_il_program cl_khr_spirv_no_integer_wrap_decoration cl_khr_suggested_local_work_size cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_integer_dot_product cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_gl_sharing cles_khr_int64 cl_khr_3d_image_writes cl_khr_pci_bus_info cl_khr_device_uuid cl_khr_subgroup_shuffle cl_khr_subgroup_shuffle_relative
  Device Extensions with Version                  cl_khr_byte_addressable_store                                    0x400000 (1.0.0)
                                                  cl_khr_create_command_queue                                      0x400000 (1.0.0)
                                                  cl_khr_expect_assume                                             0x400000 (1.0.0)
                                                  cl_khr_extended_versioning                                       0x400000 (1.0.0)
                                                  cl_khr_icd                                                       0x400000 (1.0.0)
                                                  cl_khr_il_program                                                0x400000 (1.0.0)
                                                  cl_khr_spirv_no_integer_wrap_decoration                          0x400000 (1.0.0)
                                                  cl_khr_suggested_local_work_size                                 0x400000 (1.0.0)
                                                  cl_khr_global_int32_base_atomics                                 0x400000 (1.0.0)
                                                  cl_khr_global_int32_extended_atomics                             0x400000 (1.0.0)
                                                  cl_khr_integer_dot_product                                       0x800000 (2.0.0)
                                                  cl_khr_local_int32_base_atomics                                  0x400000 (1.0.0)
                                                  cl_khr_local_int32_extended_atomics                              0x400000 (1.0.0)
                                                  cl_khr_gl_sharing                                                0x400000 (1.0.0)
                                                  cles_khr_int64                                                   0x400000 (1.0.0)
                                                  cl_khr_3d_image_writes                                           0x400000 (1.0.0)
                                                  cl_khr_pci_bus_info                                              0x400000 (1.0.0)
                                                  cl_khr_device_uuid                                               0x400000 (1.0.0)
                                                  cl_khr_subgroup_shuffle                                          0x400000 (1.0.0)
                                                  cl_khr_subgroup_shuffle_relative                                 0x400000 (1.0.0)

NULL platform behavior
  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  No platform
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   No platform
  clCreateContext(NULL, ...) [default]            No platform
  clCreateContext(NULL, ...) [other]              Success [MESA]
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT)  Success (1)
    Platform Name                                 rusticl
    Device Name                                   AMD Radeon RX 6700 XT (radeonsi, navi22, LLVM 17.0.6, DRM 3.54, 6.6.30-gentoo)
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  Success (1)
    Platform Name                                 rusticl
    Device Name                                   AMD Radeon RX 6700 XT (radeonsi, navi22, LLVM 17.0.6, DRM 3.54, 6.6.30-gentoo)
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  Success (1)
    Platform Name                                 rusticl
    Device Name                                   AMD Radeon RX 6700 XT (radeonsi, navi22, LLVM 17.0.6, DRM 3.54, 6.6.30-gentoo)

ICD loader properties
  ICD loader Name                                 Khronos OpenCL ICD Loader
  ICD loader Vendor                               Khronos Group
  ICD loader Version                              3.0.6
  ICD loader Profile                              OpenCL 3.0

Re: SVP 4 Linux

SVP expects "Device Profile" = "FULL_PROFILE", while you have "EMBEDDED_PROFILE" instead

Re: SVP 4 Linux

Is there anything we can do about it?

435

Re: SVP 4 Linux

Hello on fresh installation of Ubuntu 20.04 your Linux notes seem not function entirely;
getting stuck at configuration of Vapoursynth with error

./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking whether make supports the include directive... yes (GNU style)
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/rich/Downloads/vapoursynth':
configure: error: C compiler cannot create executables
See `config.log' for more details

maybe you can help find the error with pastebin config.log

https://paste.ubuntu.com/p/j4ngBKF9zN/

thank you very much

436

Re: SVP 4 Linux

thank you very much, could solve issue on 22.04 by NOT installing meson and cython3 from Ubuntu repository and instead use pip3 for cython (3.0.10) meson (1.4.1)  ninja (1.11.1); if would use meson from Ubuntu repo it would complain too low (0.61) against frequired (0.63+).
now functioning again, however not sure if this also would function on 20.04.

437

Re: SVP 4 Linux

Currently working through the checklist for a Linux Mint 20 SVP MPV/SMPlayer install and wondering if I need to update my ICD loader.

~$ clinfo
Number of platforms                               1
  Platform Name                                   NVIDIA CUDA
  Platform Vendor                                 NVIDIA Corporation
  Platform Version                                OpenCL 3.0 CUDA 12.2.148
  Platform Profile                                FULL_PROFILE
  Platform Extensions                             cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_fp64 cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_copy_opts cl_nv_create_buffer cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_device_uuid cl_khr_pci_bus_info cl_khr_external_semaphore cl_khr_external_memory cl_khr_external_semaphore_opaque_fd cl_khr_external_memory_opaque_fd
  Platform Host timer resolution                  0ns
  Platform Extensions function suffix             NV

  Platform Name                                   NVIDIA CUDA
Number of devices                                 1
  Device Name                                     NVIDIA GeForce GTX 1080 Ti
  Device Vendor                                   NVIDIA Corporation
  Device Vendor ID                                0x10de
  Device Version                                  OpenCL 3.0 CUDA
  Driver Version                                  535.183.01
  Device OpenCL C Version                         OpenCL C 1.2 
  Device Type                                     GPU
  Device Topology (NV)                            PCI-E, 01:00.0
  Device Profile                                  FULL_PROFILE
  Device Available                                Yes
  Compiler Available                              Yes
  Linker Available                                Yes
  Max compute units                               28
  Max clock frequency                             1657MHz
  Compute Capability (NV)                         6.1
  Device Partition                                (core)
    Max number of sub-devices                     1
    Supported partition types                     None
    Supported affinity domains                    (n/a)
  Max work item dimensions                        3
  Max work item sizes                             1024x1024x64
  Max work group size                             1024
  Preferred work group size multiple              32
  Warp size (NV)                                  32
  Max sub-groups per work group                   0
  Preferred / native vector sizes                 
    char                                                 1 / 1       
    short                                                1 / 1       
    int                                                  1 / 1       
    long                                                 1 / 1       
    half                                                 0 / 0        (n/a)
    float                                                1 / 1       
    double                                               1 / 1        (cl_khr_fp64)
  Half-precision Floating-point support           (n/a)
  Single-precision Floating-point support         (core)
    Denormals                                     Yes
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 Yes
    Round to infinity                             Yes
    IEEE754-2008 fused multiply-add               Yes
    Support is emulated in software               No
    Correctly-rounded divide and sqrt operations  Yes
  Double-precision Floating-point support         (cl_khr_fp64)
    Denormals                                     Yes
    Infinity and NANs                             Yes
    Round to nearest                              Yes
    Round to zero                                 Yes
    Round to infinity                             Yes
    IEEE754-2008 fused multiply-add               Yes
    Support is emulated in software               No
  Address bits                                    64, Little-Endian
  Global memory size                              11713052672 (10.91GiB)
  Error Correction support                        No
  Max memory allocation                           2928263168 (2.727GiB)
  Unified memory for Host and Device              No
  Integrated memory (NV)                          No
  Shared Virtual Memory (SVM) capabilities        (core)
    Coarse-grained buffer sharing                 Yes
    Fine-grained buffer sharing                   No
    Fine-grained system sharing                   No
    Atomics                                       No
  Minimum alignment for any data type             128 bytes
  Alignment of base address                       4096 bits (512 bytes)
  Preferred alignment for atomics                 
    SVM                                           0 bytes
    Global                                        0 bytes
    Local                                         0 bytes
  Max size for global variable                    0
  Preferred total size of global vars             0
  Global Memory cache type                        Read/Write
  Global Memory cache size                        1376256 (1.312MiB)
  Global Memory cache line size                   128 bytes
  Image support                                   Yes
    Max number of samplers per kernel             32
    Max size for 1D images from buffer            268435456 pixels
    Max 1D or 2D image array size                 2048 images
    Max 2D image size                             16384x32768 pixels
    Max 3D image size                             16384x16384x16384 pixels
    Max number of read image args                 256
    Max number of write image args                16
    Max number of read/write image args           0
  Max number of pipe args                         0
  Max active pipe reservations                    0
  Max pipe packet size                            0
  Local memory type                               Local
  Local memory size                               49152 (48KiB)
  Registers per block (NV)                        65536
  Max number of constant args                     9
  Max constant buffer size                        65536 (64KiB)
  Max size of kernel argument                     4352 (4.25KiB)
  Queue properties (on host)                      
    Out-of-order execution                        Yes
    Profiling                                     Yes
  Queue properties (on device)                    
    Out-of-order execution                        No
    Profiling                                     No
    Preferred size                                0
    Max size                                      0
  Max queues on device                            0
  Max events on device                            0
  Prefer user sync for interop                    No
  Profiling timer resolution                      1000ns
  Execution capabilities                          
    Run OpenCL kernels                            Yes
    Run native kernels                            No
    Sub-group independent forward progress        No
    Kernel execution timeout (NV)                 Yes
  Concurrent copy and kernel execution (NV)       Yes
    Number of async copy engines                  2
    IL version                                    (n/a)
  printf() buffer size                            1048576 (1024KiB)
  Built-in kernels                                (n/a)
  Device Extensions                               cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_fp64 cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_copy_opts cl_nv_create_buffer cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_device_uuid cl_khr_pci_bus_info cl_khr_external_semaphore cl_khr_external_memory cl_khr_external_semaphore_opaque_fd cl_khr_external_memory_opaque_fd

NULL platform behavior
  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  NVIDIA CUDA
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   Success [NV]
  clCreateContext(NULL, ...) [default]            Success [NV]
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT)  No platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  No platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  Invalid device type for platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  No platform

ICD loader properties
  ICD loader Name                                 OpenCL ICD Loader
  ICD loader Vendor                               OCL Icd free software
  ICD loader Version                              2.2.11
  ICD loader Profile                              OpenCL 2.1
    NOTE:    your OpenCL library only supports OpenCL 2.1,
        but some installed platforms support OpenCL 3.0.
        Programs using 3.0 features may crash
        or behave unexpectedly

Specifically this:

ICD loader properties
  ICD loader Name                                 OpenCL ICD Loader
  ICD loader Vendor                               OCL Icd free software
  ICD loader Version                              2.2.11
  ICD loader Profile                              OpenCL 2.1
    NOTE:    your OpenCL library only supports OpenCL 2.1,
        but some installed platforms support OpenCL 3.0.
        Programs using 3.0 features may crash
        or behave unexpectedly

Re: SVP 4 Linux

> if I need to update my ICD loader

not for SVP

439 (edited by Flow 08-07-2024 10:01:48)

Re: SVP 4 Linux

How does this look for a full featured mpv install aiming to leverage the 1080TI. Any other features / optimizations to add or suggested removals? I am wanting to use the GPU and have an AMD CPU if that is relevant.
Understood I need to be careful to match the cuda toolkit and driver versions.

FFmpeg Options

Encoding/Decoding:
--enable-libx264: Enables H.264 encoding using the x264 library.
--enable-libx265: Enables H.265/HEVC encoding using the x265 library.
--enable-libaom: Enables AV1 encoding and decoding using the AOM library.
--enable-libsvtav1: Enables AV1 encoding using the SVT-AV1 library.
--enable-libbluray: Enables Blu-ray disc support.
--enable-libdav1d: Enables AV1 decoding using the dav1d library.
Hardware Acceleration:
--enable-nvdec: Enables NVIDIA's hardware-accelerated decoding.
--enable-vaapi: Enables Video Acceleration API for hardware decoding and encoding.
--enable-cuda-nvcc: Enables CUDA support for NVIDIA GPUs.
--enable-nvenc: Enables NVIDIA's NVENC hardware-accelerated encoding.
--enable-libnpp: Enables NVIDIA Performance Primitives library for GPU-accelerated video processing.
--nvcc=/usr/local/cuda/bin/nvcc: Specifies the path to the NVIDIA CUDA compiler.
Security and Network:
--enable-gnutls: Enables GnuTLS support for secure communication.
Audio:
--enable-openal: Enables OpenAL audio library support.
--enable-libpulse: Enables Pulse audio library support.
Video:
--enable-opengl: Enables OpenGL support for rendering.
--enable-vdpau: Enables Video Decode and Presentation API for Unix.
Subtitles:
--enable-libfreetype: Enables Freetype text rendering support.
Images:
--enable-libwebp: Enables WebP image support.
--enable-libjxl: Enables JPEG-XL image support.
Enhancements:
--enable-vapoursynth: Enables VapourSynth scripting support.
--enable-libzvbi: Enables teletext and closed captioning support.
--enable-libzimg: Enables high quality image scaling support.


MPV Options

Core Features:
--enable-libmpv-shared: Enables building a shared library version of libmpv.
--enable-xv: Enables XVideo extension for video output.
--enable-x11: Enables X11 video output.
--enable-lua: Enables Lua scripting support.
--enable-ffmpeg-strict-abi: Ensures strict ABI compatibility with FFmpeg.
--enable-network: Enables network streaming support.
Audio:
--enable-openal: Enables OpenAL audio support.
--enable-pulse: Enables Pulse audio support.
--enable-alsa: Enables Alsa audio support.
Video:
--enable-opengl: Enables OpenGL support for video output.
--enable-vaapi: Enables VAAPI for hardware-accelerated video output.
--enable-cuda-interop: Enables CUDA interoperability.
--enable-vulkan: Enables Vulkan API support for video output.
Enhancements:
--enable-libarchive: Enables support for reading archives.
--enable-uchardet: Enables character set detection support.
--enable-libass: Enables ASS/SSA subtitle rendering.
--enable-opencl: Enables OpenCL support for parallel computing.
--enable-vapoursynth: Enables VapourSynth scripting support.


Required Libraries and Dependencies

Core Build Tools:
build-essential
pkg-config
autoconf
automake
cmake
git
Video Encoding/Decoding:
libx264-dev
libx265-dev
libaom-dev
libsvtav1-dev
libbluray-dev
libdav1d-dev
Hardware Acceleration:
libnvcuvid1
libva-dev
libva-drm2
libva-x11-2
cuda-toolkit-11-2
cuda-nvcc-11-2
libnpp-dev
libnvidia-encode1
Security and Network:
libgnutls28-dev
Audio:
libopenal-dev
libpulse-dev
Video:
libgl1-mesa-dev
libglu1-mesa-dev
libvdpau-dev
libvulkan-dev
Subtitles:
libfreetype6-dev
Enhancements:
vapoursynth
vapoursynth-plugins
libzvbi-dev
libmpv-dev
libxv-dev
libx11-dev
liblua5.4-dev
libarchive-dev
libuchardet-dev
libass-dev
opencl-headers
ocl-icd-opencl-dev
libzimg-dev

sudo apt-get install -y build-essential pkg-config autoconf automake cmake git \
    libx264-dev libx265-dev libaom-dev libsvtav1-dev libbluray-dev libdav1d-dev \
    libnvcuvid1 libva-dev libva-drm2 libva-x11-2 cuda-toolkit-11-2 libnpp-dev libnvidia-encode1 \
    libgnutls28-dev \
    libopenal-dev \
    libgl1-mesa-dev libglu1-mesa-dev libvdpau-dev libvulkan-dev \
    vapoursynth vapoursynth-plugins libzvbi-dev libmpv-dev libxv-dev libx11-dev liblua5.4-dev \
    libarchive-dev libuchardet-dev libass-dev opencl-headers ocl-icd-opencl-dev
    libpulse-dev libfreetype6-dev libzimg-dev

440 (edited by Flow 03-07-2024 08:45:41)

Re: SVP 4 Linux

Is there a recommended install directory for SVP4?

441

Re: SVP 4 Linux

Do I need to remove the noexcept specifier or update cython?

Error compiling Cython file:
------------------------------------------------------------
...
    env.core.funcs.removeLogHandler(env.log, env.core.core)
    env.log = NULL
cdef void __stdcall _logCb(int msgType, const char *msg, void *userData) noexcept nogil:
                                                                        ^
------------------------------------------------------------
src/cython/vapoursynth.pyx:218:73: Syntax error in C variable declaration
w@b:~/vapoursynth$ cython3 --version
Cython version 0.29.28
w@b:~/vapoursynth$ python3 --version
Python 3.10.12

442

Re: SVP 4 Linux

I removed cython via apt and installed the latest stable via pip and vapoursynth compiled OK (with some sided warnings. )

443 (edited by Flow 17-07-2024 09:47:34)

Re: SVP 4 Linux

Anyone else getting the entry point errors loading the vlc plugins?
VapourSynth was built in a virtual env so I could use cython 3.0.10. libvlc-dev is installed.

[00005fc84cd64550] main libvlc warning: cannot find plug-in entry point in /usr/lib/x86_64-linux-gnu/vlc/plugins/video_filter/libsvpcontrol_plugin.so
[00005fc84cd64550] main libvlc warning: cannot find plug-in entry point in /usr/lib/x86_64-linux-gnu/vlc/plugins/video_filter/libvapoursynth_plugin.so
welcome@back:/home$ ls -l /usr/local/lib/libvapoursynth*
-rw-r--r-- 1 root root 3405426 Jul 17 08:58 /usr/local/lib/libvapoursynth.a
-rwxr-xr-x 1 root root     993 Jul 17 08:58 /usr/local/lib/libvapoursynth.la
-rw-r--r-- 1 root root   25492 Jul 17 08:58 /usr/local/lib/libvapoursynth-script.a
-rwxr-xr-x 1 root root    1048 Jul 17 08:58 /usr/local/lib/libvapoursynth-script.la
lrwxrwxrwx 1 root root      30 Jul 17 08:58 /usr/local/lib/libvapoursynth-script.so -> libvapoursynth-script.so.0.0.0
lrwxrwxrwx 1 root root      30 Jul 17 08:58 /usr/local/lib/libvapoursynth-script.so.0 -> libvapoursynth-script.so.0.0.0
-rwxr-xr-x 1 root root   28912 Jul 17 08:58 /usr/local/lib/libvapoursynth-script.so.0.0.0
-rwxr-xr-x 1 root root 2254464 Jul 17 08:58 /usr/local/lib/libvapoursynth.so
welcome@back:/home$ ls -hl /usr/lib/x86_64-linux-gnu/vlc/plugins/video_filter/ | grep 'control\|vapour'
-rw-rw-r-- 1 welcome welcome  44K Jul 17 10:07 libsvpcontrol_plugin.so
-rw-rw-r-- 1 welcome welcome  48K Jul 17 10:07 libvapoursynth_plugin.so
welcome@back:/home$ ls -l /usr/local/lib/python3.12/site-packages/ | grep vapour
-rwxr-xr-x 1 root root    1018 Jul 17 08:58 vapoursynth.la
-rwxr-xr-x 1 root root 1465392 Jul 17 08:58 vapoursynth.so
welcome@back:/home$ ls -l /usr/lib/python3.12/lib-dynload/ | grep vapour
lrwxrwxrwx 1 root root     54 Jul 17 09:21 vapoursynth.so -> /usr/local/lib/python3.12/site-packages/vapoursynth.so
welcome@back:/home$ python3 -c "import vapoursynth as vs; core = vs.core; print(str(core))"
VapourSynth Video Processing Library
Copyright (c) 2012-2024 Fredrik Mellbin
        Core R70
        API R4.1
        API R3.6
        Options: -
        Number of Threads: 4
        Max Cache Size: 4096

welcome@back:/home$ vspipe --version
VapourSynth Video Processing Library
Copyright (c) 2012-2024 Fredrik Mellbin
Core R70
API R4.1
API R3.6
Options: -
welcome@back:/home$ 
welcome@back:/home$ vlc --version
VLC media player 3.0.20 Vetinari (revision 3.0.20-0-g6f0d0ab126b)
VLC version 3.0.20 Vetinari (3.0.20-0-g6f0d0ab126b)
Compiled by Ubuntu buildd for noble on Ubuntu amd64 buildd (Apr  5 2024 06:21:45)
Compiler: gcc version 13.2.0 (Ubuntu 13.2.0-23ubuntu3)
This program comes with NO WARRANTY, to the extent permitted by law.
You may redistribute it under the terms of the GNU General Public License;
see the file named COPYING for details.
Written by the VideoLAN team; see the AUTHORS file.
welcome@back:/home$ 

444

Re: SVP 4 Linux

solution for vapoursynth error ( configure: error: C compiler cannot create executables ) on 19.10 and 20.04 is to update "autoconf" see solution here
https://askubuntu.com/questions/290194/ … l-autoconf (how build  autoconf from  source)

Re: SVP 4 Linux

Can you please add RIFE on SVP for Linux? I think the packages are there, right?
I am already a paying customer.
SVP works great on archlinux. No issues whatsoever.
But the claim is that RIFE makes it better. Does it really?

I got 5800x3D and AMD 7900XTX.

Re: SVP 4 Linux

InnKeepNY wrote:

In regards to NVFlow I just added:
libnvidia-opticalflow1 to the list:

Just did a reinstall of linux, and besides installing nvidia driver and cuda toolkit, that package was missing, so thanks for the tip. 
Kept getting:

15:46:11.571 [E]: Playback [4074366a]: VS - Python exception: SVSmoothFps: CUDA is not availabe

"CUDA not availabe" smile

Anyway, working smoothly again.

Re: SVP 4 Linux

> "CUDA not availabe"

does 'libnvidia-opticalflow.so.1' exists?

448

Re: SVP 4 Linux

Hi Guys,
I have a bug to report:
My system journal is getting spammed every 50ms with the following error message:
Sep 22 23:20:45 Skylake SVPManager[1505]: 23:20:45.952 [W]: dpi is invalid got from xsettings(Qt/DPI/ and Xft/DPI), fallback to get dpi from QXcbScreen::logicalDpi()

I did not even start playing anything, just the manager is running in the tray.

My setup:
Arch Linux, KDE Plasma, 4K monitor with 150% scaling factor.

The problem was with SVP version 4.5 as well as with the current 4.6

449 (edited by C0rn3j 05-10-2024 13:42:29)

Re: SVP 4 Linux

@Chainik 
Could you please update the Linux deps?

Currently, SVP ships youtube-dl, that's dead and replaced by yt-dlp, which has near identical syntax. 
Ideally, SVP would be using the system yt-dlp, instead of attempting to bundle a solution, just like it does not bundle other things like lsof, mediainfo etc. 
Is this possible to rework?

SVPTube depends on EOL Python 3.8, any chance this can be rebuilt for modern Python?   
3.12 is used even on LTS Ubuntu and 3.13 releases in two days.
Is there a way to open source the SVPTube extension, so distributions can build for their Python version? 
As it stands, one needs to have multiple Python versions for SVP to work.

The Wiki is pretty out of date. 
Arch ships mpv with vapoursynth nowadays, for example. 
It also mentions EOL Ubuntu 16.04 when latest almost-out-of-support version is 18.04.

Qt5 has been dead since early 2023, is there a chance you'd find time for a Qt6 migration?

450 (edited by bluetail 07-10-2024 04:50:00)

Re: SVP 4 Linux

Yes Chainik please update linux repos.
I have some futile attempts in getting RIFE working.

Before you inspect the logs, I did symlink all the .so files of `vapoursynth-plugin-vsrife-git` and even touched the name to match up SVP's expectation.
Because it is `librife.so` from the libs and NOT `libRIFE.so`
Maybe look at the most recent parts of my log posted.

models       libfmtconv.so       librife.so      libsvpflow2.so
libbm3d.so   libframeblender.so  libRIFE.so
libffms2.so  libmvtools.so       libsvpflow1.so

models

rife-anime

/opt/svp/rife/models/rife-anime
% ls
contextnet.bin    flownet.bin    fusionnet.bin
contextnet.param  flownet.param  fusionnet.param

https://0x0.st/XE_O.txt

I was excited enough to see that I could get some RIFE models show up but unfortunately not yet working.