How to Install FFmpeg on Centos 6 and 7

FFmpeg is a name of a free software project for the multimedia handling. the most popular part of the project is FFmpeg command line tool for video and audio encoding/decoding and its main features are the high speed, quality of output and small file sizes.

In this guide, I will explain how to install FFmpeg on CentOS (if you are using Debian, please check out this tutorial).

Note: FFmpeg is not available for Centos, fortunately, it is now available as a 3rd-party YUM repo.

Installation

Update the package list

sudo yum install epel-release -y
sudo yum update -y
sudo shutdown -r now

Install the Nux Dextop YUM repo

Centos 7

sudo rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm

Centos 6

sudo rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el6/x86_64/nux-dextop-release-0-2.el6.nux.noarch.rpm

Now FFmpeg is available to be installed with yum:

sudo yum install ffmpeg ffmpeg-devel -y

Once the installation complete, confirm the installation of FFmpeg with the following command:

ffmpeg -version

Done.

Published by

qoraiche

Codecs Lover

Leave a Reply