You are not logged in.
Hi all,
After a recent update, h264 video acceleration broke in browsers. I experience this on two computers: on a gnome/wayland intel video (Intel Skylake GT2 [HD Graphics 520]) laptop in firefox, and on an x11/xfce amd video (AMD Radeon HD 6850) desktop in firefox and chromium. Other software (e.g. vlc) still accelerate. Vainfo looks normal. Please see details below.
Intel video laptop:
Linux version 6.5.9-arch2-1 (linux@archlinux) (gcc (GCC) 13.2.1 20230801, GNU ld (GNU Binutils) 2.41.0) #1 SMP PREEMPT_DYNAMIC Thu, 26 Oct 2023 00:52:20 +0000vainfo
Trying display: wayland
vainfo: VA-API version: 1.20 (libva 2.20.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 23.3.5 ()
vainfo: Supported profile and entrypoints
VAProfileNone : VAEntrypointVideoProc
VAProfileNone : VAEntrypointStats
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Simple : VAEntrypointEncSlice
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointFEI
VAProfileH264Main : VAEntrypointEncSliceLP
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointFEI
VAProfileH264High : VAEntrypointEncSliceLP
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileJPEGBaseline : VAEntrypointEncPicture
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264ConstrainedBaseline: VAEntrypointFEI
VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
VAProfileVP8Version0_3 : VAEntrypointVLD
VAProfileVP8Version0_3 : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointFEI Device-1: Intel Skylake GT2 [HD Graphics 520] vendor: Lenovo driver: i915
v: kernel arch: Gen-9 bus-ID: 00:02.0
Display: wayland server: X.org v: 1.21.1.9 with: Xwayland v: 23.2.2
compositor: gnome-shell driver: X: loaded: modesetting dri: iris gpu: i915
resolution: no compositor data resolution: 1920x1080extra/firefox 119.0-1 [installed]
extra/libva 2.20.0-1 [installed]
extra/mesa 1:23.2.1-2 [installed]
extra/glu 9.0.3-1 [installed]Amd video desktop:
Linux version 6.5.9-arch2-1 (linux@archlinux) (gcc (GCC) 13.2.1 20230801, GNU ld (GNU Binutils) 2.41.0) #1 SMP PREEMPT_DYNAMIC Thu, 26 Oct 2023 00:52:20 +0000vainfo
Trying display: wayland
Trying display: x11
vainfo: VA-API version: 1.20 (libva 2.20.0)
vainfo: Driver version: Mesa Gallium driver 23.2.1-arch1.2 for AMD BARTS (DRM 2.50.0 / 6.5.9-arch2-1, LLVM 16.0.6)
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264Main : VAEntrypointVLD
VAProfileH264High : VAEntrypointVLD
VAProfileH264High10 : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc Device-1: AMD Barts PRO [Radeon HD 6850] vendor: PC Partner / Sapphire
driver: radeon v: kernel arch: TeraScale-2 bus-ID: 03:00.0 temp: 35.0 C
Display: x11 server: X.Org v: 21.1.9 driver: X: loaded: radeon
unloaded: modesetting dri: r600 gpu: radeon resolution: 1920x1200~60Hz
API: EGL v: 1.5 drivers: kms_swrast,r600,swrast platforms:
active: gbm,x11,surfaceless,device inactive: wayland
API: OpenGL v: 4.5 vendor: mesa v: 23.2.1-arch1.2 glx-v: 1.4
direct-render: yes renderer: AMD BARTS (DRM 2.50.0 / 6.5.9-arch2-1 LLVM
16.0.6)extra/firefox 119.0-1 [installed]
extra/chromium 119.0.6045.105-1 [installed]
extra/libva 2.20.0-1 [installed]
extra/mesa 1:23.2.1-2 [installed]
extra/glu 9.0.3-1 [installed]Chromium also throws an error at me:
[2197:2197:1102/113839.877346:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)I identify the presence or lack of acceleration in the browsers as per arch wiki. (MOZ_LOG="PlatformDecoderModule:5" and chrome://media-internals etc.). h264ify is working (these hardware do not do vp9).
Please suggest how to troubleshoot this.
Offline
I'm experiencing the same in Firefox (I don't know about Chromium).
Setting media.ffmpeg.vaapi.enabled to true in about:config used to be enough to enable VA-API.
Offline
'chromium-wayland-vaapi' does work properly on the wayland/intel machine, so I shelved firefox for the time being on that one.
Offline
After a few updates I checked Firefox again, and vaapi acceleration is now working fine on the intel / wayland machine.
Offline