[DUPLICATE THREAD] A highly-amateur census of hardware-accelerated video decoding issues:

Hello. I’ve been banging my head against the apparently-common issue of hardware accelerated video decoding on Linux, and I thought I should do a census on what works. I tested video decoding on all four of the Linux devices I have on hand, with three different video-decoding applications each. I don’t draw any conclusions from this, other than the obvious fact that almost nothing clearly works “out of the box.” This is just for the sake of one person reporting their unscientific experience:

On Zorin (Framework laptop):
Brave: No (also tried the commonly-recommended solutions)
Firefox: No
VLC: Maybe. VLC complains when launched from the terminal, but CPU usage is lower than streamed videos.
vainfo: unhealthy.

On Zorin Lite (Thinkpad T550):
Brave: No
Firefox: No
VLC: Yes

On Steam OS 3 (Steam Deck):
Brave: Maybe. CPU loads, but GPU also occasionally spikes for an instant. Brawser says that it can use hardware accelerated decoding, but isn’t.
Firefox: Maybe. CPU loads, but GPU also occasionally spikes for an instant.
VLC: Maybe. CPU loads less than with browsers, and GPU loads more. Much less distinct than VLC on Zorin Lite, though.

On Mint (Framework Laptop):
Brave: No (also tried the commonly-recommended solutions)
Firefox: No
VLC: Yes
vainfo: VA-API 1.14.0 seems healthy.

1 Like

Hardware decoding is barely distro depending.

Its all about installing the right packages and setting it up correctly.

In fact I use firefox and mpv both with hardware decoding.

Check out the Arch Wiki on whats required for each program you use.

https://wiki.archlinux.org/title/Hardware_video_acceleration

I have been able to get hardware accelerated decoding on Firefox in every Ubuntu-based distro I have tried, including Mint. It seems like even the flatpak version of Firefox now has the correct runtimes for the newer intel igpus. I have never been able to get it to work in the snap version of Firefox though - maybe this is the problem on Zorin OS?

Here is what I do:

  1. install media drivers
sudo apt install intel-media-va-driver intel-gpu-tools libva-wayland2 ffmpeg vainfo
  1. edit environment variables
sudo nano /etc/profile

add

export LIBVA_DRIVER_NAME=“iHD”

also, on desktop environments using Wayland add:

export MOZ_ENABLE_WAYLAND=1

  1. edit firefox about:config

media.ffmpeg.vaapi.enabled = true

I uninstalled the version of Firefox that comes with Zorin, which is a Snap, and installed one through APT. But no dice, based on the output of intel_gpu_top.

And yes: I have followed the directions on the Arch wiki to the best of my ability.

I’d like to direct people to the thread I made about trying to fix this problem: https://community.frame.work/t/responded-hardware-decoding-not-working-on-zorin-os

This thread was made just to report the findings of my tests.

I think it may also depend on the streaming platform’s implementation. Although the same video on bilibili and youtube are all encoded in av1, the one on bilibili cannot trigger hardware acceleration but the one on youtube can.

I tested only on youtube. Again: unscientific, but I tried various videos, because I’ve heard that, even on youtube, hardware decoding support isn’t the same across all videos.

Please do not create a duplicate thread. This should remain on the https://community.frame.work/t/responded-hardware-decoding-not-working-on-zorin-os thread please.

This is clearly the same issue on the other thread, closing as a duplicate.