How to Install FFmpeg Ubuntu 22.04

How to Install FFmpeg Ubuntu 22.04

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


Through this tutorial, you have learned how to install and use FFmpeg on the Linux ubuntu 22.04 system.

Recommended Linux Ubuntu Tutorials


Greetings, I'm Devendra Dode, a full-stack developer, entrepreneur, and the proud owner of My passion lies in crafting informative tutorials and offering valuable tips to assist fellow developers on their coding journey. Within my content, I cover a spectrum of technologies, including PHP, Python, JavaScript, jQuery, Laravel, Livewire, CodeIgniter, Node.js, Express.js, Vue.js, Angular.js, React.js, MySQL, MongoDB, REST APIs, Windows, XAMPP, Linux, Ubuntu, Amazon AWS, Composer, SEO, WordPress, SSL, and Bootstrap. Whether you're starting out or looking for advanced examples, I provide step-by-step guides and practical demonstrations to make your learning experience seamless. Let's explore the diverse realms of coding together.

Leave a Reply

Your email address will not be published. Required fields are marked *