Installing plugins for playing movies and music

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: https://fluendo.com/en/products/enterprise/fluendo-codec-pack/.

Prerequisites

Procedure

  • 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