6 FFMPEG/avformat options:
8 --avformat-cvs - Obtain ffmpeg from CVS
9 --avformat-shared=path - Link against a shared installation of ffmpeg (default)
10 --avformat-static=path - Link against a static ffmpeg dev tree
11 --avformat-ldextra=libs - Provide additional libs to link with
19 export shared_ffmpeg=`whereis ffmpeg | cut -f 2 -d' '`
23 if [ "$shared_ffmpeg" != "" ]
26 shared_ffmpeg=`dirname $shared_ffmpeg`
28 shared_ffmpeg=`dirname $shared_ffmpeg`
34 --avformat-static=* ) static_ffmpeg="${i#--avformat-static=}" ;;
35 --avformat-shared=* ) shared_ffmpeg="${i#--avformat-shared=}" ;;
36 --avformat-ldextra=* ) extra_libs="${i#--avformat-ldextra=}" ;;
37 --avformat-cvs ) cvs_ffmpeg=true ;;
41 if [ "$cvs_ffmpeg" != "" ]
43 [ ! -d "ffmpeg" ] && cvs -z9 -d:pserver:anonymous@mplayerhq.hu:/cvsroot/ffmpeg co ffmpeg
44 [ -d "ffmpeg" ] && ( cd ffmpeg ; cvs -z9 update -PdA ; ./configure )
45 echo "CFLAGS+=-I`pwd`/ffmpeg/libavformat -I`pwd`/ffmpeg/libavcodec" >> config.mak
46 echo "LDFLAGS+=-L`pwd`/ffmpeg/libavformat -L`pwd`/ffmpeg/libavcodec" >> config.mak
47 echo "LOCAL_FFMPEG=1" >> config.mak
48 extra_libs="$extra_libs -lz"
49 elif [ "$static_ffmpeg" != "" ]
51 if [ -d "$static_ffmpeg" ]
53 echo "CFLAGS+=-I$static_ffmpeg/libavformat -I$static_ffmpeg/libavcodec" >> config.mak
54 echo "LDFLAGS+=-L$static_ffmpeg/libavformat -L$static_ffmpeg/libavcodec" >> config.mak
56 echo "avformat: Invalid path specified: $static_ffmpeg"
57 touch ../disable-avformat
61 if [ -d "$shared_ffmpeg/include/ffmpeg" -a -f "$shared_ffmpeg/lib/libavformat.so" ]
63 echo "CFLAGS+=-I$shared_ffmpeg/include/ffmpeg " >> config.mak
64 echo "LDFLAGS+=-L$shared_ffmpeg" >> config.mak
66 echo "avformat: No build environment found. "
67 echo " Try configuring mlt with --avformat-cvs."
68 touch ../disable-avformat
73 echo "EXTRA_LIBS=$extra_libs" >> config.mak
75 cat << EOF >> ../producers.dat
76 avformat libmltavformat.so
79 cat << EOF >> ../filters.dat
80 avdeinterlace libmltavformat.so
81 avresample libmltavformat.so
84 cat << EOF >> ../consumers.dat
85 avformat libmltavformat.so