Imported Debian version 2.4.3~trusty1
[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
9OPTIONS=" --prefix=/opt/ffmpeg --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-x11grab --enable-libpulse --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb $USER_OPTS"
10
11# optional flags for encoding
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 "
13
14echo Using ffmpeg options: $OPTIONS
15
16mkdir -p "$BUILD"/ffmpeg_build
17cd "$BUILD"/ffmpeg_build
18"$BUILD"/ffmpeg/configure --extra-libs="-ldl" $OPTIONS