How to Install FFmpeg on CentOS

FFmpeg is a popular open source solution to record, convert, and stream audio and video, which is widely used in all kinds of online streaming services.

In this article, I will show you how to install FFmpeg on a CentOS 6/7 server.

Install the Nux Dextop YUM repo

There are no official FFmpeg rpm packages for CentOS for now. Instead, you can use a 3rd-party YUM repo, Nux Dextop, to finish the job.

On CentOS 7, you can install the Nux Dextop YUM repo with the following commands:

sudo rpm --import
sudo rpm -Uvh

For CentOS 6, you need to install another release:

sudo rpm --import
sudo rpm -Uvh

Install FFmpeg and FFmpeg development packages

yum install ffmpeg ffmpeg-devel -y
  • centos, ffmpeg, nux
  • 0 Users Found This Useful
Was this answer helpful?