How to Install FFmpeg in Linux?
Last Updated :
24 Sep, 2024
FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter, and play pretty much anything that humans and machines have created. It supports the most obscure ancient formats up to the cutting edge. No matter if they were designed by some standards committee, the community, or a corporation.
If you want to use FFmpeg on your Linux device, follow these easy steps to get it installed:
Step 1: Open Terminal On Your Linux Device
To start, open a terminal window on your Linux system. You can do this by pressing "Ctrl + Alt + T". This will open the terminal where you will run the necessary commands.
This is how the terminal looks like.Step 2: Enter the installation command
To install FFmpeg, use the following command. This will retrieve the latest version of FFmpeg from your package manager:
sudo apt install ffmpeg
Entering the installation command.This command is for Debian-based systems like Ubuntu. If you're using a different distribution (e.g., Fedora, Arch), the installation command might vary.
sudo dnf install ffmpeg
sudo pacman -S ffmpeg
Step 3: Confirm Installation by Pressing Y
The system will read the package information and ask for confirmation. When prompted, press Y and hit Enter to proceed with the installation.
It is asking for permission to install ffmped,enter Y and Press Enter.Step 4: Wait for Installation to Complete
Once confirmed, the package manager will download and install FFmpeg along with any required dependencies. Wait for the installation process to finish, and the terminal will return to its default prompt.
Installation Complete.Step 5: Verify the Installation
It shows the installed version of ffmpeg then it means the installation is completed successfully. If it shows an error then repeat the steps from the beginning.
ffmpeg -version
Checking if the installation is done successfully or not.Conclusion
By following the simple installation process outlined above, you can quickly get it running on your Linux system. After installation, you’ll have access to a range of powerful features for encoding, transcoding, and processing media files. FFmpeg opens up a world of possibilities for managing media.
Explore
Linux/Unix Tutorial
5 min read
Getting Started with Linux
Installation with Linux
Linux Commands
Linux File System
Linux Kernel
Linux Networking Tools
Linux Process
Linux Firewall
Shell Scripting & Bash Scripting