In this guide, i will explain how to install FFmpeg on a Debian 8 “Jessie” and 9 “Stretch” (if you are using Centos, please check out this tutorial).
Debian 8 “Jessie”
Note: FFmpeg is not available for Debian 8 “Jessie”, fortunately it is now available as a backport which described in the first option.
Option 1 ( using jessie-backports )
1. Add deb-multimedia and the jessie-backports to the bottom of your sources list ( path: /etc/apt/sources.list ):
# deb-multimedia deb http://www.deb-multimedia.org jessie main non-free deb-src http://www.deb-multimedia.org jessie main non-free # jessie-backports deb http://httpredir.debian.org/debian/ jessie-backports main
2. Update the package list and install deb-multimedia keyring.
sudo apt-get update sudo apt-get install deb-multimedia-keyring sudo apt-get update
3. Remove ffmpeg Debian package (Optional)
Remove ffmpeg package, if it is already installed, to avoid conflicts with the packages that will be installed in this tutorial , to do this execute this command:
sudo apt-get remove ffmpeg
4. Now FFmpeg is available to be installed with apt
sudo apt-get install ffmpeg
Option 2 ( using Libav “avconv” )
Libav is a free software project, forked from FFmpeg which has almost the same usage as “ffmpeg”.
sudo apt-get update sudo apt-get install libav-tools
Debian 9 “Stretch”
Debian Multimedia Maintainers team has decided to switch from Libav (fork of FFmpeg) to FFmpeg as provider for the libav* multimedia libraries. so now is easy as running the following command on terminal
sudo apt-get update sudo apt-get install ffmpeg