In this article, we will have explained the necessary steps to install FFmpeg on CentOS 8. Before continuing with this tutorial, make sure you are logged in as a user with sudo
privileges. All the commands in this tutorial should be run as a non-root user.
FFmpeg is a program that is used in processing multimedia content such as audio, video, etc. It consists of many libraries and tools which help to process multimedia content. Through FFmpeg, you can record, convert and stream the audio video.
Install FFmpeg on CentOS
Step 1. The first command will update the package lists to ensure you get the latest version and dependencies.
sudo dnf update
Step 2. Install FFmpeg on CentOS.
Next to that, Install the epel and rpmfusion repo:
sudo dnf install --nogpgcheck https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm sudo dnf install --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm sudo dnf install epel-release sudo rpm -ivh https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-8.noarch.rpm
Then, enable the PowerTools repo:
sudo dnf config-manager --enable PowerTools
Install FFmpeg using the following command:
sudo dnf install ffmpeg ffmpeg-devel
This is the moment of truth. If everything worked as expected, you should be able to see the installed version.
$ ffmpeg -version ffmpeg version 4.4.2 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 8 (GCC) ...
Step 3. FFmpeg Basic Commands.
Here is the list of the FFmpeg basic command options used with ffmpeg command-line tool:
ffmpeg -version: show version ffmpeg -formats: show available formats ffmpeg -codecs: show available codecs ffmpeg -decoders: show available decoders ffmpeg -encoders: show available encoders ffmpeg -bsfs: show available bit stream filters ffmpeg -protocols: show available protocols ffmpeg -filters: show available filters ffmpeg -pix_fmts: show available pixel formats ffmpeg -layouts: show standard channel layouts ffmpeg -sample_fmts: show available audio sample formats
That’s all you need to do to install FFmpeg on CentOS 8. I hope you find this quick tip helpful. Don’t forget to share your valuable queries/suggestions in the below comment box & also drop your worthwhile feedback.