Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
129 lines (105 sloc) 3.88 KB
adduser rvideo
(add rvideo to sudoers)
su - rvideo
mkdir src
cd src
sudo apt-get update (necessary?)
sudo apt-get install automake
sudo apt-get install autoconf
sudo apt-get install libtool
sudo apt-get install m4
sudo apt-get install g++ (gcc-c++ in fedora?) # not in OS X - xcode instead?
sudo apt-get install yasm
wget http://www3.mplayerhq.hu/MPlayer/releases/codecs/all-20061022.tar.bz2
wget http://easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz
wget http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz
wget http://downloads.xvid.org/downloads/xvidcore-1.1.3.tar.gz
wget http://liba52.sourceforge.net/files/a52dec-0.7.4.tar.gz
wget http://downloads.sourceforge.net/faac/faac-1.25.tar.gz
wget http://downloads.sourceforge.net/faac/faad2-2.5.tar.gz
wget http://downloads.xiph.org/releases/theora/libtheora-1.0alpha7.tar.bz2
wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.2.0.tar.gz
wget http://ftp.penguin.cz/pub/users/utx/amr/amrnb-7.0.0.0.tar.bz2
wget http://ftp.penguin.cz/pub/users/utx/amr/amrwb-7.0.0.2.tar.bz2
sudo gem install flvtool2
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
svn co svn://svn.videolan.org/x264/trunk x264
tar xzvf a52dec-0.7.4.tar.gz
tar xzvf faac-1.25.tar.gz
tar xzvf faad2-2.5.tar.gz
tar xzvf lame-3.97.tar.gz
tar xzvf xvidcore-1.1.3.tar.gz
tar xzvf libogg-1.1.3.tar.gz
tar xjvf all-20061022.tar.bz2
tar xjvf libtheora-1.0alpha7.tar.bz2
tar xjvf amrnb-7.0.0.0.tar.bz2
tar xjvf amrwb-7.0.0.2.tar.bz2
sudo mkdir /usr/local/lib/codecs
sudo mv all-20061022/* /usr/local/lib/codecs
sudo chmod -R 755 /usr/local/lib/codecs/
echo /usr/local/lib >>/etc/ld.so.conf # not OS X
sudo ldconfig -v # not OS X
cd libogg-1.1.3
./configure --enable-shared && make && sudo make install
cd ..
cd libvorbis-1.2.0
./configure --enable-shared && make && sudo make install
cd ..
:3
cd libtheora-1.0alpha7
./configure --enable-shared && make && sudo make install
cd ..
cd faac
# PATCH as described at http://research.m1stereo.tv/wiki/index.php/Build_video_enc_env#faac
autoreconf -vif
./configure --with-mp4v2 && make && sudo make install
cd ..
cd faad2
# OS X -
# Patch as per darwinports version
# Comment out #define HAS_LRINTF block in common.h (including lrintf method definition)
# PATCH as described at (Linux) http://research.m1stereo.tv/wiki/index.php/Build_video_enc_env#faad2
autoreconf -vif
./configure && make && sudo make install
cd ..
cd xvidcore/build/generic
# OS X (see http://rob.opendot.cl/index.php/useful-stuff/xvid-with-asm-on-os-x/)
./configure --enable-macosx_module
Edit build/generic/platform.inc and ADD the flags shown below:
"-undefined suppress" to SPECIFIC_CFLAGS
"-f macho -DPREFIX" to AFLAGS (so it reads AFLAGS="AFLAGS=-I$(<D)/ -f macho -DPREFIX")
"-read_only_relocs suppress" to SPECIFIC_LDFLAGS
# Linux
./configure && make && sudo make install
cd ../../..
cd a52dec-0.7.4
./configure --enable-shared=yes && make && sudo make install
cd ..
cd lame-3.97
./configure && make && sudo make install
cd ..
cd x264
./configure --enable-pthread && make && sudo make install
cd ..
cd amrnb-7.0.0.0/
./configure && make && sudo make install
cd ..
cd amrwb-7.0.0.0/
./configure && make && sudo make install
cd ..
cd ffmpeg
# apply patch from http://research.m1stereo.tv/wiki/index.php/Build_video_enc_env - though use libfaad.c, not faad.c
./configure --enable-libmp3lame --enable-libogg --enable-libvorbis --enable-liba52 --enable-libxvid --enable-libfaac --enable-libfaad --enable-libx264 --enable-libxvid --enable-pp --enable-shared --enable-gpl --enable-libtheora --enable-libfaadbin --enable-liba52bin --enable-libamr_nb --enable-libamr_wb
make && sudo make install
cd ..
NOT EXECUTED
apt-get install libncurses-devel (names of yum packages)
svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
twolame
flac
speex
libdv
libmad
libmpeg2
mpeg4ip
http://graphics.cs.uni-sb.de/NMM/Download/external/nmm-1.0.0/external-libraries-optional/mpeg2dec-0.4.0b.tar.gz