Multimedia codecs: RPM Fusion and the ffmpeg stack
For patent reasons Fedora’s official repos ship free codecs only. Playing common video (H.264/H.265/AAC) requires RPM Fusion’s supplements. This page walks the measured path.
Prerequisite: RPM Fusion
Section titled “Prerequisite: RPM Fusion”sudo dnf install -y https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-45.noarch.rpm \ https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-45.noarch.rpmCore: ffmpeg
Section titled “Core: ffmpeg”sudo dnf install -y --allowerasing ffmpegMeasured: ffmpeg 9.0.2. Why --allowerasing is not optional — installing without it fails:
installed package libswresample-free-9.0.2-2.fc45 conflicts withlibswresample-free provided by ffmpeg-libs-9.0.2-1.fc45 from rpmfusion-freeFedora’s own repos carry a “free subset” of ffmpeg libs (libswresample-free and friends) that conflicts with RPM Fusion’s full build. --allowerasing lets dnf remove the subset in favour of the full version — this is the sanctioned path, matching RPM Fusion’s own docs.
Verify codecs:
ffmpeg -version | head -1ffmpeg -hide_banner -encoders 2>/dev/null | grep -cE "^ V"ffmpeg -hide_banner -encoders 2>/dev/null | grep -E "libx264|libx265|libvpx-vp9"Measured: 308 video encoders, with libx264/libx265/VP9 all present. Encoding capability implies decoding — browsers and players sit on the same libraries.
GStreamer: codecs for desktop apps
Section titled “GStreamer: codecs for desktop apps”GNOME apps (Videos, Music, Recorder) use the GStreamer stack; the package names are not intuitive:
| Package | Contents | Repo |
|---|---|---|
gstreamer1-plugins-base | basics | Fedora |
gstreamer1-plugins-good | free formats | Fedora |
gstreamer1-plugins-bad-free | free but niche | Fedora |
gstreamer1-plugins-bad-freeworld | H.264 decoding etc. | RPM Fusion |
gstreamer1-plugins-ugly | heavily patented (x264) | RPM Fusion |
gstreamer1-plugin-libav | full libav bridge | RPM Fusion |
sudo dnf install -y gstreamer1-plugins-bad-freeworld gstreamer1-plugins-ugly gstreamer1-plugin-libavGNOME Videos then plays H.264/H.265/AAC sources with no restart needed.
Browsers
Section titled “Browsers”- Firefox: follows system GStreamer — H.264 works after the install above
- Chromium (repo version): bundles its own ffmpeg subset, most formats work out of the box
- Chrome (Google’s package): proprietary codecs (H.264/AAC) built in
Hardware decoding (optional)
Section titled “Hardware decoding (optional)”Integrated GPUs decode via VA-API:
sudo dnf install -y libva-utils intel-media-driver # Intelsudo dnf install -y libva-utils mesa-va-drivers # AMDvainfo # profiles should say SupportedEnable in players with --hwdec=vaapi (mpv); unbothered software decoding is fine below 4K.
Common traps
Section titled “Common traps”| Symptom | Cause |
|---|---|
| ffmpeg install reports conflicts | official libswresample-free; add --allowerasing |
dnf install gstreamer1-libav has no package | renamed to gstreamer1-plugin-libav (singular) in F45 |
| RPM Fusion extremely slow or 404 | CN mirrors only sync to 44; official source only |
| GNOME Videos still fails | missing bad-freeworld/ugly — installing ffmpeg alone does not touch GStreamer |
| browser video plays audio but no picture | Firefox lacks GStreamer H.264, same as above |
| vainfo errors | no graphical session or driver missing; hardware decode needs a DRM device |
Related pages
Section titled “Related pages”- Gaming on Fedora — also depends on RPM Fusion
- Mirrors — which mirror sources work and which do not
- Upstream: RPM Fusion · FFmpeg