Install ffmpeg on Rocky Linux 8

There are several guides that I followed in attempts to install ffmpeg without success. There were issues with the incorrect cases of the names, like using PowerTools instead of powertools or leaving out much needed repos to make it possible to install.

This guide will install ffmpeg on a Rocky Linux 8 linux machine.


The following commands will install ffmpeg.

dnf install dnf-plugins-core
dnf install epel-release
dnf config-manager --add-repo=
dnf config-manager --set-enabled powertools
dnf install ffmpeg
ffmpeg -version


One example, convert .mov to .mp4

ffmpeg -i -vcodec h264 -acodec mp2 videoName.mp4