FFmpeg is a multimedia codec that can convert audio and video files into different formats; FFmpeg is also a command-line tool.
Please refer to the steps given below to install FFmpeg on CentOS 7:
Step 1: SSH to your VPS with the root user.
Step 2: Update the system using the command given below:
# Yum update-y
Step 3: Enable the Nux Dextop Repository. The default CentOS repos don't have FFmpeg, so you'll need to install the Nux Dextop repo, which includes FFmpeg and its dependencies.
First, install the EPEL and Nux Dextop repositories:
# yum install epel-release -y
# rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
# rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
Step 4: Now, execute the following command to install FFmpeg and its packages:
# yum install ffmpeg ffmpeg-devel -y
Step 5: Verify the Installation. After installation, check that FFmpeg is working:
# ffmpeg -version
You should see output showing the installed FFmpeg version and supported codecs.
