--avformat-static=path - Link against a static ffmpeg dev tree
--avformat-ldextra=libs - Provide additional libs to link with
--avformat-suffix=suff - Specify a custom suffix for an ffmpeg shared build
+ --avformat-swscale - Use ffmpeg libswcale instead of img_convert
EOF
export extra_libs=
export svn_ffmpeg=
export avformat_suffix=
+ export swscale=
if [ "$shared_ffmpeg" != "" -a -f "$shared_ffmpeg" ]
then
--avformat-svn ) svn_ffmpeg=true ;;
--avformat-cvs ) svn_ffmpeg=true ;;
--avformat-suffix=* ) avformat_suffix="${i#--avformat-suffix=}" ;;
+ --avformat-swscale ) swscale=true ;;
esac
done
echo "LDFLAGS+=-L$static_ffmpeg/libavformat -L$static_ffmpeg/libavcodec -L$static_ffmpeg/libavutil" >> config.mak
[ $targetos = "Darwin" ] &&
echo "LDFLAGS+=-single_module" >> config.mak
+ if [ "$swscale" != "" ]
+ then
+ echo "CFLAGS+=-I$static_ffmpeg/libswscale" >> config.mak
+ echo "LDFLAGS+=-L$static_ffmpeg/libswscale" >> config.mak
+ echo "SWSCALE=1" >> config.mak
+ fi
else
echo "avformat: Invalid path specified: $static_ffmpeg"
touch ../disable-avformat
then
echo "CFLAGS+=-I$shared_ffmpeg/include/ffmpeg " >> config.mak
echo "LDFLAGS+=-L$shared_ffmpeg/$LIBDIR" >> config.mak
+ [ "$swscale" != "" ] && echo "SWSCALE=1" >> config.mak
else
echo "avformat: No build environment found. "
echo " Try configuring mlt with --avformat-svn."