How do I install ffmpeg on Debian Jessie?

It is now available for Jessy as a backport:

Add something like this to /etc/apt/sources.list (with your preferred mirror):

deb jessie-backports main


apt-get update
apt-get install ffmpeg

Try using aptitude to install it because it will give you possible solutions. Just make sure you look over each one carefully.

sudo aptitude install ffmpeg

Fix broken package

sudo apt-get install -f

Add the following lines to /etc/apt/sources.list

deb jessie main non-free
deb-src jessie main non-free


apt-get update

Add the key

apt-get install deb-multimedia-keyring


apt-get update

Remove ffmpeg Debian packge

apt-get remove ffmpeg

As root Install library packages and build tools:

apt-get install build-essential libmp3lame-dev libvorbis-dev libtheora-dev libspeex-dev yasm pkg-config libfaac-dev libopenjpeg-dev libx264-dev

Download the latest ffmpeg from here


Extract it

tar xvjf ffmpeg-3.0.2.tar.bz2

Move into the directory

cd ffmpeg-3.0.2

Configure, build and install:

./configure --enable-gpl --enable-postproc --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libx264 --enable-libspeex --enable-shared --enable-pthreads --enable-libopenjpeg --enable-libfaac --enable-nonfree
make -j 16
sudo make install