How to Install FFmpeg on CentOS and RHEL

September 28, 2023 / How-to Guide

In this article, we will explain how to install FFmpeg on CentOS and RHEL.

The FFmpeg package is not available from the official repositories of CentOS and RHEL, therefore users need to install additional repositories.

How to Install FFmpeg on CentOS- 

Here’s the procedure for installing FFmpeg on CentOS 7, use the Nux Dextop repository:

  1. Open your Terminal and log into as root account.
  2. Execute the following command to install EPEL repository-
    sudo yum install epel-release
  3. Next, ensure your system and packages are up to date by executing the following command-
    sudo yum update
  4. Now, use the below commands to install the Nux Dextop repository-
    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
  5. Finally, you need to enter this command to install FFmpeg and its development package-
    sudo yum install ffmpeg ffmpeg-devel -y

How to install RHEL 7/8 –

Follow these steps to install FFmpeg on RHEL 7/8 using the RPM Fusion repository:

  1. Log into your terminal as a root account.
  2. Enter the following command and press Enter to update the system.
    sudo yum update
  3. Add the EPEL repository by executing this command and pressing Enter.
    sudo yum install epel-release
  4. Next, run any of these commands to install RPM fusion:
    1. RHEL 7
      yum localinstall –nogpgcheck
      https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm
      https://download.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-7.noarch.rpm
    2. RHEL 8
      yum localinstall –nogpgcheck
      https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm https://download.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-8.noarch.rpm
  5. Install FFmpeg and its development packages by executing the following command:
    sudo yum install ffmpeg ffmpeg-devel -y

In this way, you can Install FFmpeg on CentOS and RHEL. For more information, visit our knowledge base section.

Spread the love