In this article, we will have explained the necessary steps to install and configure FFmpeg on Debian 9. Before continuing with this tutorial, make sure you are logged in as a user with sudo
privileges. All the commands in this tutorial should be run as a non-root user.
FFmpeg is one of the free and open-source cross-platform solutions for converting, recording, and streaming media. FFmpeg is also used for converting media files to different formats, resize video, change sample rates for video and audio files.
Install FFmpeg on Debian 9
Step 1. The first command will update the package lists to ensure you get the latest version and dependencies.
sudo apt update sudo apt upgrade
Step 2. Install FFmpeg.
To install FFmpeg type the following command in the terminal:
sudo apt install ffmpeg
Confirm the installation and check the FFmpeg version by typing the below command:
ffmpeg -version
The output should be:
ffmpeg version 3.4.4-1~deb9u1 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 7.0.0 (Debian 7.0.0-18+deb9u1) 20170516
Step 3. FFmpeg Basic Commands.
Below the list of the FFmpeg basic command options used with the FFmpegcommand-line tool:
ffmpeg -version: show version ffmpeg -formats: show available formats ffmpeg -codecs: show available codecs ffmpeg -decoders: show available decoders ffmpeg -encoders: show available encoders ffmpeg -bsfs: show available bit stream filters ffmpeg -protocols: show available protocols ffmpeg -filters: show available filters ffmpeg -pix_fmts: show available pixel formats ffmpeg -layouts: show standard channel layouts ffmpeg -sample_fmts: show available audio sample formats
That’s all you need to do to install FFmpeg on Debian 9 Stretch. I hope you find this quick tip helpful. For further reading on FFmpeg, please refer to their official knowledge base. If you have questions or suggestions, feel free to leave a comment below.