Imported Debian version 2.5.3~trusty1
[deb_ffmpeg.git] / scripts / ffmpeg-config
1 #!/bin/sh
2 set -e
3
4 BUILD="$(pwd)"
5
6 if test -f "$BUILD"/ffmpeg_options ; then
7 USER_OPTS=$(cat "$BUILD"/ffmpeg_options)
8 fi
9 OPTIONS=" --prefix=/opt/ffmpeg --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libpulse --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb $USER_OPTS"
10
11 # optional flags for encoding
12 OPTIONS="$OPTIONS --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvo-aacenc --enable-libvidstab"
13
14 echo Using ffmpeg options: $OPTIONS
15
16 mkdir -p "$BUILD"/ffmpeg_build
17 cd "$BUILD"/ffmpeg_build
18 "$BUILD"/ffmpeg/configure --extra-libs="-ldl" $OPTIONS