How to Install FFmpeg on CentOS
FFmpeg is the most popular open source solution to record, convert, and stream audio and video.
Date Added : Wed Aug 09 2017 10:09:17 GMT+0000 (Coordinated Universal Time)
Last Updated : Wed Aug 09 2017 10:09:17 GMT+0000 (Coordinated Universal Time)
Prerequisites
- A newly deployed Vultr CentOS 6 or CentOS 7 server instance.
- Root access
Step 1 : Update the system
sudo yum install epel-release -y sudo yum update -y sudo shutdown -r now
Step 2 : 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 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
For CentOS 6, you need to install another release:
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
Step 3 : Install FFmpeg
sudo yum install ffmpeg ffmpeg-devel -y
Step 4 : Test FFMPEG
Run the following to verify FFMPEG will run.
ffmpeg