FFmpeg is a command-line tool that helps record, convert, and stream audio and video files on various operating systems, including Windows, Linux, and Mac. To install any version of ffmpeg on Ubuntu like 5, 6, 7, etc, You don’t have to do much of this, just open your terminal window and type sudo apt install ffmpeg
command, press enter, and it will install it in your Ubuntu 22.04 or 20.04 system.
How to Install FFmpeg on Ubuntu 22.04
Here are some steps to install FFmpeg 5, 6, 7, etc versions on Linux Ubuntu 22.04 via the command line or terminal:
Step 1 – Update System Dependencies
Simply start your terminal window by pressing ctrl+alt+t keys on the keyboard and type the command sudo apt update && sudo apt upgrade
to update system packages:
sudo apt update && sudo apt upgrade
Step 2 – FFmpeg on Ubuntu 22.04
Simply type sudo apt install ffmpeg
command on Ubuntu terminal window and press Enter, this will install FFmpeg latest version such as 5,6,7, etc in your system:
sudo apt install ffmpeg
Step 3 – Verify installation
Once the FFmpeg installation is complete, use a simple ffmpeg -version
command on a terminal window to verify the installation of FFmpeg on the Ubuntu system:
ffmpeg -version
Step 4 – Encoders & Decoders
You can use the FFmpeg ffmpeg -encoders
and ffmpeg -decoders
commands on a terminal window, you can use commands something like this:
ffmpeg -encoders ffmpeg -decoders
If for some reason you want to completely uninstall or remove FFmpeg from your Ubuntu system, you can do this by typing the commands sudo apt remove ffmpeg
and sudo apt autoclean && sudo apt autoremove
on your terminal window and pressing enter, These commands will remove FFmpeg along with all its dependencies, folders, subdirectories, and contents:
sudo apt remove ffmpeg
sudo apt autoclean && sudo apt autoremove
Conclusion
Through this tutorial, you have learned how to install and use FFmpeg on the Linux ubuntu 22.04 system.