# FFMpeg Installation... What about AC3 or AVC (H264)
# 1. Ensure no pending updates
sudo apt-get update
sudo apt-get upgrade
# sudo sh -c 'echo "deb http://www.deb-multimedia.org jessie main non-free" >> /etc/apt/sources.list.d/deb-multimedia.list'
# sudo sh -c 'echo "deb-src http://www.deb-multimedia.org jessie main non-free" >> /etc/apt/sources.list.d/deb-multimedia.list'
# sudo apt-get update
# sudo apt-get install deb-multimedia-keyring
# sudo apt-get update
# sudo apt-get remove ffmpeg
# sudo apt-get install build-essential libmp3lame-dev libvorbis-dev libtheora-dev libspeex-dev yasm pkg-config libfaac-dev libopenjpeg-dev libx264-dev
# sudo apt-get install git
# 2. Install H264 Support
cd /usr/src
sudo git clone git://git.videolan.org/x264
cd x264
sudo ./configure --host=arm-unknown-linux-gnueabi --enable-static --disable-opencl
sudo make
sudo make install
# Install Other Libraries/Formats (MP3, AAC, etc) n/a
# 3. Install FFMPEG
cd /usr/src
sudo git clone https://github.com/FFmpeg/FFmpeg.git
cd FFmpeg
sudo ./configure --arch=armel --target-os=linux --enable-gpl --enable-libx264 --enable-nonfree
sudo make -j4
sudo make install
# 4. Test
ffmpeg -encoders