FFmpeg is an essential multimedia framework that enables processing (e.g., recording, converting, and streaming) of audio and video in various formats. This article provides a detailed guide on how to install FFmpeg on Linux systems. The guide is divided according to the most commonly used Linux distributions, such as Ubuntu (and its derivatives like Debian), Fedora, and Arch Linux.
Ubuntu and Debian
-
Open the Terminal
- Firstly, open the terminal by pressing
Ctrl+Alt+T
or searching forTerminal
in your system applications.
- Firstly, open the terminal by pressing
-
Update Package List
- Run the command
sudo apt update
to update the package list and their dependencies.
- Run the command
-
Install FFmpeg
- After updating the package list, install FFmpeg by running the command
sudo apt install ffmpeg
.
- After updating the package list, install FFmpeg by running the command
-
Verify Installation
- Once the installation is complete, verify the installation and check the FFmpeg version by typing
ffmpeg -version
.
- Once the installation is complete, verify the installation and check the FFmpeg version by typing
Fedora
-
Open the Terminal
- Similarly to Ubuntu, begin by opening the terminal.
-
Update System
- Execute
sudo dnf update
to update your system.
- Execute
-
Install FFmpeg
- To install FFmpeg on Fedora, use the command
sudo dnf install ffmpeg
.
- To install FFmpeg on Fedora, use the command
-
Verify Installation
- Verify the installation and check the FFmpeg version using the same command as in Ubuntu,
ffmpeg -version
.
- Verify the installation and check the FFmpeg version using the same command as in Ubuntu,
Arch Linux
-
Open the Terminal
- Start by opening the terminal.
-
Update System
- Run
sudo pacman -Syu
to update your system.
- Run
-
Install FFmpeg
- In Arch Linux, install FFmpeg with the command
sudo pacman -S ffmpeg
.
- In Arch Linux, install FFmpeg with the command
-
Verify Installation
- To verify the installation and check the FFmpeg version, use the command
ffmpeg -version
.
- To verify the installation and check the FFmpeg version, use the command
Installing FFmpeg on various Linux distributions is a relatively straightforward process. The most important steps involve opening the terminal, updating the system, installing FFmpeg itself, and verifying the installation. Upon successful installation, you will be able to utilize all of FFmpeg's functionalities for working with audio and video files.