The issue you’re encountering is due to conflicting versions of ffmpeg and its libraries from the Fedora and RPM Fusion repositories. To resolve this, you can allow dnf to erase the conflicting packages and install the versions from RPM Fusion.
Here’s how to do it:
Enable RPM Fusion Repositories (if not already done):
sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm sudo dnf install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpmInstall the Necessary Packages with the
--allowerasingOption: This command will allowdnfto replace conflicting packages with the appropriate ones from RPM Fusion:sudo dnf install ffmpeg ffmpeg-libs vdpauinfo libva-utils --allowerasing
This should resolve the conflicts by allowing dnf to replace the ffmpeg-free packages with the full ffmpeg versions from RPM Fusion.
Step-by-Step Instructions
Open Terminal: Open your terminal application.
Enable RPM Fusion Repositories: If you haven’t enabled the RPM Fusion repositories yet, run:
sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm sudo dnf install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpmUpdate Your System: Make sure your system is up to date:
sudo dnf updateInstall the Necessary Packages with Conflict Resolution: Run the following command to install
ffmpegand its libraries, allowingdnfto replace conflicting packages:sudo dnf install ffmpeg ffmpeg-libs vdpauinfo libva-utils --allowerasingVerify Codec Support: After installation, you can verify that the E-AC3 codec is supported by running:
ffmpeg -codecs | grep eac3Play E-AC3 Audio with mpv: You should now be able to play E-AC3 5.1 audio files using
mpv:mpv yourfile.mkv
Following these steps should resolve the conflicts and allow you to install the necessary codecs for playing E-AC3 audio files with mpv on Fedora.
Proprietary Codecs
Yes, it is possible to install proprietary codecs on Fedora Linux to improve video encoding performance and compatibility. Here’s how you can do it:
Enable RPM Fusion Repositories: RPM Fusion provides additional software that the Fedora Project or Red Hat does not ship, including proprietary codecs.
First, enable the free and nonfree repositories:
sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm sudo dnf install https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpmUpdate Your System: Make sure your system is up to date.
sudo dnf updateInstall Proprietary Codecs: Install the necessary codecs for multimedia support.
sudo dnf groupupdate multimedia --setop="install_weak_deps=False" --exclude=PackageKit-gstreamer-plugin sudo dnf groupupdate sound-and-videoInstall FFmpeg with Proprietary Codecs: Install FFmpeg and ensure it has support for proprietary codecs.
sudo dnf install ffmpeg ffmpeg-libsInstall NVIDIA Drivers (if applicable): If you have an NVIDIA GPU, install the proprietary NVIDIA drivers for better performance.
sudo dnf install akmod-nvidia sudo dnf install xorg-x11-drv-nvidia-cuda
After completing these steps, you should have support for proprietary codecs on your Fedora system, which will help with video encoding tasks.
To verify that FFmpeg can use these codecs, you can check the available codecs with:
ffmpeg -codecs | grep -i dts
You can now use FFmpeg with the installed proprietary codecs for video encoding.