Hello, friends. In this post, you will learn how to install FFmpeg on CentOS 9 Stream. This increasingly popular system will serve as the basis for future editions of RHEL. So, it’s good to keep it in mind.
What is FFmpeg?
According to Wikipedia:
FFmpeg is a collection of free software that can record, convert and stream audio and video. It includes libavcodec, a codec library. FFmpeg is developed on GNU/Linux, but can be compiled on most operating systems, including Windows.
So, as we can notice, it is quite an important tool that allows us to work with multimedia files from the terminal or using a frontend.
In any case, it is emerging as a vital tool for all those who in their work or leisure have to manipulate multimedia files.
Let’s get started.
Install FFmpeg on CentOS 9 Stream
FFmpeg is not available in the official CentOS 9 Stream repositories. However, we can install it without too much trouble.
Enabling the EPEL repository in CentOS 9 Stream
The first step we have to do is to enable the EPEL repository. We have dedicated a post to this repository, and we will need it today.
How to enable the EPEL repository in CentOS 9 Stream
Then we can continue.
How to enable the RPM Fusion repository on CentOS 9 Stream
RPM Fusion is another essential repository from which we can install extra applications for our system. Unlike EPEL it includes other types of packages but also essential ones.
So to install it, we just have to execute these commands:
sudo dnf install https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-9.noarch.rpm
sudo dnf install https://mirrors.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-9.noarch.rpm
In the first one we only enable the open-source packages and in the second one the non-free ones.
Install FFmpeg on CentOS 9 Stream
With the necessary repositories enabled on the system, we can now start the installation process. So for this, now just run the following command.
sudo dnf install ffmpeg ffmpeg-devel

When the process finishes, FFmpeg will be ready for battle.
To check the installed version, you have to run:
ffmpeg -version
Then you will have an output screen like the following

This indicates that everything is OK and you can start working with FFmpeg.
Conclusion
This tool is one of the most important tools for working with multimedia files. Now you know how to install it on an important system like CentOS 9 Stream.