FFmpeg is a free and open-source command-line tool for transcoding multimedia files. It contains a set of shared audio and video libraries such as libavcodec, libavformat, and libavutil. With FFmpeg, you can convert between various video and audio formats, set sample rates, and resize videos. ### Start by updating the packages list: ``` sudo apt update ``` Next, install FFmpeg by typing the following command: ``` sudo snap install ffmpeg ``` To validate that the package is installed properly use the ffmpeg -version command which prints the FFmpeg version: ``` ffmpeg -version ``` To print all available FFmpeg’s encoders and decoders type: ``` ffmpeg -encoders ffmpeg -decoders ```