Skip to main content

FFmpeg on Rocky Linux / RHEL

Use Case

This guide is useful if you need to install ffmpeg on Rocky Linux 9 or Red Hat Enterprise Linux for handling multimedia data. ffmpeg is a powerful tool for recording, converting, and streaming audio and video and is required for streaming audio inputs on Linux installations.

This guide will help you:

  • Add the RPM Fusion repository to your system
  • Install ffmpeg using the package manager

Installation Steps

Step 1: Add the RPM Fusion Repository

RPM Fusion provides additional packages for RHEL-based distributions, including ffmpeg. To add the RPM Fusion repository, follow these steps:

  1. Open a terminal.
  2. Run the following command to install the RPM Fusion free repository:
sudo dnf install https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-9.noarch.rpm

Step 2: Install FFmpeg

Once the RPM Fusion repository is added, you can install ffmpeg using the following command:

sudo dnf install ffmpeg

Step 3: Verify the Installation

After the installation is complete, you can verify that ffmpeg is installed correctly by running:

ffmpeg -version

This command should display the version of ffmpeg installed on your system.