Created
June 25, 2015 09:25
-
-
Save t-cyrill/93be6c2a01a50c4bbbac to your computer and use it in GitHub Desktop.
Setup ffmpeg
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 | |
apt-get update | |
apt-get -y install autoconf automake build-essential libass-dev libfreetype6-dev libgpac-dev \ | |
libtheora-dev libtool libvorbis-dev pkg-config texi2html zlib1g-dev | |
apt-get install -y yasm | |
## install lame | |
apt-get install -y libmp3lame-dev | |
apt-get install -y unzip |
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 | |
FFMPEG_DEST="$HOME/bin" | |
FFMPEG_ROOT="$HOME/ffmpeg" | |
FFMPEG_BUILD="$FFMPEG_ROOT/ffmpeg_build" | |
FFMPEG_SOURCE="$FFMPEG_ROOT/ffmpeg_source" | |
## build libfdk-aac | |
mkdir -p $FFMPEG_SOURCE | |
cd $FFMPEG_SOURCE | |
wget -O fdk-aac.zip https://github.com/mstorsjo/fdk-aac/zipball/master | |
unzip fdk-aac.zip | |
cd mstorsjo-fdk-aac* | |
autoreconf -fiv | |
./configure --prefix="$FFMPEG_BUILD" --disable-shared | |
make | |
make install | |
make distclean | |
## build ffmpeg | |
cd $FFMPEG_SOURCE | |
wget http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 | |
tar xjvf ffmpeg-snapshot.tar.bz2 | |
cd ffmpeg | |
PATH="$FFMPEG_DEST:$PATH" PKG_CONFIG_PATH="$FFMPEG_BUILD/lib/pkgconfig" ./configure \ | |
--prefix="$FFMPEG_BUILD" \ | |
--extra-cflags="-I$FFMPEG_BUILD/include" \ | |
--extra-ldflags="-L$FFMPEG_BUILD/lib" \ | |
--bindir="$FFMPEG_DEST" \ | |
--enable-gpl \ | |
--enable-libass \ | |
--enable-libfdk-aac \ | |
--enable-libmp3lame \ | |
--enable-libtheora \ | |
--enable-libvorbis \ | |
--enable-nonfree | |
PATH="$FFMPEG_DEST:$PATH" make | |
make install | |
make distclean | |
hash -r |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment