Skip to content

Instantly share code, notes, and snippets.

@shankar-bavan
Last active October 31, 2020 15:20
Show Gist options
  • Save shankar-bavan/a5687d961e7d587f40eb6fe35ef2a14e to your computer and use it in GitHub Desktop.
Save shankar-bavan/a5687d961e7d587f40eb6fe35ef2a14e to your computer and use it in GitHub Desktop.
How to install FFmpeg

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment