elFarto / nvidia-vaapi-driver

A VA-API implemention using NVIDIA's NVDEC
Other
1.15k stars 53 forks source link

Decoding not working in Firefox on KDE Neon 22.04 #309

Open scarf005 opened 2 weeks ago

scarf005 commented 2 weeks ago

image

Using Mozilla Firefox 128.0b9. Have built libva and nvidia-vaapi-driver from source. Hardware video decoding (e.g h264) does not work in firefox developer edition, hovever.

$ MOZ_LOG="FFmpegVideo:5" NVD_LOG=1 NVD_BACKEND=direct ~/opt/firefox_dev/firefox
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
libEGL warning: egl: failed to create dri2 screen
$ NVD_BACKEND=direct MOZ_DISABLE_RDD_SANDBOX=1 EGL_PLATFORM=wayland LIBVA_DRIVER_NAME=nvidia firefox
[11638] Wayland Proxy [0x7d53b53b9890] Error: StartProxyServer(): bind() error : 허가 거부
[GFX1-]: glxtest: ManageChildProcess failed

[GFX1-]: No GPUs detected via PCI

[Parent 11638, Main Thread] WARNING: Error releasing name org.mozilla.firefox.ZGVmYXVsdC1yZWxlYXNlLTI_: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.99" (uid=1000 pid=11638 comm="/usr/lib/firefox/firefox " label="firefox (enforce)") interface="org.freedesktop.DBus" member="ReleaseName" error name="(unset)" requested_reply="0" destination="org.freedesktop.DBus" (bus): 'glib warning', file /build/firefox-G6C8FA/firefox-128.0+build2/toolkit/xre/nsSigHandlers.cpp:187

(firefox:11638): GLib-GIO-WARNING **: 21:18:52.659: Error releasing name org.mozilla.firefox.ZGVmYXVsdC1yZWxlYXNlLTI_: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.99" (uid=1000 pid=11638 comm="/usr/lib/firefox/firefox " label="firefox (enforce)") interface="org.freedesktop.DBus" member="ReleaseName" error name="(unset)" requested_reply="0" destination="org.freedesktop.DBus" (bus)
 ~  NVD_LOG=1 NVD_BACKEND=direct MOZ_DISABLE_RDD_SANDBOX=1 EGL_PLATFORM=wayland LIBVA_DRIVER_NAME=nvidia firefox
[11963] Wayland Proxy [0x73eee66b9890] Error: StartProxyServer(): bind() error : 허가 거부
[GFX1-]: glxtest: ManageChildProcess failed

[GFX1-]: No GPUs detected via PCI

[Parent 11963, Main Thread] WARNING: Error releasing name org.mozilla.firefox.ZGVmYXVsdC1yZWxlYXNlLTI_: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.101" (uid=1000 pid=11963 comm="/usr/lib/firefox/firefox " label="firefox (enforce)") interface="org.freedesktop.DBus" member="ReleaseName" error name="(unset)" requested_reply="0" destination="org.freedesktop.DBus" (bus): 'glib warning', file /build/firefox-G6C8FA/firefox-128.0+build2/toolkit/xre/nsSigHandlers.cpp:187

(firefox:11963): GLib-GIO-WARNING **: 21:19:11.824: Error releasing name org.mozilla.firefox.ZGVmYXVsdC1yZWxlYXNlLTI_: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.101" (uid=1000 pid=11963 comm="/usr/lib/firefox/firefox " label="firefox (enforce)") interface="org.freedesktop.DBus" member="ReleaseName" error name="(unset)" requested_reply="0" destination="org.freedesktop.DBus" (bus)

Information

system info

``` OS: KDE neon jammy 22.04 x86_64 Host: Victus by HP 15L Gaming Desktop TG02-0xxx Kernel: Linux 6.5.0-41-generic Uptime: 1 hour, 26 mins Packages: 2502 (dpkg), 531 (nix-user), 48 (nix-default), 36 (flatpak-user) Shell: fish 3.7.1 Display (LG HDR QHD): 2560x1440 @ 60Hz [External] Display (Odyssey G52A): 2560x1440 @ 165Hz DE: KDE Plasma 6.1.1 WM: KWin (Wayland) WM Theme: Breeze Theme: Breeze (Light) [QT], Breeze [GTK2/3] Icons: breeze [QT], breeze [GTK2/3/4] Font: Noto Sans CJK KR (10pt) [QT], Noto Sans CJK KR (10pt) [GTK2/3/4] Cursor: breeze (24px) Terminal: konsole 24.5.1 Terminal Font: Sarasa Mono K Nerd Font (16pt) CPU: AMD Ryzen 5 5600G (12) @ 3.90 GHz GPU 1: NVIDIA GeForce GTX 1660 SUPER [Discrete] GPU 2: AMD Radeon Vega Series / Radeon Vega Mobile Series @ 0.40 GHz [Integrated] Memory: 4.48 GiB / 30.68 GiB (15%) Swap: 36.62 MiB / 32.00 GiB (0%) Disk (/): 37.21 GiB / 250.92 GiB (15%) - ext4 Disk (/home): 380.94 GiB / 628.89 GiB (61%) - ext4 Disk (/media/scarf): 541.40 GiB / 931.51 GiB (58%) - btrfs Locale: ko_KR.UTF-8 ```

glxinfo -B

``` name of display: :1 display: :1 screen: 0 direct rendering: Yes Memory info (GL_NVX_gpu_memory_info): Dedicated video memory: 6144 MB Total available memory: 6144 MB Currently available dedicated video memory: 4527 MB OpenGL vendor string: NVIDIA Corporation OpenGL renderer string: NVIDIA GeForce GTX 1660 SUPER/PCIe/SSE2 OpenGL core profile version string: 4.6.0 NVIDIA 555.52.04 OpenGL core profile shading language version string: 4.60 NVIDIA OpenGL core profile context flags: (none) OpenGL core profile profile mask: core profile OpenGL version string: 4.6.0 NVIDIA 555.52.04 OpenGL shading language version string: 4.60 NVIDIA OpenGL context flags: (none) OpenGL profile mask: (none) OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 555.52.04 OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20 ```

vainfo

``` vainfo: VA-API version: 1.23 (libva 2.12.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 VAProfileHEVCMain10 : VAEntrypointVLD VAProfileHEVCMain12 : VAEntrypointVLD VAProfileVP9Profile2 : VAEntrypointVLD VAProfileHEVCMain444 : VAEntrypointVLD ```

nvidia-smi

``` Sun Jun 30 17:29:23 2024 +-----------------------------------------------------------------------------------------+ | NVIDIA-SMI 555.52.04 Driver Version: 555.52.04 CUDA Version: 12.5 | |-----------------------------------------+------------------------+----------------------+ | 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 GTX 1660 ... Off | 00000000:01:00.0 On | N/A | | 47% 48C P0 28W / 125W | 1215MiB / 6144MiB | 2% Default | | | | N/A | +-----------------------------------------+------------------------+----------------------+ +-----------------------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=========================================================================================| | 0 N/A N/A 1003 G /usr/lib/xorg/Xorg 34MiB | | 0 N/A N/A 1194 G /usr/bin/kwin_wayland 90MiB | | 0 N/A N/A 1622 G /usr/bin/Xwayland 556MiB | | 0 N/A N/A 1679 G /usr/bin/ksmserver 1MiB | | 0 N/A N/A 1988 G /usr/bin/kaccess 1MiB | | 0 N/A N/A 30038 G ...erProcess --variations-seed-version 298MiB | +-----------------------------------------------------------------------------------------+ ```