How to Install FFmpeg on CentOS 8

Install FFmpeg on CentOS 8

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 which is used in processing of multimedia content such as audio,video etc. It consist of many libraries and tools which helps to process the 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 that, Install the epel and rpmfusion repo:

sudo dnf install --nogpgcheck
sudo dnf install --nogpgcheck 
sudo dnf install epel-release
sudo rpm -ivh

Then, enable the PowerTools repo:

sudo dnf config-manager --enable PowerTools

Install FFmpeg using 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 ffmepg 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.