How to Install FFmpeg on Fedora 39, 38 Linux

This guide demonstrates how to install FFmpeg on Fedora Linux, offering a straightforward approach for beginners and experienced users. FFmpeg, a powerful multimedia framework, enables you to handle audio, video, and other multimedia files and streams.

Here’s what sets FFmpeg apart:

  • Versatility: Handles various multimedia formats.
  • Efficiency: Offers fast processing of multimedia content.
  • Flexibility: Supports a wide range of codecs.
  • Customizability: Allows for intricate manipulation of video and audio data.

In the following sections, you’ll find clear, step-by-step instructions that seamlessly integrate this tool into your Fedora Linux environment. Whether you’re looking to enhance your multimedia projects or just starting with video editing and processing, this guide provides all the necessary information to get FFmpeg up and running on your system.

Install FFMpeg on Fedora Linux via AppStream Default

Step 1: Refresh Fedora Packages Before FFmpeg Installation

To ensure a smooth installation process for FFmpeg, begin by updating your Fedora system. This step is crucial to prevent potential conflicts with existing packages.

Execute the following command in the terminal:

sudo dnf upgrade --refresh

This command refreshes the repository indexes and updates all the packages to their latest versions.

Step 2: Install FFmpeg via DNF Command on Fedora

Fedora includes FFmpeg in its default repository and typically updates it regularly to align with its commitment to offering the latest software versions. This approach simplifies the FFmpeg installation process.

To install FFmpeg, use this command:

sudo dnf install ffmpeg-free

For users requiring advanced features and the ability to compile software that depends on FFmpeg, installing the development packages is necessary.

Use this command for the development packages:

sudo dnf install ffmpeg-free-devel
Terminal Output for Installing ffmpeg-free on Fedora Linux
Terminal view of ffmpeg-free installation on Fedora

Verifying FFmpeg Installation

After installing FFmpeg, you should verify its correct installation. Check the installed version by running the following command in the terminal:

ffmpeg -version

This command displays the installed version of FFmpeg, along with its configuration details and the supported libraries. It’s an essential step to ensure that the installation is successful and the software is ready for use.

Install FFMpeg on Fedora Linux via RPM Fusion

Step 1: Enable RPM Fusion

If you haven’t already imported RPM Fusion into your Fedora system, it’s the first essential step. RPM Fusion provides a broader range of software that is not included in Fedora by default.

Use these commands to enable RPM Fusion:

sudo dnf install$(rpm -E %fedora).noarch.rpm

sudo dnf install$(rpm -E %fedora).noarch.rpm

These commands add the free and non-free repositories of RPM Fusion to your system, expanding the range of available software.

Step 2: Install FFmpeg via DNF Command from RPM Fusion

For users who haven’t installed FFmpeg yet, the following command will install it from RPM Fusion:

sudo dnf install ffmpeg --allowerasing

To install the development package, similar to the previous method, use:

sudo dnf install ffmpeg-devel --allowerasing

This step ensures you have the latest version of FFmpeg with additional development tools.

For the FFmpeg installation command from RPM Fusion, it’s important to include --allowerasing. This option ensures that libavcodec-freeworld and other related libraries, which are specifically designed to complement the ffmpeg-free package, are not required when installing FFMpeg direct from RPM Fusion.

Terminal Output for Installing FFmpeg from RPM Fusion on Fedora
Terminal Snapshot of FFmpeg Installation from RPM Fusion

Step 3: Switch FFmpeg-Free to FFmpeg (Situational)

If you already have the Fedora version of FFmpeg installed, switching to the RPM Fusion-provided build is recommended for better support.

Use this command:

sudo dnf swap ffmpeg-free ffmpeg --allowerasing

This command replaces the Fedora-provided FFmpeg with the RPM Fusion version, which may include more features or better compatibility.

Step 4: Verify FFmpeg RPM Fusion Installation

To confirm that you have installed the correct version of FFmpeg from RPM Fusion, run the following:

ffmpeg -version

This command will display the version and configuration details of the installed FFmpeg, ensuring that you are using the version provided by RPM Fusion.

FFmpeg Version Check in Terminal on Fedora Linux
FFmpeg Version Output in Fedora Linux Terminal

Verify FFmpeg Decoders and Encoders on Fedora Linux

Listing FFmpeg Encoders and Decoders

To explore the encoders and decoders available in your FFmpeg installation, you can use specific commands in the terminal. This is useful for understanding the capabilities of FFmpeg in handling various media formats.


To view the list of available encoders, use:

ffmpeg -encoders

This command displays all the encoders that FFmpeg can use to encode or convert your media files.


For the list of decoders, execute:

ffmpeg -decoders

Decoders are essential for FFmpeg to interpret and process different media file formats.

Additional FFmpeg Capabilities

FFmpeg provides a range of functionalities beyond encoding and decoding. To fully leverage its capabilities, you can explore the following commands:


To see the supported formats, use:

ffmpeg -formats

This command lists all the media formats that FFmpeg can handle, including both input and output formats.


For a comprehensive list of codecs, execute:

ffmpeg -codecs

FFmpeg uses codecs to encode and decode audio and video streams.

Bitstream Filters:

View the available bitstream filters with:

ffmpeg -bsfs

Bitstream filters process bitstreams (raw data streams) in various ways.


To check the supported protocols, use:

ffmpeg -protocols

Protocols in FFmpeg are used for data streaming and communication.


For a detailed list of filters, execute:

ffmpeg -filters

Filters in FFmpeg are used for complex operations like editing or transforming audio and video streams.

Pixel Formats:

To view supported pixel formats, use:

ffmpeg -pix_fmts

Pixel formats define how pixels are stored in the media files.

Channel Layouts:

For audio channel layouts, use:

ffmpeg -layouts

This command shows the supported audio channel configurations.

Audio Sample Formats:

Finally, to view audio sample formats, execute:

ffmpeg -sample_fmts

Audio sample formats determine how audio data is represented in your files.

FFmpeg Basic Commands on Fedora Linux

Understanding FFmpeg Command Syntax

FFmpeg is a versatile tool for processing multimedia content. To effectively utilize FFmpeg, understanding its command syntax is crucial. The general format of an FFmpeg command is as follows:

ffmpeg [global_options] {[input_file_options] -i input_url} …{[output_file_options] output_url} …

This structure allows for a variety of operations on multimedia files. Each operation on a new file requires a separate command execution, as FFmpeg does not currently support a method to save command configurations for repeated use.

FFmpeg Conversion Example

FFmpeg simplifies the process of converting audio and video files by auto-detecting the input file format. The output format is inferred from the file extension provided.

Converting Video Formats:

For example, to convert a video file from MP4 to WebM, use the following command:

ffmpeg -i existingfile.mp4 newfile.webm

This command facilitates the conversion process without the need to specify formats explicitly.

Handling Multiple Outputs:

FFmpeg also allows for converting a single input file into multiple output formats simultaneously. For instance:

ffmpeg -i existingfile.wav newfile.mp3 newfile.ogg

Here, an audio file in WAV format is converted into both MP3 and OGG formats.

To ensure compatibility and successful conversions, always verify the list of supported formats with:

ffmpeg -formats

FFmpeg Extract Audio from Video Example

Extracting audio from a video file in FFmpeg involves using the -vn option.

Basic Audio Extraction:

To extract audio without altering its bitrate, use:

ffmpeg -i video.mp4 -vn audio.mp3

This command retains the original audio bitrate from the video file.

Specifying Audio Bitrate:

If you wish to specify a different bitrate for the extracted audio, the command is:

ffmpeg -i video.mp4 -vn -ab 128k audio.mp3

This example sets the audio bitrate to 128k, but other common bitrates include 96k, 192k, 256k, and 320k. Adjusting the bitrate can affect the audio quality and file size, providing flexibility based on your requirements.

Managing FFMpeg on Fedora Linux

Remove FFmpeg

Uninstalling FFmpeg from your Fedora Linux system requires a specific command, which ensures the removal of both the FFmpeg software and its development packages. This ensures a thorough and clean uninstallation.

For Standard Fedora Packages:

If you installed FFmpeg using Fedora’s standard repositories, execute this command in the terminal:

sudo dnf remove ffmpeg-free ffmpeg-free-devel

This command tells the system’s package manager to remove ffmpeg-free and its development package ffmpeg-free-devel. Remember to remove ffmpeg-free-devel if you installed it for development purposes, ensure all related components are fully uninstalled.

For RPM Fusion Installation:

In case you installed FFmpeg from RPM Fusion, the uninstallation command differs slightly:

sudo dnf remove ffmpeg ffmpeg-devel

This command is tailored for systems where FFmpeg was installed via RPM Fusion, targeting both the main FFmpeg package and its development counterpart, ffmpeg-devel.

Conclusion and Final Thoughts

In this guide, we’ve journeyed through the essential steps of installing FFmpeg on Fedora Linux using Fedora’s default appstream or from RPM fusion, delved into various basic commands, and shared practical tips for effective media handling. As you continue to explore FFmpeg’s robust features, remember that staying updated with the latest versions and regularly consulting the official documentation can significantly enhance your experience. Whether you’re converting formats, extracting audio, or managing your FFmpeg installation, these insights will serve as a reliable foundation for your multimedia projects. Happy editing!

Leave a Comment

Your Mastodon Instance
Share to...