Created
August 19, 2016 04:53
-
-
Save whywaita/72f9ba66fbafbf612dc74352ae5fadf6 to your computer and use it in GitHub Desktop.
ffmpeg install (include x264) , you should non-free
This file contains hidden or 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 | |
# ref: http://takuya-1st.hatenablog.jp/entry/20120225/1330184067 | |
##uninstall | |
sudo apt-get remove ffmpeg x264 libx264-dev -y | |
## install build-tools and library | |
sudo apt-get update | |
sudo apt-get install -y build-essential checkinstall git libfaac-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 | |
#install 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 | |
#install 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-postproc --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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment