# SHORT DESC: Audio/Video Conversion Tool # LONG DESC: FFmpeg is a complete solution to record, convert and stream audio and video. It includes libavcodec, the leading audio/video codec library. FFmpeg is developed under Linux, but it can compiled under most operating systems, including Windows. This version has been patched to support Dirac (dirac.sf.net). This package also includes "ffplay" to play supported media files. # COMPILE REQUIREMENT: a52dec # COMPILE REQUIREMENT: faad2 # COMPILE REQUIREMENT: faac # COMPILE REQUIREMENT: xvidcore # COMPILE REQUIREMENT: lame # COMPILE REQUIREMENT: x264 # COMPILE REQUIREMENT: schroedinger if [ "`uname -m`" = "x86_64" -a "${pkgver}" = "20061105" ]; then sed 's@ARCH_X86@__NOT_DEFINED__@g' libavcodec/liba52/resample.c > __new_resample.c cat __new_resample.c > libavcodec/liba52/resample.c rm __new_resample.c fi for opts in {--enable-nonfree,}_{--enable-postproc,--enable-pp}_{--enable-libmp3lame,}_{--enable-libvorbis,}_{--enable-libx264,--enable-x264,}_{--enable-libschroedinger,--enable-dirac,--enable-libdirac,}_{--enable-memalign-hack,}_{--enable-libfaad,}_{--enable-libfaac,}_{--enable-liba52,}_{--enable-libogg,}_{--enable-libxvid,--enable-xvid,}; do opts=`echo $opts | sed 's@__*@ @g'` echo ./configure --prefix=/usr --libdir="$libdir" --shlibdir="$libdir" --disable-debug --enable-gpl --enable-shared ${opts} ./configure --prefix=/usr --libdir="$libdir" --shlibdir="$libdir" --disable-debug --enable-gpl --enable-shared ${opts} || continue touch CONFIGURE_WORKED break done if [ ! -f CONFIGURE_WORKED ]; then echo 'Could not find working set of configure options, aborting.' exit 1 fi # Build make || exit 1 # Install make install || exit 1 # Sanity check ls -l "$libdir"/libavformat.so "$libdir"/libavcodec.so || exit 1 |