-
-
Save xiopt/872533e3fa0712a20f4eadda3cf5c6b5 to your computer and use it in GitHub Desktop.
Build ffmpeg and all needed codecs from latest git revisions
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 | |
sudo apt-get update | |
sudo apt-get -y install autoconf automake build-essential git libass-dev libfaac-dev libgpac-dev libmp3lame-dev libopus-dev libtheora-dev libtool libvorbis-dev libvpx-dev pkg-config texi2html yasm zlib1g-dev | |
# YASM | |
wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz | |
tar xf yasm-1.2.0.tar.gz | |
cd yasm-1.2.0 | |
./configure | |
make | |
make install | |
cd .. | |
# x264 | |
git clone --depth 1 git://git.videolan.org/x264.git | |
cd x264 | |
./configure --prefix="$HOME/ffmpeg_build" --bindir="/usr/bin" --enable-static | |
make | |
make install | |
cd .. | |
# fdk-aac | |
git clone --depth 1 git://github.com/mstorsjo/fdk-aac.git | |
cd fdk-aac | |
autoreconf -fiv | |
./configure --prefix="$HOME/ffmpeg_build" --disable-shared | |
make | |
make install | |
cd .. | |
# ffmpeg | |
git clone --depth 1 git://source.ffmpeg.org/ffmpeg | |
cd ffmpeg | |
./configure --prefix="$HOME/ffmpeg_build" --extra-cflags="-I$HOME/ffmpeg_build/include" \ | |
--extra-ldflags="-L$HOME/ffmpeg_build/lib" --bindir="/usr/bin" --enable-gpl --enable-libass \ | |
--enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libtheora \ | |
--enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree | |
make | |
make install | |
cd .. |
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
wget https://gist.github.com/iJackUA/5582974/raw/b3dd91aa0c2fab4b5a8eda70f09d1d23bae6cd75/ffmpeg_build.sh | |
chmod a+x ffmpeg_build.sh | |
./ffmpeg_build.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment