6 FFMPEG/avformat options:
8 --avformat-shared=path - Link against a shared installation of ffmpeg (default)
9 --avformat-static=path - Link against a static ffmpeg dev tree
10 --avformat-ldextra=libs - Provide additional libs to link with
18 export shared_ffmpeg=`whereis ffmpeg | cut -f 2 -d' '`
21 if [ "$shared_ffmpeg" != "" ]
24 shared_ffmpeg=`dirname $shared_ffmpeg`
26 shared_ffmpeg=`dirname $shared_ffmpeg`
32 --avformat-static=* ) static_ffmpeg="${i#--avformat-static=}" ;;
33 --avformat-shared=* ) shared_ffmpeg="${i#--avformat-shared=}" ;;
34 --avformat-ldextra=* ) extra_libs="${i#--avformat-ldextra=}" ;;
38 if [ "$static_ffmpeg" != "" ]
40 if [ -d "$static_ffmpeg" ]
42 echo "CFLAGS+=-I$static_ffmpeg/libavformat -I$static_ffmpeg/libavcodec" >> config.mak
43 echo "LDFLAGS+=-L$static_ffmpeg/libavformat -L$static_ffmpeg/libavcodec" >> config.mak
45 echo "avformat: Invalid path specified: $static_ffmpeg"
46 touch ../disable-avformat
50 if [ -d "$shared_ffmpeg/include/ffmpeg" -a -f "$shared_ffmpeg/lib/libavformat.so" ]
52 echo "CFLAGS+=-I$shared_ffmpeg/include/ffmpeg " >> config.mak
53 echo "LDFLAGS+=-L$shared_ffmpeg" >> config.mak
55 echo "avformat: No build environment found."
56 touch ../disable-avformat
61 echo "EXTRA_LIBS=$extra_libs" >> config.mak
63 cat << EOF >> ../producers.dat
64 avformat libmltavformat.so
67 cat << EOF >> ../filters.dat
68 avdeinterlace libmltavformat.so
69 avresample libmltavformat.so
72 cat << EOF >> ../consumers.dat
73 avformat libmltavformat.so