build_ffmpeg.sh 834 Bytes
Newer Older
1
2
3
4
#!/bin/sh
. ./ffmpegrev


Jan Gerber's avatar
Jan Gerber committed
5
common="--enable-gpl --enable-postproc --disable-muxers --disable-encoders --enable-libvorbis"
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
common="$common --disable-avconv --disable-ffmpeg --disable-ffplay --disable-ffserver --disable-ffprobe --disable-doc"

#optional, if you have those libs installed(requires GPL3):
#extra="$extra --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb"

#apt-get install liba52-dev libgsm1-dev
#extra="$extra  --enable-libgsm"

#optional, if you have libvpx installed:
#extra="$extra --enable-libvpx"

#linux
options="$common --enable-pthreads $extra"

#mingw32
uname | grep MINGW && options="$common --enable-memalign-hack --enable-mingw32 --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib $extra"

#configure and build ffmpeg
cd $FFMPEG_CO_DIR && ./configure $options && make