How to Install FFmpeg in Ubuntu 22.04

FFmpeg is a free and open-source software project that allows users to record, convert, and stream audio and video files. It is widely used for various audio and video processing tasks, including transcoding, converting, and scaling media files, as well as for streaming audio and video over the internet. It is a terminal-based tool that makes all of these operations a breeze for the user.

It not only supports all of these operations, but it also offers more control over the whole process through command options including frame rate, bit rate, input and output files among many others. You can record videos straight from your TV card, and you can use the tools to create container files for your video as well as audio files.

It supports a huge library of codecs and formats, including and not limited to, video formats such as MPEG-1, MPEG-2, h.264 (MPEG-4 AVC), h.265 (HEVC), Xvid, VP8, VP9 and AVI. Similarly, it supports audio formats such as AAC, WMA, Vorbis and MP3 among many others. So, let’s explore how can you leverage this much power on your computer running Ubuntu 22.04? Let’s explore the steps involved in the installation process.

Update the system

Before starting any installation, it’s always a good idea to update the repository indexes and complete any pending updates to avoid any hinderances during the installation process. We can initiate the process using:

$sudo apt update && sudo apt upgrade -y

After this successfully completes, we need to resolve a few dependencies to ensure optimal installation and performance of the tool.

Install FFmpeg through Apt

If you want to keep the process clean and simple, you can install the tool on your computer using the official system repositories. For this, you don’t need to import any third-party repositories in your computer. You can simply run the following to download it and install FFmpeg:

$sudo apt install ffmpeg -y

Depending on your bandwidth, the process will take up some time to complete.

Check the version

Once you get the prompt back, you can run the following to verify that the tool has been successfully installed.

$ffmpeg -version

Update FFmpeg

If you want to update the application, you can run the same command to update FFmpeg to the latest version:

$sudo apt update && sudo apt upgrade -y

This will update FFmpeg to the latest version, if there is an updated version out.

Use FFmpeg

To use FFmpeg, you can run it from the command line with the appropriate arguments and options. For example, to convert an audio file from MP3 to WAV format, you can run the following command:

$ffmpeg -i input.mp3 output.wav

This will convert the input file “input.mp3” to a WAV file named “output.wav”. You can also use FFmpeg for more complex tasks, such as transcoding video files, scaling media files, and streaming audio and video over the internet.

Considering that this is just a single use case, you can explore the documentation at the official website to learn more about the options and features to fully understand the tool and its usage.

Uninstall FFmpeg

You can uninstall the tool along with all of the dependent packages and any stored metadata using this:

$sudo apt autoremove ffmpeg --purge -y

This will clear up a lot of the consumed disk space and free up your computer after the whole process.


In conclusion, FFmpeg is a powerful and versatile tool for working with audio and video files. It can be easily installed on Ubuntu 22.04 using the instructions above, and it provides a wide range of options and features for processing and converting media files.

Feel free to reach out to us through the comments if you run into any issues throughout the installation process.

Print Friendly, PDF & Email