flathub / com.parsecgaming.parsec

https://flathub.org/apps/details/com.parsecgaming.parsec
12 stars 10 forks source link

Failed to initialise VAAPI connection: -1 (unknown libva error). #61

Open kimjongbing opened 2 months ago

kimjongbing commented 2 months ago

System information OS: NixOS 24.11.20240910.1355a0c (Vicuna) x86_64 Kernel: Linux 6.10.9-cachyos DE: GNOME 46.4 WM: Mutter (Wayland)

How to reproduce the error

  1. Run the parsec flatpak
  2. Choose "hardware" decoder
  3. Fail to connect due to libva/vaapi errors

Extra information

Logs when running the flatpak (hardware decoder)

~ ❱ flatpak run com.parsecgaming.parsec
[D 2024-09-13 00:00:19] log: Parsec release-ui[release-alpha] (150-20240720-163721-alpha, Service: -1, Loader: 12)
[D 2024-09-13 00:00:19] MTY_DeleteFile: 'remove' failed with errno 39
[D 2024-09-13 00:00:19] log: Parsec getting initial user data.
[D 2024-09-13 00:00:19] log: Parsec got initial user data.
[2 2024-09-13 00:00:19] Force Relay Mode: Off
[2 2024-09-13 00:00:19] Force Relay Mode: Off
[I 2024-09-13 00:00:19] unprivileged_user=1 enable_webview=0
[D 2024-09-13 00:00:19] Client status changed to: -3
[AVHWDeviceContext @ 0x7292c0466c40] Failed to initialise VAAPI connection: -1 (unknown libva error).
[AVHWDeviceContext @ 0x7292c0466d00] Failed to initialise VAAPI connection: -1 (unknown libva error).
[AVHWDeviceContext @ 0x7292c069ef80] Failed to initialise VAAPI connection: -1 (unknown libva error).
[AVHWDeviceContext @ 0x7292c0729500] Failed to initialise VAAPI connection: -1 (unknown libva error).
[D 2024-09-13 00:00:25] Client status changed to: 20
[3 2024-09-13 00:00:27] Sent candidate.
[3 2024-09-13 00:00:27] Sent candidate.
[3 2024-09-13 00:00:27] sent: {"action":"candex","version":1,"payload":{"attempt_id":"8472f813-999b273f-1d883169-1e2e0eeb-4b15d8be-2eee65a0","data":{"lan":true,"port":30433,"ver_data":1,"versions":{"bud":1,"control":1,"p2p":1,"audio":1,"init":1,"video":1},"from_stun":false,"sync":false,"ip":"192.168.0.212"},"to":"2lx75XwDMMFB9UAD2fMxY9B6vZx"}}
[3 2024-09-13 00:00:27] sent: {"action":"candex","version":1,"payload":{"attempt_id":"8472f813-999b273f-1d883169-1e2e0eeb-4b15d8be-2eee65a0","data":{"lan":true,"port":30433,"ver_data":1,"versions":{"bud":1,"control":1,"p2p":1,"audio":1,"init":1,"video":1},"from_stun":false,"sync":false,"ip":"192.168.1.1"},"to":"2lx75XwDMMFB9UAD2fMxY9B6vZx"}}
[3 2024-09-13 00:00:27] CANDEX: LAN 192.168.0.211:21932
[2 2024-09-13 00:00:27] Adding LAN Candidate from peer (1); 192.168.0.211:21932
[2 2024-09-13 00:00:27] Adding LAN Candidate from peer (2); ::ffff:192.168.0.211:21932
[D 2024-09-13 00:00:27] net           = BUD|::ffff:192.168.0.211|21932
[D 2024-09-13 00:00:27] BUD AES_GCM   = 256
[AVHWDeviceContext @ 0x729289024a00] Failed to initialise VAAPI connection: -1 (unknown libva error).
[AVHWDeviceContext @ 0x7292890258c0] Failed to initialise VAAPI connection: -1 (unknown libva error).
[AVHWDeviceContext @ 0x729269019bc0] Failed to initialise VAAPI connection: -1 (unknown libva error).
[AVHWDeviceContext @ 0x729275003440] Failed to initialise VAAPI connection: -1 (unknown libva error).
[AVHWDeviceContext @ 0x5d046ecc03c0] Failed to initialise VAAPI connection: -1 (unknown libva error).
[3 2024-09-13 00:00:27] CANDEX: LAN 2401:d002:1705:b400:4cdc:e488:4411:8494:21932
[2 2024-09-13 00:00:27] Rejecting LAN Candidate from peer; 2401:d002:1705:b400:4cdc:e488:4411:8494:21932
[AVHWDeviceContext @ 0x729269019c80] Failed to initialise VAAPI connection: -1 (unknown libva error).
[AVHWDeviceContext @ 0x5d046ecc42c0] Failed to initialise VAAPI connection: -1 (unknown libva error).
[3 2024-09-13 00:00:27] CANDEX: WAN ::ffff:203.123.114.36:21932
[2 2024-09-13 00:00:27] Rejecting WAN Candidate from peer; ::ffff:203.123.114.36:21932
[AVHWDeviceContext @ 0x729275003ac0] Failed to initialise VAAPI connection: -1 (unknown libva error).
[I 2024-09-13 00:00:28] Host's virtual microphone is disabled
[D 2024-09-13 00:00:28] FFMPEG 6 Software
[2 2024-09-13 00:00:28] FFMPEG format 12
[D 2024-09-13 00:00:30] Client status changed to: -3
^C⏎          

Please let me know if I can provide any extra information I will happily do so.

Kodikuu commented 2 months ago

What specific hardware is present on the machine? The most common path to hardware decode taken by the app is libva2 via FFMPEG (FFMPEG hw type 3)

kimjongbing commented 2 months ago

What specific hardware is present on the machine? The most common path to hardware decode taken by the app is libva2 via FFMPEG (FFMPEG hw type 3)

I have an RTX 4070ti and an AMD Ryzen 7 3700X. There is also an unused GTX 1070 in the 2nd PCIE slot but I do not think that would be causing any issues since the parsec binary works fine.

Kodikuu commented 2 months ago

I have an RTX 4070ti and an AMD Ryzen 7 3700X

You should have "Nvidia" as an available decoder option in both the Nixpkg and Flatpak installs of Parsec.

The most common path to hardware decode taken by the app is libva2 via FFMPEG (FFMPEG hw type 3), through the "Hardware" decoder option.

Please can you provide the following if possible;

kimjongbing commented 2 months ago

I have an RTX 4070ti and an AMD Ryzen 7 3700X

I have "NVIDIA" as an option on the nixpkgs binary, alongside the others. There is only "Hardware" and "Software" for the Flatpak.

Similar logs in the case of a successful use of hardware decoding via the nixpkgs install

[D 2024-09-13 10:54:10] log: Parsec release-ui[release-alpha] (150-95e, Service: -1, Loader: 12)
[D 2024-09-13 10:54:10] log: Parsec release-ui[release-alpha] (150-20240720-163721-alpha, Service: -1, Loader: 12)
[D 2024-09-13 10:54:10] log: Parsec getting initial user data.
[D 2024-09-13 10:54:10] log: Parsec got initial user data.
[2 2024-09-13 10:54:10] Force Relay Mode: Off
[2 2024-09-13 10:54:10] Force Relay Mode: Off
[I 2024-09-13 10:54:10] unprivileged_user=1 enable_webview=0
[D 2024-09-13 10:54:10] Client status changed to: -3
[D 2024-09-13 10:54:30] Client status changed to: 20
[3 2024-09-13 10:54:32] CANDEX: LAN 192.168.0.211:21932
[2 2024-09-13 10:54:32] Adding LAN Candidate from peer (1); 192.168.0.211:21932
[3 2024-09-13 10:54:32] Sent candidate.
[3 2024-09-13 10:54:32] Sent candidate.
[3 2024-09-13 10:54:32] sent: {"action":"candex","version":1,"payload":{"attempt_id":"fc437306-f326a69c-b608edc0-5eb63016-4644ad04-70e31b33","data":{"lan":true,"port":30433,"ver_data":1,"versions":{"bud":1,"control":1,"p2p":1,"audio":1,"init":1,"video":1},"from_stun":false,"sync":false,"ip":"192.168.0.212"},"to":"2lx75XwDMMFB9UAD2fMxY9B6vZx"}}
[3 2024-09-13 10:54:32] sent: {"action":"candex","version":1,"payload":{"attempt_id":"fc437306-f326a69c-b608edc0-5eb63016-4644ad04-70e31b33","data":{"lan":true,"port":30433,"ver_data":1,"versions":{"bud":1,"control":1,"p2p":1,"audio":1,"init":1,"video":1},"from_stun":false,"sync":false,"ip":"192.168.1.1"},"to":"2lx75XwDMMFB9UAD2fMxY9B6vZx"}}
[2 2024-09-13 10:54:32] Adding LAN Candidate from peer (2); ::ffff:192.168.0.211:21932
[D 2024-09-13 10:54:32] net           = BUD|::ffff:192.168.0.211|21932
[D 2024-09-13 10:54:32] BUD AES_GCM   = 256
[3 2024-09-13 10:54:32] CANDEX: LAN 2401:d002:1705:b400:4cdc:e488:4411:8494:21932
[D 2024-09-13 10:54:34] Client status changed to: 0
[2 2024-09-13 10:54:34] Rejecting LAN Candidate from peer; 2401:d002:1705:b400:4cdc:e488:4411:8494:21932
[3 2024-09-13 10:54:34] CANDEX: WAN ::ffff:203.123.114.36:21932
[2 2024-09-13 10:54:34] Rejecting WAN Candidate from peer; ::ffff:203.123.114.36:21932
[D 2024-09-13 10:54:34] FFMPEG 6 NVIDIA
[4 2024-09-13 10:54:34] FFMPEG 6.1.1 testing hw type 2
[2 2024-09-13 10:54:35] FFMPEG 6.1.1 hw type 2
[2 2024-09-13 10:54:35] FFMPEG format 23
[I 2024-09-13 10:54:41] Host's virtual microphone is disabled
[D 2024-09-13 10:54:49] Client status changed to: -3

The output of vainfo, installing the utility first if needed

Trying display: wayland
libva info: VA-API version 1.22.0
libva info: Trying to open /run/opengl-driver/lib/dri/nvidia_drv_video.so
libva info: Found init function __vaDriverInit_1_0
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.22 (libva 2.22.0)
vainfo: Driver version: VA-API NVDEC driver [direct backend]
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple            : VAEntrypointVLD
VAProfileMPEG2Main              : VAEntrypointVLD
VAProfileVC1Simple              : VAEntrypointVLD
VAProfileVC1Main                : VAEntrypointVLD
VAProfileVC1Advanced            : VAEntrypointVLD
VAProfileH264Main               : VAEntrypointVLD
VAProfileH264High               : VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileHEVCMain               : VAEntrypointVLD
VAProfileVP8Version0_3          : VAEntrypointVLD
VAProfileVP9Profile0            : VAEntrypointVLD
VAProfileAV1Profile0            : VAEntrypointVLD
VAProfileHEVCMain10             : VAEntrypointVLD
VAProfileHEVCMain12             : VAEntrypointVLD
VAProfileVP9Profile2            : VAEntrypointVLD
VAProfileHEVCMain444            : VAEntrypointVLD
VAProfileHEVCMain444_10         : VAEntrypointVLD
VAProfileHEVCMain444_12         : VAEntrypointVLD

Details on what specific Nvidia driver(s) you're using, particularly if NVDEC / CUDA decode is available in any other applications

There are some applications listed as being used by the GPU like firefox so I assume its available in other applications.

Fri Sep 13 10:57:38 2024       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 560.35.03              Driver Version: 560.35.03      CUDA Version: 12.6     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce RTX 4070 Ti     Off |   00000000:26:00.0  On |                  N/A |
|  0%   34C    P8              7W /  285W |     774MiB /  12282MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
|   1  NVIDIA GeForce GTX 1070        Off |   00000000:27:00.0 Off |                  N/A |
|  0%   32C    P8              7W /  200W |       6MiB /   8192MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A      2209      G   ...jj-gnome-shell-46.4/bin/gnome-shell        361MiB |
|    0   N/A  N/A      2633      G   ...g093ak-xwayland-24.1.2/bin/Xwayland         92MiB |
|    0   N/A  N/A      3720      G   ...-firefox-130.0/bin/.firefox-wrapped        242MiB |
|    0   N/A  N/A      5743      G   ...8s0wpd6k-gnome-console-46.0/bin/kgx         48MiB |
|    1   N/A  N/A      2209      G   ...jj-gnome-shell-46.4/bin/gnome-shell          3MiB |
+-----------------------------------------------------------------------------------------+

It is also available in ffmpeg (if I am reading the output correctly):

ffmpeg -hwaccels

ffmpeg version 6.1.2 Copyright (c) 2000-2024 the FFmpeg developers
  built with gcc 13.3.0 (GCC)
  configuration: --disable-static --prefix=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ffmpeg-full-6.1.2 --target_os=linux --arch=x86_64 --pkg-config=pkg-config --enable-gpl --enable-version3 --disable-nonfree --disable-static --enable-shared --enable-pic --disable-thumb --disable-small --enable-runtime-cpudetect --enable-gray --enable-swscale-alpha --enable-hardcoded-tables --enable-safe-bitstream-reader --enable-pthreads --disable-w32threads --disable-os2threads --enable-network --enable-pixelutils --datadir=/nix/store/7ifqzq2dihhzh072la2lh1x1hi80yvnf-ffmpeg-full-6.1.2-data/share/ffmpeg --enable-ffmpeg --enable-ffplay --enable-ffprobe --bindir=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ffmpeg-full-6.1.2-bin/bin --enable-avcodec --enable-avdevice --enable-avfilter --enable-avformat --enable-avutil --enable-postproc --enable-swresample --enable-swscale --libdir=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ffmpeg-full-6.1.2-lib/lib --incdir=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ffmpeg-full-6.1.2-dev/include --enable-doc --enable-htmlpages --enable-manpages --mandir=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ffmpeg-full-6.1.2-man/share/man --enable-podpages --enable-txtpages --docdir=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ffmpeg-full-6.1.2-doc/share/doc/ffmpeg --enable-alsa --enable-amf --enable-libaom --disable-appkit --enable-libaribcaption --enable-libass --disable-audiotoolbox --disable-avfoundation --enable-avisynth --enable-libbluray --enable-libbs2b --enable-bzlib --enable-libcaca --enable-libcelt --enable-chromaprint --enable-libcodec2 --disable-coreimage --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-libdav1d --enable-libdc1394 --enable-libdrm --disable-libfdk-aac --enable-ffnvcodec --enable-libflite --enable-fontconfig --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libfribidi --enable-libgme --enable-gnutls --enable-libgsm --enable-libharfbuzz --enable-iconv --enable-libilbc --enable-libjack --enable-libjxl --enable-ladspa --enable-lcms2 --enable-lzma --disable-metal --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-nvdec --enable-nvenc --enable-openal --enable-opencl --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-opengl --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libplacebo --enable-libpulse --enable-librav1e --enable-librtmp --enable-librubberband --enable-libsmbclient --enable-sdl2 --enable-libshaderc --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-librsvg --enable-libsvtav1 --disable-libtensorflow --enable-libtheora --enable-libtwolame --enable-libv4l2 --enable-v4l2-m2m --enable-vaapi --enable-vdpau --disable-libvpl --disable-videotoolbox --enable-libvidstab --enable-libvmaf --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-vulkan --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxcb --enable-libxcb-shape --enable-libxcb-shm --enable-libxcb-xfixes --enable-xlib --enable-libxml2 --enable-libxvid --enable-libzimg --enable-zlib --enable-libzmq --disable-debug --enable-optimizations --disable-extra-warnings --disable-stripping
  libavutil      58. 29.100 / 58. 29.100
  libavcodec     60. 31.102 / 60. 31.102
  libavformat    60. 16.100 / 60. 16.100
  libavdevice    60.  3.100 / 60.  3.100
  libavfilter     9. 12.100 /  9. 12.100
  libswscale      7.  5.100 /  7.  5.100
  libswresample   4. 12.100 /  4. 12.100
  libpostproc    57.  3.100 / 57.  3.100
Hardware acceleration methods:
vdpau
cuda
vaapi
qsv
drm
opencl
vulkan
Kodikuu commented 2 months ago

Flatpak cannot use CUDA decode (NVIDIA). nvidia-vaapi-driver may or may not help.

This is a limitation of Flatpaks that I'm not going to be able to resolve

On Fri, 13 Sept 2024, 02:00 kimjongbing, @.***> wrote:

I have an RTX 4070ti and an AMD Ryzen 7 3700X I have "NVIDIA" as an option on the nixpkgs binary.

Similar logs in the case of a successful use of hardware decoding via the nixpkgs install

[D 2024-09-13 10:54:10] log: Parsec release-ui[release-alpha] (150-95e, Service: -1, Loader: 12) [D 2024-09-13 10:54:10] log: Parsec release-ui[release-alpha] (150-20240720-163721-alpha, Service: -1, Loader: 12) [D 2024-09-13 10:54:10] log: Parsec getting initial user data. [D 2024-09-13 10:54:10] log: Parsec got initial user data. [2 2024-09-13 10:54:10] Force Relay Mode: Off [2 2024-09-13 10:54:10] Force Relay Mode: Off [I 2024-09-13 10:54:10] unprivileged_user=1 enable_webview=0 [D 2024-09-13 10:54:10] Client status changed to: -3 [D 2024-09-13 10:54:30] Client status changed to: 20 [3 2024-09-13 10:54:32] CANDEX: LAN 192.168.0.211:21932 [2 2024-09-13 10:54:32] Adding LAN Candidate from peer (1); 192.168.0.211:21932 [3 2024-09-13 10:54:32] Sent candidate. [3 2024-09-13 10:54:32] Sent candidate. [3 2024-09-13 10:54:32] sent: {"action":"candex","version":1,"payload":{"attempt_id":"fc437306-f326a69c-b608edc0-5eb63016-4644ad04-70e31b33","data":{"lan":true,"port":30433,"ver_data":1,"versions":{"bud":1,"control":1,"p2p":1,"audio":1,"init":1,"video":1},"from_stun":false,"sync":false,"ip":"192.168.0.212"},"to":"2lx75XwDMMFB9UAD2fMxY9B6vZx"}} [3 2024-09-13 10:54:32] sent: {"action":"candex","version":1,"payload":{"attempt_id":"fc437306-f326a69c-b608edc0-5eb63016-4644ad04-70e31b33","data":{"lan":true,"port":30433,"ver_data":1,"versions":{"bud":1,"control":1,"p2p":1,"audio":1,"init":1,"video":1},"from_stun":false,"sync":false,"ip":"192.168.1.1"},"to":"2lx75XwDMMFB9UAD2fMxY9B6vZx"}} [2 2024-09-13 10:54:32] Adding LAN Candidate from peer (2); ::ffff:192.168.0.211:21932 [D 2024-09-13 10:54:32] net = BUD|::ffff:192.168.0.211|21932 [D 2024-09-13 10:54:32] BUD AES_GCM = 256 [3 2024-09-13 10:54:32] CANDEX: LAN 2401:d002:1705:b400:4cdc:e488:4411:8494:21932 [D 2024-09-13 10:54:34] Client status changed to: 0 [2 2024-09-13 10:54:34] Rejecting LAN Candidate from peer; 2401:d002:1705:b400:4cdc:e488:4411:8494:21932 [3 2024-09-13 10:54:34] CANDEX: WAN ::ffff:203.123.114.36:21932 [2 2024-09-13 10:54:34] Rejecting WAN Candidate from peer; ::ffff:203.123.114.36:21932 [D 2024-09-13 10:54:34] FFMPEG 6 NVIDIA [4 2024-09-13 10:54:34] FFMPEG 6.1.1 testing hw type 2 [2 2024-09-13 10:54:35] FFMPEG 6.1.1 hw type 2 [2 2024-09-13 10:54:35] FFMPEG format 23 [I 2024-09-13 10:54:41] Host's virtual microphone is disabled [D 2024-09-13 10:54:49] Client status changed to: -3

The output of vainfo, installing the utility first if needed

Trying display: wayland libva info: VA-API version 1.22.0 libva info: Trying to open /run/opengl-driver/lib/dri/nvidia_drv_video.so libva info: Found init function __vaDriverInit_1_0 libva info: va_openDriver() returns 0 vainfo: VA-API version: 1.22 (libva 2.22.0) vainfo: Driver version: VA-API NVDEC driver [direct backend] vainfo: Supported profile and entrypoints VAProfileMPEG2Simple : VAEntrypointVLD VAProfileMPEG2Main : VAEntrypointVLD VAProfileVC1Simple : VAEntrypointVLD VAProfileVC1Main : VAEntrypointVLD VAProfileVC1Advanced : VAEntrypointVLD VAProfileH264Main : VAEntrypointVLD VAProfileH264High : VAEntrypointVLD VAProfileH264ConstrainedBaseline: VAEntrypointVLD VAProfileHEVCMain : VAEntrypointVLD VAProfileVP8Version0_3 : VAEntrypointVLD VAProfileVP9Profile0 : VAEntrypointVLD VAProfileAV1Profile0 : VAEntrypointVLD VAProfileHEVCMain10 : VAEntrypointVLD VAProfileHEVCMain12 : VAEntrypointVLD VAProfileVP9Profile2 : VAEntrypointVLD VAProfileHEVCMain444 : VAEntrypointVLD VAProfileHEVCMain444_10 : VAEntrypointVLD VAProfileHEVCMain444_12 : VAEntrypointVLD

Details on what specific Nvidia driver(s) you're using, particularly if NVDEC / CUDA decode is available in any other applications There are some applications listed as being used by the GPU like firefox so I assume its available in other applications.

Fri Sep 13 10:57:38 2024 +-----------------------------------------------------------------------------------------+ | NVIDIA-SMI 560.35.03 Driver Version: 560.35.03 CUDA Version: 12.6 | |-----------------------------------------+------------------------+----------------------+ | GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |=========================================+========================+======================| | 0 NVIDIA GeForce RTX 4070 Ti Off | 00000000:26:00.0 On | N/A | | 0% 34C P8 7W / 285W | 774MiB / 12282MiB | 0% Default | | | | N/A | +-----------------------------------------+------------------------+----------------------+ | 1 NVIDIA GeForce GTX 1070 Off | 00000000:27:00.0 Off | N/A | | 0% 32C P8 7W / 200W | 6MiB / 8192MiB | 0% Default | | | | N/A | +-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=========================================================================================| | 0 N/A N/A 2209 G ...jj-gnome-shell-46.4/bin/gnome-shell 361MiB | | 0 N/A N/A 2633 G ...g093ak-xwayland-24.1.2/bin/Xwayland 92MiB | | 0 N/A N/A 3720 G ...-firefox-130.0/bin/.firefox-wrapped 242MiB | | 0 N/A N/A 5743 G ...8s0wpd6k-gnome-console-46.0/bin/kgx 48MiB | | 1 N/A N/A 2209 G ...jj-gnome-shell-46.4/bin/gnome-shell 3MiB | +-----------------------------------------------------------------------------------------+

It is also available in ffmpeg (if I am reading the output correctly):

ffmpeg -hwaccels

ffmpeg version 6.1.2 Copyright (c) 2000-2024 the FFmpeg developers built with gcc 13.3.0 (GCC) configuration: --disable-static --prefix=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ffmpeg-full-6.1.2 --target_os=linux --arch=x86_64 --pkg-config=pkg-config --enable-gpl --enable-version3 --disable-nonfree --disable-static --enable-shared --enable-pic --disable-thumb --disable-small --enable-runtime-cpudetect --enable-gray --enable-swscale-alpha --enable-hardcoded-tables --enable-safe-bitstream-reader --enable-pthreads --disable-w32threads --disable-os2threads --enable-network --enable-pixelutils --datadir=/nix/store/7ifqzq2dihhzh072la2lh1x1hi80yvnf-ffmpeg-full-6.1.2-data/share/ffmpeg --enable-ffmpeg --enable-ffplay --enable-ffprobe --bindir=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ffmpeg-full-6.1.2-bin/bin --enable-avcodec --enable-avdevice --enable-avfilter --enable-avformat --enable-avutil --enable-postproc --enable-swresample --enable-swscale --libdir=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ffmpeg-full-6.1.2-lib/lib --incdir=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ffmpeg-full-6.1.2-dev/include --enable-doc --enable-htmlpages --enable-manpages --mandir=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ffmpeg-full-6.1.2-man/share/man --enable-podpages --enable-txtpages --docdir=/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-ffmpeg-full-6.1.2-doc/share/doc/ffmpeg --enable-alsa --enable-amf --enable-libaom --disable-appkit --enable-libaribcaption --enable-libass --disable-audiotoolbox --disable-avfoundation --enable-avisynth --enable-libbluray --enable-libbs2b --enable-bzlib --enable-libcaca --enable-libcelt --enable-chromaprint --enable-libcodec2 --disable-coreimage --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-libdav1d --enable-libdc1394 --enable-libdrm --disable-libfdk-aac --enable-ffnvcodec --enable-libflite --enable-fontconfig --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libfribidi --enable-libgme --enable-gnutls --enable-libgsm --enable-libharfbuzz --enable-iconv --enable-libilbc --enable-libjack --enable-libjxl --enable-ladspa --enable-lcms2 --enable-lzma --disable-metal --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libmysofa --enable-nvdec --enable-nvenc --enable-openal --enable-opencl --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-opengl --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libplacebo --enable-libpulse --enable-librav1e --enable-librtmp --enable-librubberband --enable-libsmbclient --enable-sdl2 --enable-libshaderc --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-librsvg --enable-libsvtav1 --disable-libtensorflow --enable-libtheora --enable-libtwolame --enable-libv4l2 --enable-v4l2-m2m --enable-vaapi --enable-vdpau --disable-libvpl --disable-videotoolbox --enable-libvidstab --enable-libvmaf --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-vulkan --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxcb --enable-libxcb-shape --enable-libxcb-shm --enable-libxcb-xfixes --enable-xlib --enable-libxml2 --enable-libxvid --enable-libzimg --enable-zlib --enable-libzmq --disable-debug --enable-optimizations --disable-extra-warnings --disable-stripping libavutil 58. 29.100 / 58. 29.100 libavcodec 60. 31.102 / 60. 31.102 libavformat 60. 16.100 / 60. 16.100 libavdevice 60. 3.100 / 60. 3.100 libavfilter 9. 12.100 / 9. 12.100 libswscale 7. 5.100 / 7. 5.100 libswresample 4. 12.100 / 4. 12.100 libpostproc 57. 3.100 / 57. 3.100 Hardware acceleration methods: vdpau cuda vaapi qsv drm opencl vulkan

— Reply to this email directly, view it on GitHub https://github.com/flathub/com.parsecgaming.parsec/issues/61#issuecomment-2347767728, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD6U6B6DJ4HJLRJQRGTE4STZWI2MJAVCNFSM6AAAAABODK6E4CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNBXG43DONZSHA . You are receiving this because you commented.Message ID: <flathub/com. @.***>

kimjongbing commented 2 months ago

Flatpak cannot use CUDA decode (NVIDIA). nvidia-vaapi-driver may or may not help. This is a limitation of Flatpaks that I'm not going to be able to resolve

I see, that is unfortunate. Is it not possible to allow it somehow via Flatseal?

Patoaltaco commented 3 weeks ago

Hi @Kodikuu @kimjongbing

I have Fedora 41 Workstation Gnome 47 Linux 6.11.5-300.fc41.x86_64 Nvidia drivers installed 565.57.01

I have a dual monitor that always worked well in fedora 39. Now I can not connect using Hardware, but yes with software, but with software does not work the second screen, never load and gives an error

On the console I get [D 2024-11-02 08:08:42] log: Parsec release-ui[release1] (150-95e, Service: -1, Loader: 12) [D 2024-11-02 08:08:42] MTY_DeleteFile: 'remove' failed with errno 39 [D 2024-11-02 08:08:42] log: Parsec getting initial user data. [D 2024-11-02 08:08:43] log: Parsec got initial user data. [2 2024-11-02 08:08:43] Force Relay Mode: Off [2 2024-11-02 08:08:43] Force Relay Mode: Off [I 2024-11-02 08:08:43] unprivileged_user=1 enable_webview=0 [D 2024-11-02 08:08:43] Client status changed to: -3 [AVHWDeviceContext @ 0x7f4a6c465a40] Failed to initialise VAAPI connection: -1 (unknown libva error). [AVHWDeviceContext @ 0x7f4a6c479200] Failed to initialise VAAPI connection: -1 (unknown libva error). I did executing parsec adding --socket=x11 --socket=pulseaudio

That should be workarounds for Wayland, but still gives me the above.

Cheers!

Kodikuu commented 3 weeks ago

Again, there is no CUDA in flatpak. Unless you can get libva/vaapi or CUDA working in flatpak, you cannot use Parsec with your Nvidia GPU.

Patoaltaco commented 3 weeks ago

Hi @Kodikuu @kimjongbing

Kodiku! Thank you but is there then another way to intall parsec with out flatpack? Till Fedora 39 was working perfect!

Thank you!

Patoaltaco commented 2 weeks ago

Hi @Kodikuu Another thing that probably I dont understand, Parsec with the same gear (hardware Lenovo Legion 5 15IAH7H) was working perfectly till I did update to fedora 40 (And that is my best guess), Is there a good or logical reason for this I'm not understanding? I really need parsec working with 2 displays, is driving me crazy and I need it to for work remotely, I'm abroad and I can not work properly for more than 2 weeks now.

Thank you very much! Cheers Pato.

kimjongbing commented 2 weeks ago

Hi @Kodikuu Another thing that probably I dont understand, Parsec with the same gear (hardware Lenovo Legion 5 15IAH7H) was working perfectly till I did update to fedora 40 (And that is my best guess), Is there a good or logical reason for this I'm not understanding? I really need parsec working with 2 displays, is driving me crazy and I need it to for work remotely, I'm abroad and I can not work properly for more than 2 weeks now.

Thank you very much! Cheers Pato.

I'm replying just incase noone else ends up replying to you with this as an idea but keep in mind I've never used Fedora so it's just pointing you in (hopefully) the right direction until someone else can give you a better answer.

You might be able to follow this to make the .deb work on Fedora: https://gist.github.com/schplorg/4efad04b04c1c3316498e381c9b59dbb

wget https://builds.parsecgaming.com/package/parsec-linux.deb
sudo dnf install alien
sudo alien -r parsec-linux.deb 
sudo dnf install parsec-150-29.x86_64.rpm

Might need to be adapted to be for the current version or something

Kodikuu commented 2 weeks ago

@Patoaltaco Since Nvidia/CUDA isn't really an option in Flatpak, you likely had it working via the Intel integrated graphics' QuickSync decoder, through FFMPEG's VAAPI/libva2 support.

The commandline tool vainfo should output a success case, listing the Intel driver used for libva as well as a series of supported entrypoints for H.264, HEVC, and others. You may need to install the tool first. If the tool outputs errors, you will need to fix your vaapi driver setup.

Patoaltaco commented 2 weeks ago

@Kodikuu Thanks for your answer, trying many different things, I dont know what acutally happend, but now using software as an option, after i did install anydesk and connected with Anydesk on the second monitor, the second screen with parsec started to work! For sure this overpass my understanding... But working.

Thank you very much for your help

meltedtoast commented 5 days ago

In case anyone sees this, the solution for me on arch linux is to install the libva-nvidia-driver from the extra repo here: https://archlinux.org/packages/extra/x86_64/libva-nvidia-driver/ which is the same as: https://github.com/elFarto/nvidia-vaapi-driver/

So if any nvidia users are getting libva errors, maybe you can compile it for your distro.