7 FFMPEG/avformat options:
9 --avformat-cvs - Obtain ffmpeg from CVS
10 --avformat-shared=path - Link against a shared installation of ffmpeg (default)
11 --avformat-static=path - Link against a static ffmpeg dev tree
12 --avformat-ldextra=libs - Provide additional libs to link with
32 export shared_ffmpeg=`whereis ffmpeg | cut -f 2 -d' '`
36 if [ "$shared_ffmpeg" != "" ]
39 shared_ffmpeg=`dirname $shared_ffmpeg`
41 shared_ffmpeg=`dirname $shared_ffmpeg`
47 --avformat-static=* ) static_ffmpeg="${i#--avformat-static=}" ;;
48 --avformat-shared=* ) shared_ffmpeg="${i#--avformat-shared=}" ;;
49 --avformat-ldextra=* ) extra_libs="${i#--avformat-ldextra=}" ;;
50 --avformat-cvs ) cvs_ffmpeg=true ;;
54 if [ "$cvs_ffmpeg" != "" ]
56 [ ! -d "ffmpeg" ] && cvs -z9 -d:pserver:anonymous@mplayerhq.hu:/cvsroot/ffmpeg co ffmpeg
57 [ -d "ffmpeg" ] && ( cd ffmpeg ; ./configure --enable-shared )
58 #[ ! -f "ffmpeg/ffmpeg.patch" ] && ( cd ffmpeg ; cp ../ffmpeg.patch . ; patch -p0 < ffmpeg.patch )
59 echo "CFLAGS+=-I`pwd`/ffmpeg/libavformat -I`pwd`/ffmpeg/libavcodec" >> config.mak
60 echo "LOCAL_FFMPEG=1" >> config.mak
61 extra_libs="$extra_libs -lz"
62 elif [ "$static_ffmpeg" != "" ]
64 if [ -d "$static_ffmpeg" ]
66 echo "CFLAGS+=-I$static_ffmpeg/libavformat -I$static_ffmpeg/libavcodec" >> config.mak
67 echo "LDFLAGS+=-L$static_ffmpeg/libavformat -L$static_ffmpeg/libavcodec" >> config.mak
68 [ $targetos = "Darwin" ] &&
69 echo "LDFLAGS+=-single_module" >> config.mak
71 echo "avformat: Invalid path specified: $static_ffmpeg"
72 touch ../disable-avformat
76 if [ -d "$shared_ffmpeg/include/ffmpeg" -a -f "$shared_ffmpeg/lib/libavformat.so" ]
78 echo "CFLAGS+=-I$shared_ffmpeg/include/ffmpeg " >> config.mak
79 echo "LDFLAGS+=-L$shared_ffmpeg/lib" >> config.mak
81 echo "avformat: No build environment found. "
82 echo " Try configuring mlt with --avformat-cvs."
83 touch ../disable-avformat
88 echo "EXTRA_LIBS=$extra_libs" >> config.mak
90 cat << EOF >> ../producers.dat
91 avformat libmltavformat$LIBSUF
94 cat << EOF >> ../filters.dat
95 avdeinterlace libmltavformat$LIBSUF
96 avresample libmltavformat$LIBSUF
97 avcolour_space libmltavformat$LIBSUF
100 cat << EOF >> ../consumers.dat
101 avformat libmltavformat$LIBSUF