How to Install FFmpeg on CentOS 7

r00t June 20, 2018

Install FFmpeg on CentOS 7

In this tutorial we are going to learn how to install FFmpeg on CentOS 7. We will also install and configure its prerequisites. FFmpeg is among the best multimedia framework which may be used to encode, decode, transcode, mux, demux, record, stream, filter, and play any sort of media files. It is totally free multimedia framework that operates on nearly all operating systems, including Linux, Mac OS X, Microsoft Windows etc.

I recommend to use a minimal CentOS server setup as a basis for the tutorial, that can be a virtual or a root server image with an CentOS 7 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

Install FFmpeg on CentOS 7

Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:

yum -y install epel-release
yum -y update

Step 2. Installing FFmpeg on CentOS 7

Method 1. Installing FFmpeg from a repository:

First, Install the nux repository using following command:

rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm

Next, Install ffmpeg and ffmpeg -devel packages:

yum install ffmpeg ffmpeg-devel -y

Check and confirm FFmpeg version:

ffmpeg -version

Method 2. Installing a static prebuilt version of FFmpeg:

First, Get the installer script:

wget https://raw.githubusercontent.com/q3aql/ffmpeg-install/master/ffmpeg-install

Make it executable script:

chmod a+x ffmpeg-install

Then, Install a release version:

./ffmpeg-install --install release

To verify the installed version, run:

ffmpeg -version

Congratulation’s! You have successfully install FFmpeg on your CentOS 7 server. Thanks for using this tutorial for installing FFmpeg open source multimedia framework on CentOS 7 system.

The Tags:

Leave a Comment

Comments are closed.