The following steps are used to install Ffmpeg on ubuntu:

Step 1: Install FFmpeg


FFmpeg is a packages by default is in Ubuntu. These packages can be installed by using the apt package manager. The following command line is used to install FFmpeg on Ubuntu 22.04 

$ sudo apt install  ffmpeg


Press ‘Y’ to continue 
when the command prompt shows
do you want to continue? [Y/n] y

Step 2: Verify installation

To verify the successful installation of Ffmpeg, use the following command. 

$ ffmpeg -version


Step 3: Encoders & Decoders

The following command is used to find out the available encoders and decoders of Ffmpeg.


$ ffmpeg -encoders
$ ffmpeg -decoders