- basic information is found on: http://code.trac.wordpress.org/browser/wordpresscom-video-server/trunk/readme.txt
Transcoder-Server
- official readme: http://code.trac.wordpress.org/browser/wordpresscom-video-server/trunk/server/setup/transcoder-setup.txt
- the following is a variation of that how-to, to make it work on a standard ubuntu server install.
- NOTE: it is important to use exactly the version/build numbers as shown here, as newer version will likely break everything
Step 1: Install some required system libraries, remove packages we want to compile ourselves
sudo apt-get install build-essential ruby make nasm zlib1g-dev wget autoconf automake libtool g++ subversion debian-builder libswscale-dev php5-gd liba52-dev libgsm1-dev libgsm-tools libvorbis-dev libdc1394-22-dev libavcodec-dev libavcodec-extra-52 libavcodec-unstripped-52 sudo apt-get purge flvtool2 liblame0 faad libfaad0 libfaad2 libfaad-dev faac libfaac-dev libfaac0 yasm x264 libx264-67 libx264-85 libx264-dev
Step 2: Download and install FLVTool
wget http://rubyforge.org/frs/download.php/17497/flvtool2-1.0.6.tgz tar -zxf flvtool2-1.0.6.tgz cd flvtool2-1.0.6 sudo ruby setup.rb cd ../
Step 3: Download and install LAME
LAME: LAME Ain't an MP3 Encoder
wget http://downloads.sourceforge.net/lame/lame-3.97.tar.gz tar -zxf lame-3.97.tar.gz cd lame-3.97 sudo ./configure --disable-decoder --enable-nasm && sudo make && sudo make install cd ../
Step 4: Download and install FAAD
FAAD: Freeware Advanced Audio Coder and Decoder
wget http://downloads.sourceforge.net/faac/faad2-2.7.tar.gz tar -zxf faad2-2.7.tar.gz cd faad2 sudo autoreconf -vif && sudo ./configure --with-mp4v2 && sudo make && sudo make install cd ../
Step 5: Download and install FAAC
FAAC: Freeware Advanced Audio Coder and Decoder
wget http://downloads.sourceforge.net/faac/faac-1.28.tar.gz tar -zxf faac-1.28.tar.gz cd faac-1.28 sudo autoreconf -vif && sudo ./configure && sudo make && sudo make install cd ../
Step 6: Download and install YASM
YASM: Yasm, the modular assembler
wget http://www.tortall.net/projects/yasm/releases/yasm-0.8.tar.gz tar -zxvf yasm-0.8.tar.gz cd yasm-0.8 sudo ./configure && sudo make && sudo make install cd ../
Step 7: Download and install x264
x264: x264 is a free library for encoding H264/AVC video streams
wget http://downloads.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20100411-2245.tar.bz2 bunzip2 x264-snapshot-20100411-2245.tar.bz2 tar -xvf x264-snapshot-20100411-2245.tar cd x264-snapshot-20100411-2245 sudo ./configure --enable-pthread --enable-shared --prefix=/usr/local/lib && sudo make && sudo make install cd ../
Step 8: Download and install ffmpeg
ffmpeg is a command line tool to convert multimedia files between formats.
svn checkout -r22841 svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg chmod -R +x ffmpeg cd ffmpeg sudo ./configure --enable-gpl --enable-postproc --enable-pthreads --enable-libvorbis --enable-libgsm --enable-libmp3lame --enable-libdc1394 --disable-debug --enable-shared --prefix=/usr/local/lib --enable-libfaad --enable-libfaac --enable-libx264 --enable-nonfree && sudo make && sudo make install sudo echo "/usr/local/lib" >> /etc/ld.so.conf sudo /sbin/ldconfig sudo make tools/qt-faststart sudo mv tools/qt-faststart /usr/bin