Install FFmpeg on Fedora 28/27/26

FFmpeg is a cross-platform solution for streaming audio and video as well as recording and conversion. It’s also useful to convert multimedia files between various formats. FFmpeg includes libavcodec audio/video codec library in it.

This article will describe you to how to install FFmpeg on Fedora 27/26/25/4/23 systems using DNF. Also provides basic uses of FFmpeg command line utility.

Step 1 – Configure Yum Repository

First of all, You must have installed and enabled the RPMfusion repository on your Fedora system. If you don’t have installed, use below commands to install.

sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
sudo dnf install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

Step 2 – Install FFmpeg on Fedora

Now, your Fedora system is ready for FFmpeg installation. Use DNF package manager to begin the installation process of FFmpeg with FFmpeg-devel package on Fedora system.

sudo dnf install ffmpeg ffmpeg-devel

Step 3 – Find FFmpeg Version

After successfully installed FFmpeg packages on Fedora. Now use the following command to check the version installed on the system.

ffmpeg

ffmpeg version 4.0.2 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 8 (GCC)
configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg.....
....

Step 4 – FFmpeg Basic Commands (Optional)

Here is the list of few FFmpeg basic commands line options. These commands will help you to work with FFmpeg utility.

ffmpeg -version: show version

ffmpeg -formats: show available formats

ffmpeg -codecs: show available codecs

ffmpeg -decoders: show available decoders

ffmpeg -encoders: show available encoders

ffmpeg -bsfs: show available bit stream filters

ffmpeg -protocols: show available protocols

ffmpeg -filters: show available filters

ffmpeg -pix_fmts: show available pixel formats

ffmpeg -layouts: show standard channel layouts

ffmpeg -sample_fmts: show available audio sample formats

Click here to read more about ffmpeg on its official site.

Step 5 – FFmpeg Basic Examples

Here are few basic examples of uses of FFmpeg command line. Please suggest more examples to add here.

Reduce .mov File Size:

ffmpeg -i infile.mov -c:v libx264 -c:a copy -crf 20 outfile.mov

Convert .mov To .mp4

ffmpeg -i infile.mov -vcodec copy -acodec aac -strict experimental -ab 128k outfile.mp4

Source