How to install ffmpeg on Ubuntu
FFmpeg is a command-line utility for transcoding multimedia files that is free and open-source. It includes libavcodec, libavformat, and libavutil, which are shared audio and video libraries. You may use FFmpeg to convert between different video and audio formats, as well as alter sample rates and resize videos.
Source: FOSS Linux