Skip to content
Search Fedora

    Browse this documentation

    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.

    Terminal window
    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.rpm
    Terminal window
    sudo dnf install -y --allowerasing ffmpeg

    Measured: ffmpeg 9.0.2. Why --allowerasing is not optional — installing without it fails:

    installed package libswresample-free-9.0.2-2.fc45 conflicts with
    libswresample-free provided by ffmpeg-libs-9.0.2-1.fc45 from rpmfusion-free

    Fedora’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:

    Terminal window
    ffmpeg -version | head -1
    ffmpeg -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.

    GNOME apps (Videos, Music, Recorder) use the GStreamer stack; the package names are not intuitive:

    PackageContentsRepo
    gstreamer1-plugins-basebasicsFedora
    gstreamer1-plugins-goodfree formatsFedora
    gstreamer1-plugins-bad-freefree but nicheFedora
    gstreamer1-plugins-bad-freeworldH.264 decoding etc.RPM Fusion
    gstreamer1-plugins-uglyheavily patented (x264)RPM Fusion
    gstreamer1-plugin-libavfull libav bridgeRPM Fusion
    Terminal window
    sudo dnf install -y gstreamer1-plugins-bad-freeworld gstreamer1-plugins-ugly gstreamer1-plugin-libav

    GNOME Videos then plays H.264/H.265/AAC sources with no restart needed.

    • 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

    Integrated GPUs decode via VA-API:

    Terminal window
    sudo dnf install -y libva-utils intel-media-driver # Intel
    sudo dnf install -y libva-utils mesa-va-drivers # AMD
    vainfo # profiles should say Supported

    Enable in players with --hwdec=vaapi (mpv); unbothered software decoding is fine below 4K.

    SymptomCause
    ffmpeg install reports conflictsofficial libswresample-free; add --allowerasing
    dnf install gstreamer1-libav has no packagerenamed to gstreamer1-plugin-libav (singular) in F45
    RPM Fusion extremely slow or 404CN mirrors only sync to 44; official source only
    GNOME Videos still failsmissing bad-freeworld/ugly — installing ffmpeg alone does not touch GStreamer
    browser video plays audio but no pictureFirefox lacks GStreamer H.264, same as above
    vainfo errorsno graphical session or driver missing; hardware decode needs a DRM device