summaryrefslogtreecommitdiffstats
path: root/scripts/ffmpeg-config
blob: 57f2bd16484c3785d1edb3339ef1665cd31505cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
set -e

BUILD="$(pwd)"

USER_OPTS="$@"
if test -f "$BUILD"/ffmpeg_options ; then
    USER_OPTS="$(cat "$BUILD"/ffmpeg_options) $USER_OPTS"
fi
OPTIONS="--enable-gpl --enable-avresample --disable-debug --disable-doc $USER_OPTS"

# optional flags for encoding (uncomment if you want to support these encoders)
#OPTIONS="$OPTIONS --enable-libx264"
#OPTIONS="$OPTIONS --enable-libmp3lame"
#OPTIONS="$OPTIONS --enable-nonfree --enable-libfdk-aac"

echo Using ffmpeg options: $OPTIONS

mkdir -p "$BUILD"/ffmpeg_build
cd "$BUILD"/ffmpeg_build
"$BUILD"/ffmpeg/configure --prefix="$BUILD"/build_libs --enable-static --disable-shared $OPTIONS