Last active
October 11, 2015 17:54
-
-
Save fergbrain/fb50134a19405cfcc11f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir -p $HOME/src $HOME/tmp | |
export TMPDIR=$HOME/tmp | |
export PATH="$HOME/bin:$PATH" | |
export C_INCLUDE_PATH="$HOME/include:$C_INCLUDE_PATH" | |
export LIBRARY_PATH="$HOME/lib:$LIBRARY_PATH" | |
export LD_LIBRARY_PATH="$HOME/lib:$LD_LIBRARY_PATH" | |
########################################################### | |
# yasm 1.3.0 | |
########################################################### | |
cd $HOME/src | |
wget 'http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz' | |
tar -xzf yasm-1.3.0.tar.gz | |
cd yasm-1.3.0 | |
./configure --prefix=$HOME | |
make # 20 sec | |
make install | |
########################################################### | |
# lame 3.99.5 | |
########################################################### | |
cd $HOME/src | |
wget 'http://sourceforge.net/projects/lame/files/lame/3.99/lame-3.99.5.tar.gz/download' -O lame-3.99.5.tar.gz | |
tar -xzf lame-3.99.5.tar.gz | |
cd lame-3.99.5 | |
./configure --prefix=$HOME | |
make # 20 sec | |
make install | |
########################################################### | |
# libogg 1.3.2 | |
########################################################### | |
cd $HOME/src | |
wget 'http://downloads.xiph.org/releases/ogg/libogg-1.3.2.tar.gz' | |
tar -xzf libogg-1.3.2.tar.gz | |
cd libogg-1.3.2 | |
./configure --prefix=$HOME | |
make # 2 sec | |
make install | |
########################################################### | |
# libvorbis 1.3.5 | |
########################################################### | |
cd $HOME/src | |
wget 'http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.5.tar.gz' | |
tar -xzf libvorbis-1.3.5.tar.gz | |
cd libvorbis-1.3.5 | |
./configure --prefix=$HOME | |
make # 15 sec | |
make install | |
########################################################### | |
# libtheora 1.1.1 | |
########################################################### | |
cd $HOME/src | |
wget 'http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.bz2' | |
tar -xjf libtheora-1.1.1.tar.bz2 | |
cd libtheora-1.1.1 | |
./configure --prefix=$HOME | |
make # 20 sec | |
make install | |
########################################################### | |
# libvpx @ c74bf6d889992c3cabe017ec353ca85c323107cd | |
########################################################### | |
cd $HOME/src | |
wget 'https://github.com/webmproject/libvpx/archive/v1.4.0.tar.gz' -O libvpx-1.4.0.tar.gz | |
tar -xzf libvpx-1.4.0.tar.gz | |
cd libvpx-1.4.0 | |
./configure --prefix=$HOME --enable-pic --enable-shared | |
make # 30 sec | |
make install | |
########################################################### | |
# faac 1.28 | |
########################################################### | |
cd $HOME/src | |
wget 'http://downloads.sourceforge.net/faac/faac-1.28.tar.gz' -O faac-1.28.tar.gz | |
tar -xzf faac-1.28.tar.gz | |
cd faac-1.28 | |
# fix programming error | |
sed -i '126d' ./common/mp4v2/mpeg4ip.h | |
./configure --prefix=$HOME | |
make # 6 sec | |
make install | |
########################################################### | |
# libx264 @ da19765d723b06a1fa189478e9da61a1c18490f8 | |
# original: git://git.videolan.org/x264.git | |
########################################################### | |
cd $HOME/src | |
wget 'https://download.videolan.org/pub/x264/snapshots/last_stable_x264.tar.bz2' | |
tar -xjf last_stable_x264.tar.bz2 | |
cd last_stable_x264.tar.bz2 | |
./configure --prefix=$HOME --enable-static --enable-shared | |
make # 45 sec | |
make install | |
########################################################### | |
# libxvid 1.3.2 | |
########################################################### | |
cd $HOME/src | |
wget 'http://downloads.xvid.org/downloads/xvidcore-1.3.4.tar.gz' | |
tar -xzf xvidcore-1.3.4.tar.gz | |
cd xvidcore/build/generic | |
./configure --prefix=$HOME | |
make # 15 sec | |
make install | |
########################################################### | |
# ffmpeg 2.8 | |
########################################################### | |
cd $HOME/src | |
wget 'http://ffmpeg.org/releases/ffmpeg-2.8.tar.bz2' | |
tar -xjf ffmpeg-2.8.tar.bz2 | |
cd ffmpeg-2.8 | |
./configure --prefix=$HOME --libdir=$HOME/lib \ | |
--incdir=$HOME/include --enable-libfaac --enable-libx264 --enable-libxvid \ | |
--enable-nonfree --enable-gpl --enable-libmp3lame --enable-pthreads --enable-libvpx \ | |
--enable-libvorbis --disable-mmx --enable-shared --enable-libtheora --enable-librtmp \ | |
--pkg-config=pkg-config --enable-version3 --enable-pic \ | |
--extra-cflags="-I$HOME/include" --extra-ldflags="-L$HOME/lib" | |
make # 6.25 min | |
make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment