(This only affects MESA, so only people using open source drivers)
Shortly before Fedora 37 release, Fedora dropped support for closed Codecs like H264, HEVC, VC1, this also includes other Red Hat distros like RHEL and CentOS stream, and probably clones like Rocky and Almalinux.
The reason is mainly to avoid Closed source software patents, Not every Distribution is affected though, as it depends on their legal jurisdiction, Ubuntu for example still includes Closed source codecs and Closed source drivers(when needed).
MESA Packages with closed source codecs aren’t available on the Official repos, but in RPMFusion, which is totally separate from Fedora and Red Hat, that’s why they can upload such packages.
Using the GUi
Click on the link below, and install the Free then the non-free repository matching your distribution.
using the terminal
sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
sudo rpm-ostree install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
RHEL / CentOS
sudo dnf install --nogpgcheck https://dl.fedoraproject.org/pub/epel/epel-release-latest-$(rpm -E %rhel).noarch.rpm
sudo dnf install --nogpgcheck https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-$(rpm -E %rhel).noarch.rpm https://mirrors.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-$(rpm -E %rhel).noarch.rpm
CentOS Steam 8 requires an additional step
sudo dnf config-manager --enable powertools
RHEL 8 also requires an additional step
sudo subscription-manager repos --enable "codeready-builder-for-rhel-8-$(uname -m)-rpms"
Install Drivers with closed source codecs included
sudo dnf swap mesa-va-drivers mesa-va-drivers-freeworld
sudo dnf swap mesa-vdpau-drivers mesa-vdpau-drivers-freeworld
If using i686 compat libraries (for steam or alike):
sudo dnf swap mesa-va-drivers.i686 mesa-va-drivers-freeworld.i686
sudo dnf swap mesa-vdpau-drivers.i686 mesa-vdpau-drivers-freeworld.i686
sudo dnf install intel-media-driver
not so recent hardware
sudo dnf install libva-intel-driver
Nvidia’s driver doesn’t support VAAPI, so we need to use a bridge to translate VAAPI calls into NVDEC/NVENC
sudo dnf install nvidia-vaapi-driver
Photo by Thomas Foster on Unsplash