Skip to content

Instantly share code, notes, and snippets.

@LeeRJohnson
Created December 15, 2010 17:09
Show Gist options
  • Save LeeRJohnson/742269 to your computer and use it in GitHub Desktop.
Save LeeRJohnson/742269 to your computer and use it in GitHub Desktop.
# Get Current
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libjpeg-progs libjpeg62 libjpeg62-dev libsdl1.2-dev php5-dev build-essential unzip
#Install Ruby on Rails, subversion & ncurses
sudo apt-get install subversion ruby libcurses-ruby
#New codec and secure tmp folders
sudo mkdir /usr/local/lib/codecs/
sudo mkdir /usr/local/src/tmp
sudo chmod 777 /usr/local/src/tmp
sudo export TMPDIR=/usr/local/src/tmp
# Extract all the files
sudo tar zxvf lame-3.97.tar.gz
sudo tar zxvf libogg-1.1.3.tar.gz
sudo tar zxvf libvorbis-1.2.0.tar.gz
sudo tar zxvf flvtool2-1.0.6.tgz
sudo tar jxvf essential-20071007.tar.bz2
sudo tar jxvf ffmpeg-php-0.5.0.tbz2
sudo bzip2 -cd amrnb-7.0.0.2.tar.bz2 | sudo tar xvf -
sudo bzip2 -cd amrwb-7.0.0.3.tar.bz2 | sudo tar xvf -
sudo tar zxvf libtheora-1.0beta3.tar.gz
##Copy Codecs for mplayer
sudo mv /usr/local/src/essential-20071007/* /usr/local/lib/codecs/
sudo chmod -R 755 /usr/local/lib/codecs/
# Download Source Library Sources
cd /usr/local/src
sudo wget http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2
sudo wget http://rubyforge.org/frs/download.php/17497/flvtool2-1.0.6.tgz
sudo wget http://easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz
sudo wget http://superb-west.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.5.0.tbz2
sudo wget http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz
sudo wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.2.0.tar.gz
sudo wget http://ftp.penguin.cz/pub/users/utx/amr/amrnb-7.0.0.2.tar.bz2
sudo wget http://ftp.penguin.cz/pub/users/utx/amr/amrwb-7.0.0.3.tar.bz2
sudo wget http://downloads.xiph.org/releases/theora/libtheora-1.0beta3.tar.gzs
#Install lame
cd /usr/local/src/lame-3.97
sudo ./configure
sudo make && make install
#Install libogg
cd /usr/local/src/libogg-1.1.3
sudo ./configure && make && make install
#Install libvorbis
cd /usr/local/src/libvorbis-1.2.0
sudo ./configure && make && make install
# Install flvtool2
cd /usr/local/src/flvtool2-1.0.6/
sudo ruby setup.rb config
sudo ruby setup.rb setup
sudo ruby setup.rb install
# Install mplayer & mencoder
cd /usr/local/src/mplayer
sudo ./configure –enable-jpeg
sudo make && make install
#Install AMR (for 3gp conversion)
sudo cd /usr/local/src/amrnb-7.0.0.2
sudo ./configure
make && make install
cd /usr/local/src/amrwb-7.0.0.3
sudo ./configure
sudo make && make install
#Install libtheora (for ogg video encoding)
cd /usr/local/src/libtheora-1.0beta3
sudo ./configure
sudo make && make install
#Install ffmpeg
cd /usr/local/src/ffmpeg/
sudo ./configure –enable-libmp3lame –enable-libogg –enable-libvorbis –disable-mmx sudo –enable-shared –enable-amr-nb –enable-libtheora
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment