Fedora 37 and newer AMD video decoding
For linux distribution Fedora version 37 and newer, if you are using an AMD graphics card (gpu), the main package repositories no longer provide the drivers needed to decode video streams in browsers and other applicationns that utilize libraries such as vdpau.
Fortunately along with other non-free software such as codecs, the RPMFusion repository can be added to your system to install the drivers needed to decode videos using your GPU.
Install RPM Fusion repo
If you don’t already have the RPM fusion repositories installed on your system, first you need to install those.
See the latest instructions from the RPM fusion site: https://rpmfusion.org/Configuration
Install Hardware codecs for AMD with mesa
Once the rpfusion-free repository is enabled, you can use the dnf
package manager to install the mesa drivers from rpm fusion instead of the normal Fedora package repositories.
First install needed libraries:
|
|
|
|
Now run vainfo
in the terminal to verify that the VA-API is working. (This is what you installed before mesa).
Should look similar to this (note this is on wayland not x11):
|
|
Now you can check a browser such as firefox to see if hardware video decoding is enabled. If using firefox, enter the url about:support
in firefox. There should be a basic page with tables of information. Search for “decoding” and you should see a row HARDWARE_VIDEO_DECODING_
with the value “available”. This means that firefox is able to use the va-api to decode videos.