Last active
December 31, 2015 17:19
-
-
Save hatsch/8019623 to your computer and use it in GitHub Desktop.
make ffmpeg debian packages for 12.04
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
#!/bin/bash | |
sudo apt-get remove ffmpeg x264 libav-tools libvpx-dev libx264-dev | |
sudo apt-get autoremove | |
sudo apt-get update | |
sudo apt-get -y install autoconf build-essential checkinstall git libgpac-dev \ | |
libjack-jackd2-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev \ | |
librtmp-dev libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev \ | |
libx11-dev libxfixes-dev pkg-config texi2html yasm zlib1g-dev gawk | |
mkdir ~/src/ffmpeg -p | |
cd ~/src/ffmpeg | |
mkdir bin | |
git clone --depth 1 git://git.videolan.org/x264 | |
cd x264 | |
./configure --enable-static --disable-opencl --disable-avs --disable-cli --disable-ffms --disable-gpac --disable-lavf --disable-swscale | |
make -j5 | |
sudo checkinstall --pkgname=x264 --pkgversion="3:$(./version.sh | \ awk -F'[" ]' '/POINT/{print $4"+git"$5}')" --backup=no --deldoc=yes \ --fstrans=no --default | |
mv *deb ../bin | |
#=== fdk-aac ===#fdk-aac | |
cd ~/src/ffmpeg | |
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 | |
mv *deb ../bin | |
#=== libvpx ===#libvpx | |
cd ~/src/ffmpeg | |
git clone --depth 1 http://git.chromium.org/webm/libvpx.git | |
cd libvpx | |
./configure | |
make | |
sudo checkinstall --pkgname=libvpx --pkgversion="1:$(date +%Y%m%d%H%M)-git" --backup=no \ | |
--deldoc=yes --fstrans=no --default | |
mv *deb ../bin | |
#FFMPEG | |
cd ~/src/ffmpeg | |
git clone --depth 1 git://source.ffmpeg.org/ffmpeg | |
cd ffmpeg | |
./configure --enable-gpl --enable-libfaac --enable-libfdk-aac --enable-libmp3lame \ | |
--enable-librtmp --enable-libtheora \ | |
--enable-libvorbis --enable-libvpx --enable-x11grab --enable-libx264 --enable-nonfree \ | |
--enable-version3 | |
make -j5 | |
sudo checkinstall --pkgname=ffmpeg --pkgversion="5:$(date +%Y%m%d%H%M)-git" --backup=no \ | |
--deldoc=yes --fstrans=no --default | |
hash x264 ffmpeg ffplay ffprobe | |
mv *deb ../bin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment