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.
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.
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 setenabled
’s value to1
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
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