How to install FFmpeg on Fedora Linux

Updated on July 17, 2020
How to install FFmpeg on Fedora Linux header image

Introduction

FFmpeg is a free, open-source utility to encode/decode video or audio. This tutorial is for all versions of Fedora Linux including:

  • Fedora 31
  • Fedora 32

Prerequisites

Installation

  1. Add the RPM Fusion repository

     $ sudo dnf -y install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
     $ sudo dnf -y install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
  2. Update your system to the latest packages.

     $ sudo dnf update
  3. Install FFmpeg

     $ sudo dnf install -y ffmpeg
  4. Ensure FFmpeg works by running

     $ ffmpeg --help