Enable non-free ffmpeg on Fedora

Aus MattWiki
Version vom 17. August 2025, 12:42 Uhr von Matt (Diskussion | Beiträge)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)

sudo dnf swap ffmpeg-free ffmpeg --allowerasingIn case you have one of the following issues on Fedora Linux:

  • VLC playback is stuttering
  • You receive the warning to install ffmpeg
  • yt-dlp and 4KTUBE cannot download higher bitrate / resolution streams or join separately downloaded audio and video stream

Reason for the latter one is that some multimedia codecs are not delivered by default with Fedora Linux, because they are not open source.

In Fedora by default ffmpeg-free is packaged. There is another ffmpeg, which is packaged in the non-free RPM Fusion repos. After installing the non-free repos the ffmpeg-free libraries need to be replaced with the non-free ones.

This also improves stuttering during VLC playback.

Add RPM Fusion Repositories

Specifically add rpmfusion non-free repositories:

sudo dnf install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

Source: https://docs.fedoraproject.org/en-US/quick-docs/rpmfusion-setup/

Replace ffmpeg-free with non-free ffmpeg

sudo dnf swap ffmpeg-free ffmpeg --allowerasing

Source and further reading: https://rpmfusion.org/Howto/Multimedia