Brave browser (chromium) shows that hardware video acceleration is not working. intel-media-va-driver is installed. Going off a suggestion on the Arch wiki, I installed and ran vainfo. It outputs the following:
libva info: VA-API version 1.7.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_7
libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
libva info: va_openDriver() returns 1
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_6
libva error: /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so init failed
libva info: va_openDriver() returns -1
vaInitialize failed with error code -1 (unknown libva error),exit
In user-speak: it seems unhappy. Any help would be appreciated.
I ensured that the intel media driver was installed. On the Arch wiki, it calls this “intel-media-driver”, but I think that the Debian-derivative equivalent of this is “intel-media-va-driver.”
Then I installed and ran vainfo, so I could give the folks on this forum something to work with. I think that’s all I did from the arch wiki.
I tried upgrading to kernel 5.15.96, which broke output to a second display, then 6.0.9, which broke the OS entirely.
Going along that line of thinking, though, I did a more general search about hardware video decoding in Ubuntu, particularly with Chromium browsers, and it looks like the issue is just a menace right now. There are lots of open threads without conclusive answers, some dating back years. It makes me pessimistic that I’ll get this fixed, but I’ll keep looking.
Following up on my comment in the other thread (A highly-amateur census of hardware-accelerated video decoding issues: - #4 by Aidan), it may be worth trying the Firefox flatpak (version 110) on Zorin. I have never gotten hardware decoding to work with snap Firefox, and vanilla Ubuntu installs the snap version by default - annoyingly, even if you use “apt” to install it. Zorin OS may do this also.
I think the only thing you need to do to enable HW decode on flatpak Firefox is to set “media.ffmpeg.vaapi.enabled = true” under about:config. My understanding is that it just uses the runtimes that are packaged with flatpak (“org.freedesktop.Platform.VAAPI.Intel”) to do the HW acceleration.
Help me understand: is trying to address the problem at the browser level even worthwhile while vainfo gives the output shown in the OP? Doesn’t that indicate that hardware decoding is broken on the system level?
My understanding of flatpak is that it might help - since it will use the media drivers installed in its own self-contained universe of runtimes, and not the main system ones. This could help get around any problems Zorin is having installing the media drivers from apt. Just a guess though!