How to Install Multimedia Codecs and play all Videos on Red Hat, Fedora and CentOS Linux

Fedora, Red Hat and CentOS Linux all share same repository (Software source for Linux) from EPEL to RPMFusion, Fluendo and more. Some repositories are basically free and open source, others contain proprietary codecs like that of Flendo which can also be installed on Linux OS.

As a Fedora user and system administrator, you can use these steps to install additional multimedia plugins that enable you to play various video and audio types.

If you live in a country where software patents apply, such as in the United States or in Japan, you need to obtain multimedia codecs from a source that legally distributes patented software in your country. For example, see the Fluendo Codec Pack:



  • Use the dnf utility to install packages that provide multimedia libraries: $ sudo dnf install gstreamer1-libav gstreamer1-plugins-bad-free \ gstreamer1-plugins-bad-free gstreamer1-plugins-bad-free-extras \ gstreamer1-plugins-bad-freeworld gstreamer1-plugins-bad-nonfree \ gstreamer1-plugins-good gstreamer1-plugins-ugly lame-libs lame-libs $ sudo dnf group upgrade –with-optional Multimedia
  • There are also media players that include all relevant codecs by themselves. Consider using one of the following for offline video viewing:
    • VLC, available from the vlc package in RPM Fusion Free
    • MPV, available from the mpv package in RPM Fusion Free

For Firefox users or Other browsers on Fedora, Red Hat or CentOS Linux?

Things have changed a bit lately with firefox, gstreamer1.14, ffmpeg, rpmfusion….
To get all firefox quantum video to run under fedora 28 you can’t just add ffmpeg-libs – You also have to add compat-ffmpeg28 from rpmfusion….

dnf install{free/fedora/rpmfusion-free,nonfree/fedora/rpmfusion-nonfree}-release-$(rpm -E %fedora).noarch.rpm
dnf install ffmpeg-libs compat-ffmpeg28

to check if everything(including h264) will work now in youtube:
note: I am not sure you even need ffmpeg-libs anymore?

why you are here in rpmfusion – don’t forget to add your gstreamer1 video plugins for your fedora programs….

dnf install gstreamer1-libav gstreamer1-plugins-ugly

or you could just do everything at once listed above(need unrar?)….

dnf install{free/fedora/rpmfusion-free,nonfree/fedora/rpmfusion-nonfree}-release-$(rpm -E %fedora).noarch.rpm
dnf install gstreamer1-libav gstreamer1-plugins-ugly unrar compat-ffmpeg28 ffmpeg-libs

Leave a Reply

Your email address will not be published. Required fields are marked *