Installing Ffmpeg on xbian

For App to be able to create thumbnails and previews for video and audio files uses ffmpeg.
These instructions are specifically for version 8.0 (Jessie) of Debian/xbian.

Configure APT

Note: the commands in this section must be run as root

Add the following to the bottom of /etc/apt/sources.list:
deb jessie main non-free
deb-src jessie main non-free

Refresh apt’s package database, by typing:
apt-get update

Allow apt to trust deb-multimedia’s key, by typing:
apt-get install deb-multimedia-keyring

Refresh apt’s package database again, by typing:
apt-get update

apt-get install ffmpeg

Or from source

Install Libraries

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

Install Ffmpeg

Note: we recommend that the commands in this section are run as a non-root user (although they should still work if run as root)

Download and extract the ffmpeg source code:
mkdir software
cd software
cd ..
mkdir src
cd src
tar xvjf ../software/ffmpeg-2.7.2.tar.bz2

Move into the source directory:
cd ffmpeg-2.7.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

sudo make install

Run “/sbin/ldconfig” as root.