get_ffmpeg_svn.sh 853 Bytes
Newer Older
1
#!/bin/sh
2

3
#optional, if you have those libs installed:
Jan Gerber's avatar
Jan Gerber committed
4
#apt-get install libamrnb-dev libamrwb-dev
Jan Gerber's avatar
Jan Gerber committed
5
#extra=" --enable-amr_nb --enable-amr_nb-fixed --enable-amr_wb --enable-amr_if2"
6

Jan Gerber's avatar
Jan Gerber committed
7
#apt-get install liba52-dev libfaad-dev libgsm1-dev
Jan Gerber's avatar
Jan Gerber committed
8
#extra=" --enable-libfaad --enable-libgsm"
Jan Gerber's avatar
Jan Gerber committed
9

10
common="--enable-gpl --enable-swscale --enable-postproc --disable-encoders --enable-libvorbis"
11
12
13
14
15
16
17

#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"

18
19
20
21
22
# load FFMPEG specific properties
. ./ffmpegrev

#Get ffmpeg from svn
svn -r $FFMPEG_REVISION co $FFMPEG_SVN $FFMPEG_CO_DIR
23
svn update -r $FFMPEG_EXTERNALS_REVISION $FFMPEG_CO_DIR/libswscale
24
25

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