For Open Source Transcoding you have to install the Transcoding Tools (MPlayer, mencoder, FFmpeg, flvtool2, faststart). As the Ubuntu packages do not support all required formats we compile the needed tools. Please just copy & paste the code into your shell and execute the commands as root.
cd /usr/src apt-get update apt-get upgrade apt-get remove x264 ffmpeg mplayer mencoder
apt-get install joe make automake g++ bzip2 unzip patch subversion
joe /etc/ld.so.conf
... and check, if the following lines exist within the file. If not, please add:
/usr/lib /usr/local/lib
apt-get install libsdl1.2-dev zlib1g-dev libfaad-dev libfaac-dev libgsm1-dev libtheora-dev libvorbis-dev libspeex-dev libopencore-amrwb-dev libopencore-amrnb-dev libxvidcore-dev libxvidcore4 libmp3lame-dev libjpeg62 libjpeg62-dev
wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz tar xzf yasm-1.2.0.tar.gz cd yasm-1.2.0/ ./configure && make install cd ..
git clone http://git.videolan.org/git/x264.git
cd x264/ ./configure --enable-shared --enable-pic make && make install
ldconfig cd ..
wget http://webm.googlecode.com/files/libvpx-v1.2.0.tar.bz2 tar xvjf libvpx-v1.2.0.tar.bz2 cd libvpx-v1.2.0 ./configure --enable-shared --enable-pic make make install cd ..
wget http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.1.tar.gz tar xvzf MPlayer-1.1.tar.gz cd MPlayer-1.1/ ./configure make && make install ldconfig cd ..
wget http://ffmpeg.org/releases/ffmpeg-2.0.1.tar.bz2 tar xvjf ffmpeg-2.0.1.tar.bz2 cd ffmpeg-2.0.1/ ./configure --enable-gpl --enable-version3 --enable-shared --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid make make install ldconfig cd ..
chmod +x /usr/local/bin/faststart
or
chmod +x /usr/local/bin/faststart_64
apt-get install libimage-exiftool-perl
Finally, create the required cron job.