Skip to content

Instantly share code, notes, and snippets.

@happypeter
Last active December 17, 2015 08:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save happypeter/5581441 to your computer and use it in GitHub Desktop.
Save happypeter/5581441 to your computer and use it in GitHub Desktop.
install the ffmpeg that actually works
# tested on ubuntu1204
# http://askubuntu.com/questions/148554/installingffmpeg-libx264-and-libavfilter
# remove the packages in the repo
sudo apt-get remove ffmpeg x264 libx264-dev
sudo apt-get update
# make sure this is successfully installed
apt-get install libfaac-dev
sudo apt-get -y install build-essential checkinstall git libfaac-dev libgpac-dev \
libjack-jackd2-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev \
libsdl1.2-dev libtheora-dev libva-dev libvdpau-dev libvorbis-dev libx11-dev \
libxfixes-dev texi2html yasm zlib1g-dev
# Then, for x264:
cd
git clone git://git.videolan.org/x264
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
# And for FFmpeg:
cd
git clone --depth 1 git://source.ffmpeg.org/ffmpeg
cd ffmpeg
./configure --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb \
--enable-libopencore-amrwb --enable-libtheora --enable-libvorbis \
--enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab
make
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
#That's it — filters should be automatically included.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment