How do I install ffmpeg on Debian Jessie?

It is now available for Jessy as a backport: https://packages.debian.org/jessie-backports/ffmpeg

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

deb http://ftp.uk.debian.org/debian jessie-backports main

Then

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 http://www.deb-multimedia.org jessie main non-free
deb-src http://www.deb-multimedia.org jessie main non-free

Update:

apt-get update

Add the key

apt-get install deb-multimedia-keyring

update

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

wget https://ffmpeg.org/releases/ffmpeg-3.0.2.tar.bz2

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