{endcode} Be sure to also include links to download the file and to the slides. + + +{section: Building ffmpeg} + +Stock ffmpeg installs may not have functionality you require. The following, derived from https://trac.ffmpeg.org/wiki/CompilationGuide/Centos worked on a CSL RHEL 6 computer as of October 2014. + +{code} +DST=/afs/cs.wisc.edu/u/a/d/adesmet/bin/opt/ffmpeg-git-20140805 +PATH=$DST/bin:$PATH + +mkdir ffmpeg-install +cd ffmpeg-install + +curl -O http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz +tar xzvf yasm-1.2.0.tar.gz +pushd yasm-1.2.0 +./configure --prefix=$DST +make && make install && make distclean +popd + +git clone --depth 1 git://git.videolan.org/x264 +pushd x264 +./configure --prefix=$DST --enable-static +make && make install && make distclean +popd + +git clone --depth 1 git://git.code.sf.net/p/opencore-amr/fdk-aac +pushd fdk-aac +autoreconf -fiv +./configure --prefix=$DST --disable-shared +make && make install && make distclean +popd + +curl -L -O http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.5.tar.gz +tar xzvf lame-3.99.5.tar.gz +pushd lame-3.99.5 +./configure --prefix=$DST --disable-shared --enable-nasm +make && make install && make distclean +popd + +curl -O http://downloads.xiph.org/releases/opus/opus-1.1.tar.gz +tar xzvf opus-1.1.tar.gz +pushd opus-1.1 +./configure --prefix=$DST --disable-shared +make && make install && make distclean +popd + +curl -O http://downloads.xiph.org/releases/ogg/libogg-1.3.1.tar.gz +tar xzvf libogg-1.3.1.tar.gz +pushd libogg-1.3.1 +./configure --prefix=$DST --disable-shared +make && make install && make distclean +popd + +curl -O http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.4.tar.gz +tar xzvf libvorbis-1.3.4.tar.gz +pushd libvorbis-1.3.4 +./configure --prefix=$DST --with-ogg=$DST --disable-shared +make && make install && make distclean +popd + +git clone --depth 1 https://chromium.googlesource.com/webm/libvpx.git +pushd libvpx +./configure --prefix=$DST --disable-examples +make && make install && make distclean +popd + + +git clone --depth 1 git://source.ffmpeg.org/ffmpeg +pushd ffmpeg +PKG_CONFIG_PATH="$DST/lib/pkgconfig" +export PKG_CONFIG_PATH +./configure --prefix=$DST --extra-cflags="-I$DST/include" --extra-ldflags="-L$DST/lib" --extra-libs=-ldl --enable-gpl --enable-nonfree --enable-libfdk_aac --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 +make && make install && make distclean +popd + +# Excluded: +# --enable-libass - subtitles +# --enable-libfaac - AAC, dupe of libfdk_aac +{endcode}