YouTube Icon

Code Playground.

How to Install and Use FFmpeg on Debian 9


How to Install and Use FFmpeg on Debian 9

FFmpeg is a free and open-source order line apparatus for transcoding sight and sound records. It contains a bunch of shared sound and video libraries, for example, libavcodec, libavformat, and libavutil. With FFmpeg, you can change over between different video and sound configurations, set example rates, and resize recordings. 

This instructional exercise discloses how to introduce FFmpeg on Debian 9. 


You'll should be signed in as a client with sudo advantages to have the option to introduce bundles on your Debian framework. 

Installing FFmpeg on Debian

The authority Debian archives contain FFmpeg bundles that can be introduced with the adept bundle administrator. At the hour of composing this article, the current form of FFmpeg accessible in the Debian 9 stores is 3.2.12. 

The accompanying advances portray how to introduce FFmpeg on Debian 9: 

Start by refreshing the bundles list: 

sudo apt update

Introduce the FFmpeg bundle by running the accompanying order: 

sudo apt install ffmpeg

Approve the establishment by running the ffmpeg - rendition order which will print the FFmpeg variant: 

ffmpeg -version

The yield should look something like the accompanying: 

ffmpeg version 3.2.12-1~deb9u1 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516

To print all accessible FFmpeg's encoders and decoders you can utilize: 

ffmpeg -encoders
ffmpeg -decoders

That is it. FFmpeg is presently introduced on your framework, and you can begin utilizing it. 

The rendition remembered for the Debian storehouses consistently lingers behind the most recent variant of FFmpeg. In the event that you need to introduce the most recent adaptation of FFmpeg you'll have to manufacture the FFmpeg apparatuses from source . 

FFmpeg Examples

In this segment, we will tell you a few instances of the best way to utilize the ffmpeg apparatus. 

Basic conversion

While changing over sound and video records with ffmpeg you don't need to determine the information and yield designs. The information document design is auto identified and the yield design is speculated from the predetermined record augmentation. 

Convert a video document from mov to mp4: 

ffmpeg -i output.mp4

Convert a sound document from mp3 to flac: 

ffmpeg -i input.mp3 output.flac

Specifying codecs

To determine the codecs utilize the - c alternative. The codec can be the name of any upheld decoder/encoder or an exceptional worth duplicate that basically duplicates the information stream. 

Convert a video record from mp4 to webm utilizing the libvpx video codec and libvorbis sound codec: 

ffmpeg -i input.mp4 -c:v libvpx -c:a libvorbis output.webm

Convert a sound record from mp3 to ogg encoded with the libopus codec. 

ffmpeg -i input.mp3 -c:a libopus output.ogg


You have figured out how to introduce FFmpeg on Debian 9. You would now be able to visit the authority FFmpeg Documentation page and figure out how to utilize FFmpeg to change over and your video and sound records. 

On the off chance that you hit an issue or have criticism, leave a remark underneath.