Which Linux distro are you using?
Fedora
Which release version?
42, KDE Plasma
Which kernel are you using?
6.16.9-200.fc42.x86_64
Which BIOS version are you using?
3.07
Which Framework Laptop 16 model are you using?
AMD Ryzen 7 7840HS, no dGPU.
Which Linux distro are you using?
Fedora
Which release version?
42, KDE Plasma
Which kernel are you using?
6.16.9-200.fc42.x86_64
Which BIOS version are you using?
3.07
Which Framework Laptop 16 model are you using?
AMD Ryzen 7 7840HS, no dGPU.
I’m trying to get Handbrake set up for transcoding some videos to AV1. I installed the latest version, but there are no options for AMD’s hardware encoders, including the open-source AV1. I thought that it might be an issue with Handbrake, so I tried installing OBS, but trying to record with any of the hardware encoders results in an error report: “An unspecified error occurred while recording. Failed to open video codec: Unknown error occurred”
I can sort of understand why Fedora does not ship with native support for h.264 or h.265, but AV1 is designed to be open-source and royalty-free.
according to the HandBrake documentation HandBrake Documentation — AMD VCN we need to install drivers from AMD directly
edit: I tried to install these drivers from amd and failed totally. You are supposed to add the repos and then run an installation script, but the repos returned a 404 at the time that I tried.
Well, that sucks. Guess I’m gonna need to keep my Windows installation for the time being, then. Thanks for finding that for me.
I haven’t tried handbrake, but I have used the VA1 encoder with OBS on Ubuntu 24 and it worked fine with the following settings:
kdenlive also works well with vaapi-amd, although I mainly use h264 there
That said, I have had trouble with flatpaks and snaps using the gpu, so maybe that is an issue with OBS on Fedora? I have OBS installed through the PPA so there’s no sandboxing to deal with…
Making sure you’re not on a flatpak version could certainly be a good troubleshooting step. I’ve also heard of issues with GPU acccess.
I have in a roundabout way achieved an easier solution:
I am now trying Bazzite in place of Fedora 42. With the Flatpak I still do not get VCN encoders, but I noticed while messing around I could use the command ujust distrobox-assemble and choose arch-amdgpupro as a container. So I created the container, installed handbrake pacman -S handbrake and ran it from the container ghb. I now have access to all the hardware encoders in this way.
The container specifically is ghcr.io/ublue-os/arch-toolbox-amdgpupro:latest
I tested it out and it did work but for some reason the hw av1 encoder would not encode into a webm, even though svt-av1 did. Presumably that’s a Handbrake bug.
Fedora disables a lot of codecs by default in the mesa build. That’s probably why you’re missing support.
There are some repositories that rebuild mesa with all codec support or you can pick a distro that does it by default.