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 -D "10/11/2004 20:30 CET" ffmpeg
44 [ -d "ffmpeg" ] && ( cd ffmpeg ; ./configure )
45 #[ ! -f "ffmpeg/ffmpeg.patch" ] && ( cd ffmpeg ; cp ../ffmpeg.patch . ; patch -p0 < ffmpeg.patch )
46 echo "CFLAGS+=-I`pwd`/ffmpeg/libavformat -I`pwd`/ffmpeg/libavcodec" >> config.mak
47 echo "LDFLAGS+=-L`pwd`/ffmpeg/libavformat -L`pwd`/ffmpeg/libavcodec" >> config.mak
48 echo "LOCAL_FFMPEG=1" >> config.mak
49 extra_libs="$extra_libs -lz"
50 elif [ "$static_ffmpeg" != "" ]
52 if [ -d "$static_ffmpeg" ]
54 echo "CFLAGS+=-I$static_ffmpeg/libavformat -I$static_ffmpeg/libavcodec" >> config.mak
55 echo "LDFLAGS+=-L$static_ffmpeg/libavformat -L$static_ffmpeg/libavcodec" >> config.mak
57 echo "avformat: Invalid path specified: $static_ffmpeg"
58 touch ../disable-avformat
62 if [ -d "$shared_ffmpeg/include/ffmpeg" -a -f "$shared_ffmpeg/lib/libavformat.so" ]
64 echo "CFLAGS+=-I$shared_ffmpeg/include/ffmpeg " >> config.mak
65 echo "LDFLAGS+=-L$shared_ffmpeg/lib" >> config.mak
67 echo "avformat: No build environment found. "
68 echo " Try configuring mlt with --avformat-cvs."
69 touch ../disable-avformat
74 echo "EXTRA_LIBS=$extra_libs" >> config.mak
76 cat << EOF >> ../producers.dat
77 avformat libmltavformat.so
80 cat << EOF >> ../filters.dat
81 avdeinterlace libmltavformat.so
82 avresample libmltavformat.so
83 avcolour_space libmltavformat.so
86 cat << EOF >> ../consumers.dat
87 avformat libmltavformat.so