How to Install FFmpeg on Fedora 37/36/35

Anyone who has worked with audio or video knows that file format compatibility can be a significant headache. FFmpeg is a powerful tool that can help to solve this problem by decoding, encoding, and transcoding multimedia files. In addition to supporting a wide range of file formats, FFmpeg also supports several different codecs making it an ideal tool for transcoding files between multiple formats or encoding files for use with specific devices or platforms. With FFmpeg, you can easily convert your files into the format you need without worrying about compatibility issues.

The following tutorial will teach you how to install FFmpeg on Fedora 37/36/35 Linux using the command line terminal with the default Fedora repository. Given Fedora is a six monthly release and focuses on pushing the latest packages as best as possible, you should ideally need to install any third-party repository or manually the framework. Lastly, the tutorial will run through some common FFmpeg command examples.

Recommended Steps Before Installation

First, update your system to avoid any conflicts when installing the package.

sudo dnf upgrade --refresh

Install FFmpeg on Fedora Linux

As explained at the start of the tutorial, FFmpeg is present on Fedora’s default repository and is often up-to-date, given Fedora focuses on upstream package releases, making installing the latest version very easy.

Using the following command, install FFmpeg.

sudo dnf install ffmpeg -y

For the development packages, use the following command.

sudo dnf install ffmpeg-devel -y

Optionally, verify the installation with the following terminal command.

ffmpeg -version

Example output:

example version output from ffmpeg on fedora linux

If you want to see which FFmpeg’s decoders and encoders are available, type the following commands.

FFmpeg encoders:

ffmpeg -encoders

FFmpeg decoders:

ffmpeg -decoders

More information can be found using the following commands.

FFmpeg formats:

ffmpeg -formats

FFmpeg codecs:

ffmpeg -codecs

FFmpeg bitstream filters:

ffmpeg -bsfs

FFmpeg protocols:

ffmpeg -protocols

FFmpeg filters:

ffmpeg -filters

FFmpeg pixel formats

ffmpeg -pix_fmts

FFmpeg channel layouts:

ffmpeg -layouts

FFmpeg audio sample formats:

ffmpeg -sample_fmts

FFmpeg Basic Commands on Fedora Linux

Below are some basic commands for using FFmpeg. I would recommend visiting the official documentation to see a complete list of examples, as it is pretty extensive.

The primary command usage syntax for FFmpeg is below as an example.

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

Note that you will need to use these commands on each new file. There is no saving technique to date.

FFmpeg Conversion Example

You do not need to specify your command’s input and output formats to convert audio and video files with FFmpeg. Instead, the input file format is auto-detected, and the output is given an output formulated from the file extension.

Convert a video file from mp4 to WebM.

ffmpeg -i existingfile.mp4 newfile.webm

Alternatively, it can also include more output files than just 1.

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

Remember to check the list of supported formats using the following command:

ffmpeg -formats

FFmpeg Extract Audio from Video Example

If you want to extract the audio from a video file, this is done with the -vn input.

ffmpeg -i video.mp4 -vn audio.mp3

Note that this will convert the audio to the current bit rate of the original video file.

If you want to specify a new rate, enter the following example command.

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

Some examples of the most common bit rates are 96k, 128k, 192k, 256k, and 320k.

Update FFmpeg on Fedora Linux

FFmpeg was installed with RPM Fusion using the dnf package manager. This makes maintaining updates simple and quick by running the standard update command as you check your entire system for updates as follows.

sudo dnf update --refresh

Remove FFmpeg on Fedora Linux

Remove FFmpeg using the following command.

sudo dnf autoremove ffmpeg ffmpeg-devel

Remove autoremove and replace it with remove for users that do not want to remove the unused dependencies from the installation. I would recommend keeping EPEL and RPM Fusion installed, and most users often need multiple packages from these repositories, which are highly used within the community.

To learn more about what FFmpeg can do, visiting their documentation page will help you with your goals.

Not what you were looking for? Try searching for additional tutorials.

Leave a Comment