Skip to content

Instantly share code, notes, and snippets.

@A6GibKm
Last active October 9, 2023 15:38
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save A6GibKm/418bce36c36892bc1e32ce14d7b6d5da to your computer and use it in GitHub Desktop.
Save A6GibKm/418bce36c36892bc1e32ce14d7b6d5da to your computer and use it in GitHub Desktop.
Multimedia codecs in Fedora

Multimedia codecs in Fedora

Enabling rpm-fusion repositories

Most codecs contains pieces of software which are not free or cannot be included in Fedora repositories so adding rpm-fusion’s repository is required

  • Fedora (22 and later):
    sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
        
  • Silverblue (29 and later):
    sudo rpm-ostree install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
        

See rpmfusion.org/Configuration.

Minimal configuration

A minimal setup to run Firefox consist of

  • Fedora: sudo dnf install compat-ffmpeg28
  • Silverblue: sudo rpm-ostree install compact-ffmpeg28

This is enough to view Youtube and to browse Reddit, see Youtube’s HTML5 test.

Complete suite of codecs

For extra codecs install ffmpeg and Cisco’s h264 codecs mozilla-openh264, gstreamer1-plugin-openh264, the later are in the fedora-cisco-openh264 repository which can be enabled via

  • Fedora: sudo dnf config-manager --set-enabled fedora-cisco-openh264
  • Silverblue: edit the file /etc/yum.repos.d/fedora-cisco-openh264.repo and set enabled’s value to 1

Note: Only ffmpeg, mozilla-openh264 are required to browse the web, and this could be installed instead of compat-ffmpeg28.

Additionally, run

  • Fedora: sudo dnf groupupdate Multimedia

This won’t do anything if rpm-fusion repositories are not enabled

VLC and GNOME Videos

While the previous method is perfectly fine for running VLC, it is more advisable to install VLC via flatpak. This comes bundled with all necessary codecs and dependencies by default.

First add Flathub repository:

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

The install VLC via:

flatpak install flathub org.videolan.VLC

Alternatively, you can install GNOME Videos:

flatpak install flathub org.gnome.Totem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment