diff options
author | wm4 <wm4@nowhere> | 2013-07-09 02:04:27 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-07-09 02:04:27 +0200 |
commit | 8e59c9125bc0b1fd2701da8a651a7046806bb8eb (patch) | |
tree | 06aa5fe0b58936cbb6687e6e7cdab0d4ed193dc8 /scripts | |
parent | f0ece66673274f3e42ce3d8237b082b8f09976cd (diff) | |
download | mpv-build-8e59c9125bc0b1fd2701da8a651a7046806bb8eb.tar.bz2 mpv-build-8e59c9125bc0b1fd2701da8a651a7046806bb8eb.tar.xz |
Slightly better way to allow custom ffmpeg configuration
This read options from a file named ffmpeg_options and passes them to
ffmpeg's configure.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/ffmpeg-config | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/ffmpeg-config b/scripts/ffmpeg-config index 2e2bfc7..2213171 100755 --- a/scripts/ffmpeg-config +++ b/scripts/ffmpeg-config @@ -1,14 +1,20 @@ #!/bin/sh set -e -OPTIONS="--enable-gpl --enable-avresample --disable-debug --disable-doc" +BUILD="$(pwd)" + +if test -f "$BUILD"/ffmpeg_options ; then + USER_OPTS=$(cat "$BUILD"/ffmpeg_options) +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" -BUILD="$(pwd)" +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 |