FFmpeg is a collection of tools that process audio and video files. It is open-source and completely free. Tasks that FFmpeg can perform include encoding, decoding, transcoding, streaming, filtering, muxing, demuxing, etc. It is a cross-platform compatible framework that works on Windows, Linux, Mac OS X, BDS systems, and Solaris.
If you are looking for a guide that will help in installing FFmpeg on the latest release of Ubuntu which is Ubuntu 22.04 then you are at the right place. Here we have summed up the steps through which you can install FFmpeg.
How to Install FFmpeg on Ubuntu 22.04
If you wish to learn the procedure of installing FFmpeg on Ubuntu 22.04 then read the full article.
Step 1: System update
A good practice before installing anything on your operating system is to update the system as well as the existing packages.
Output
The system has been updated.
Step 2: Install FFmpeg
Ubuntu repositories have FFmpeg packages by default and these packages can be installed using the apt package manager. The command line that is used to install FFmpeg on Ubuntu 22.04 is as follows.
Output
Press ‘Y’ to continue.
Step 3: Verify installation
Now in order to evaluate the successful installation of FFmpeg, use the following command.
Output
FFmpeg has been installed successfully.
Step 4: Encoders & Decoders
To know the available encoders and decoders of FFmpeg use the commands given below.
$ ffmpeg -decoders
Output
These are the available encoders.
And these are existing decoders.
In this way, following these simple steps, you can install FFmpeg on Ubuntu 22.04.
How to uninstall FFmpeg on Ubuntu 22.04
If you wish to uninstall FFmpeg from the system then follow the steps below.
Step 1: Remove FFmpeg
To remove the FFmpeg package use this command.
Output
Now press ‘Y’ to continue.
FFmpeg has been removed.
Step 2: Clear Repository
Now clean your system repository by using the commands provided below. These commands not only clear the repository but also remove the packages that were installed because some other packages required them and now these are no longer needed.
Output
Repository has been cleared.
Conclusion
For the purpose of installing FFmpeg on your Ubuntu 22.04 use the command $ sudo apt install ffmpeg. After running this command in order to make sure that FFmpeg was installed with success use the command $ ffmpeg -version. Moreover, there are some encoders and decoders available in FFmpeg so to check them use these commands, $ ffmpeg -encoders, and $ ffmpeg -decoders.