Imported Debian version 2.5.0~trusty1.1
[deb_ffmpeg.git] / scripts / ffmpeg-config
CommitLineData
2ba45a60
DM
1#!/bin/sh
2set -e
3
4BUILD="$(pwd)"
5
6if test -f "$BUILD"/ffmpeg_options ; then
7 USER_OPTS=$(cat "$BUILD"/ffmpeg_options)
8fi
f6fa7814 9OPTIONS=" --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"
2ba45a60
DM
10
11# optional flags for encoding
f6fa7814 12OPTIONS="$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 "
2ba45a60
DM
13
14echo Using ffmpeg options: $OPTIONS
15
16mkdir -p "$BUILD"/ffmpeg_build
17cd "$BUILD"/ffmpeg_build
18"$BUILD"/ffmpeg/configure --extra-libs="-ldl" $OPTIONS