In this article, we will have explained the necessary steps to install and set up FFmpeg on Debian 10. 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. It can be used to convert media files from one format to another and set sample rates, capture streaming audio/video, and resize videos.
Install FFmpeg on Debian 10
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 on the Debian system.
Run the following command to install the FFmpeg package:
sudo apt install ffmpeg
Once the installation complete, you can verify the installation by checking its version:
It should show output like the following:
ffmpeg version 4.2.4-1~deb10u1 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 8 (Debian 10.3.0-6)
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
As a basic command line example, the below command will reduce the size of a .mp4 file:
ffmpeg -i input.mov -c:v libx264 -c:a copy -crf 20 output.mp4
That’s all you need to do to install the FFmpeg on Debian 10 Buster. 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.