Building FFmpeg on Windows

First, get the latest source from http://www.ffmpeg.org/download.html and extract it in a convenient place, then configure it:

$ LDFLAGS=-L/c/met.no/lib CPPFLAGS=-I/c/met.no/include \
./configure --prefix=/c/met.no \
--disable-ffmpeg --disable-ffplay --disable-ffserver \
--enable-memalign-hack

Note that we've tried to trim it down a bit by disabling bits we don't need.

You can safely ignore the pr: command not found messages.

Build and install the libraries:

$ make all install-libraries

Now we need to fix up the headers so they look like they do on Hardy:

$ make INCINSTDIR=/c/met.no/include/ffmpeg install-headers
$ cd /c/met.no/include
$ for hdr in ffmpeg/*.h ; do \
echo $hdr ; \
sed -e '/^#include/s@"libav[a-z]*/@"@' <$hdr >$hdr- && mv $hdr- $hdr ; \
done

The INCINSTDIR bit forces ffmpeg to install its headers in /c/met.no/include/ffmpeg instead of separate directories for each library (/c/met.no/include/libavformat, /c/met.no/include/libavutil etc.), and the sed command edits them so they can still find each other when installed in a non-standard location.