-
-
Save cthurston/08f3c6f0bedf49bdfe7a942f6543faca to your computer and use it in GitHub Desktop.
Build FFMPEG, x264 and FDK-AAC
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
sudo apt-get remove ffmpeg x264 libav-tools libvpx-dev libx264-dev yasm | |
sudo apt-get update | |
sudo apt-get -y install autoconf automake build-essential checkinstall git libass-dev \ | |
libgpac-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libspeex-dev \ | |
libtheora-dev libtool libvorbis-dev pkg-config texi2html zlib1g-dev | |
cd | |
wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz | |
tar xzvf yasm-1.2.0.tar.gz | |
cd yasm-1.2.0 | |
./configure | |
make | |
sudo checkinstall --pkgname=yasm --pkgversion="1.2.0" --backup=no \ | |
--deldoc=yes --fstrans=no --default | |
cd | |
git clone --depth 1 git://git.videolan.org/x264.git | |
cd x264 | |
./configure --enable-static | |
make | |
sudo checkinstall --pkgname=x264 --pkgversion="3:$(./version.sh | \ | |
awk -F'[" ]' '/POINT/{print $4"+git"$5}')" --backup=no --deldoc=yes \ | |
--fstrans=no --default | |
cd | |
git clone --depth 1 git://github.com/mstorsjo/fdk-aac.git | |
cd fdk-aac | |
autoreconf -fiv | |
./configure --disable-shared | |
make | |
sudo checkinstall --pkgname=fdk-aac --pkgversion="$(date +%Y%m%d%H%M)-git" --backup=no \ | |
--deldoc=yes --fstrans=no --default | |
cd | |
git clone --depth 1 git://source.ffmpeg.org/ffmpeg | |
cd ffmpeg | |
./configure --extra-libs="-ldl" --enable-gpl --enable-libass --enable-libfdk-aac --enable-libmp3lame \ | |
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libspeex --enable-libtheora --enable-libvorbis \ | |
--enable-libx264 --enable-nonfree --enable-version3 | |
make | |
sudo checkinstall --pkgname=ffmpeg --pkgversion="7:$(date +%Y%m%d%H%M)-git" --backup=no \ | |
--deldoc=yes --fstrans=no --default | |
hash -r | |
mkdir ffmbc | |
cd ffmbc | |
wget nerdsonstandby.com/dwnlds/ffmbc-0.7_0.7-rc7-1_amd64.deb | |
sudo dpkg -i ffmbc-0.7_0.7-rc7-1_amd64.deb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment