CentOS does not provide an official repository for FFmpeg installation. This can be installed using third-party nux dextop yum repo.
How to Install FFmpeg on CentOS, Fedora, RHEL, Rocky Linux and AlmaLinux.
update the system using:
yum install epel-release -y
yum update -y
On CentOS 7 and RHEL 7 use the following command:
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
On CentOS/RHEL 6/5, the command is slightly different and refers to a different repository.
rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
rpm -Uvh http://li.nux.ro/download/nux/dextop/el6/x86_64/nux-dextop-release-0-2.el6.nux.noarch.rpm
Next, we can install FFmpeg and its development packages using:
yum install ffmpeg ffmpeg-devel -y
This completes the installation.
To install FFmpeg on Fedora, use the RPMfusion repository. If you don’t have it installed use this command:
dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
dnf install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
Next, we can install FFmpeg and its development package using a DNF package manager.
dnf install ffmpeg ffmpeg-devel
That’s it, you successfully added FFmpeg to your Fedora virtual machine.
Leave a Reply Cancel reply