How to Install Multimedia Encoders on Fedora Linux

How to Install Multimedia Encoders on Fedora Linux

One of the first things you need to do after a new installation of Fedora is to install multimedia encoders for audio and video playback. In this short tutorial, we will look at how to install multimedia encoders on the Fedora 36 workstation from the RPM Fusion software repository.


Many media encoders are either closed source or non-free, so they are not included in the default Fedora Linux repositories for legal reasons.

Fortunately, some third-party repositories provide limited and non-free media encoders, packages, and libraries. One of the most popular community-based repositories is RPM Fusion.

If you want to play most audio or video formats on your Fedora desktop, you need to install the necessary RPM Fusion media encoders as described below.

Make sure you have the RPM Fusion repository installed on your Fedora computer. If you’ve not added it yet, see the link below to activate the RPM Fusion repository in Fedora:

After enabling RPM Fusion, run the following commands one by one to install media encoders on the Fedora system:

$ sudo dnf install gstreamer1-plugins-{bad-*,good-*,base} gstreamer1-plugin-openh264 gstreamer1-libav --exclude=gstreamer1-plugins-bad-free-devel

If the above command does not work, try the following command:

$ sudo dnf install gstreamer1-plugins-{bad-*,good-*,base} gstreamer1-plugin-openh264 gstreamer1-libav --exclude=gstreamer1-plugins-bad-free-devel
$ sudo dnf install lame* --exclude=lame-devel
$ sudo dnf group upgrade --with-optional Multimedia

These three commands install almost everything to play all audio and video formats on your Fedora system.

Install media players

Some popular media players such as VLC, Celluloid, SMplayer and Plex-media-palyer, etc., will provide all the necessary encoders. You do not have to install them all. One or two is enough. The commands to install these players are given below:

$ sudo dnf install vlc

VLC is pre-installed on many Linux distributions and is a standard media player for playing all types of media files.

SMplayer is the front-end for Mplayer and is considered the best alternative to VLC.

$ sudo dnf install smplayer

If you want a more powerful multimedia experience, install Plex media player.

$ sudo dnf install plex-media-player

Not only will this provide you with h264, h265, vp8 and vp9 encoders (all with hardware support), but it will also allow av1 (also known as av01) a more efficient encoder. You can check if your browser supports this encoder using the AV1 Beta startup playlist.

Some of these players are available as flatpak applications as well. You can install them if you prefer flatpak over traditional package manager. Most Linux distributions now support flatpak out of the box.

To install the VLC flatpak version, run:

$ flatpak install vlc

Optional – Install FFmpeg

FFmpeg is a powerful multimedia framework that can be used to encode, decode, decode, mux, demux, record, stream, filter, and play any type of media file. You can get the necessary encoders by installing the FFmpeg suite on your system.

I hope this helps.

Read about: