bluefin: Hardware Video Decoding broken on all browsers... except two
Describe the bug
I’ve tried multiple browsers against YouTube, which is using VP9 codec for all videos, and all of these do play the video using the CPU rather than the VP9 hardware video decoder.
As expected, CPU usage spikes as the video resolution rises. Weaker CPUs will struggle, and older laptops will last less on battery.
What did you expect to happen?
To use the Hardware Video Decoder from the platform.
Output of rpm-ostree status
State: idle
AutomaticUpdates: stage; rpm-ostreed-automatic.timer: last run 28min ago
Deployments:
● ostree-image-signed:docker://ghcr.io/ublue-os/bluefin-dx:stable
Digest: sha256:6268e5ef31ce6e6bed0b07f0c46e8fadccbfa5b7f7594008d623db1ae72376a6
Version: 40.20241019.0 (2024-10-20T22:26:08Z)
ostree-image-signed:docker://ghcr.io/ublue-os/bluefin-dx:latest
Digest: sha256:dd0b5df2b71d07462b41a2f9143df2928ef5361898365e5455bcfd693bda6e73
Version: 40.20240920.0 (2024-09-21T04:53:07Z)
(Yeah, moved from latest to stable because latest borked GNOME Shell preferences on their latest, but I believe I saw the same problem of hardware video acceleration).
Output of groups
amazingdev wheel
Extra information or context
The platform is a Ryzen 8845HS w/ Radeon 780M. It’s confirmed to support VP9:
Trying display: wayland
libva info: VA-API version 1.22.0
libva info: Trying to open /usr/lib64/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.22 (libva 2.21.0)
vainfo: Driver version: Mesa Gallium driver 24.1.7 for AMD Radeon Graphics (radeonsi, gfx1103_r1, LLVM 18.1.8, DRM 3.57, 6.10.10-200.fc40.x86_64)
vainfo: Supported profile and entrypoints
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointEncSlice
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileHEVCMain10 : VAEntrypointEncSlice
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileVP9Profile0 : VAEntrypointVLD
VAProfileVP9Profile2 : VAEntrypointVLD
VAProfileAV1Profile0 : VAEntrypointVLD
VAProfileAV1Profile0 : VAEntrypointEncSlice
VAProfileNone : VAEntrypointVideoProc
I’ve tried the following browsers against the same 4K video, all Flatpaks:
| Browser | Version | Hardware Decoding | GPU HA (Flatseal) |
|---|---|---|---|
| Zen¹ | 1.0.1-a.12 (Firefox 131.0.3) (64-bit) | Yes | Works even when disabled |
| GNOME Web (Epiphany) | 47.2 (WebKit) | Yes | Requires it² |
| Chromium | 130.0.6723.58 (64-bit) | No | Not even when enabled |
| Google Chrome | 130.0.6723.69 (64-bit) | No | Not even when enabled |
| Google Chrome (dev) | 132.0.6793.2 (64-bit) | No | Not even when enabled |
| Mozilla Firefox | 131.0.3 (64-bit) | No | Not even when enabled |
| Microsoft Edge | 130.0.2849.56 (64-bit) | No | Not even when enabled |
| Brave | 1.71.118 (Chromium 130.0.6723.70) (64-bit) | No | Not even when enabled |
| Vivaldi | 7.0.3495.6 (Chromium 130.0.6723.70) (64-bit) | No | Not even when enabled |
| LibreWolf | 131.0.3-1 | No | Not even when enabled |
GPU Decoding was measured through Mission Center 0.6.1.
I will re-test all of them by forcing them to run in Wayland, with Graphic Acceleration. Added GPU HA via Flatseal.
¹: Zen works with Video Hardware Decoding even if the device=dri option from Flatseal comes disabled by default.
²: I loaded GNOME Web on X11 and Hardware Video Decoding was available. I disabled it via Flatseal and the video was decoded by the CPU.
³: Most browsers don’t work on Wayland, except Zen, GNOME Web (Epiphany) and LibreWolf.
Related
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 16 (6 by maintainers)
Just a minor update. Because GNOME 47 fucks up the multi-GPU performance on the laptop I was using, I cannot comment or add data if this problem also affects GNOME 47.
Guess I’ll have to tell the boss to bring me a Macbook.
Closing the chapter.
You’re running on X11 (XWayland, to be precise). Also, Tiger Lake GT2 (Gen 12.1).
Does
vainfoshows you’re using iHD or i965 for video acceleration purposes?