Windows下如何编译ffmpeg
(Extracted from FFmpeg Documentation)
Install the current versions of MSYS and MinGW from http://www.mingw.org/. You can find detailed installation instructions in the download section and the FAQ.
If you want to test the FFmpeg Simple Media Player, also download the MinGW development library of SDL 1.2.x (`SDL-devel-1.2.x-mingw32.tar.gz') from http://www.libsdl.org. Unpack it in a temporary place, and unpack the archive `i386-mingw32msvc.tar.gz' in the MinGW tool directory. Edit the `sdl-config' script so that it gives the correct SDL directory when invoked.
Extract the current version of FFmpeg (the latest release version or the current CVS snapshot whichever is recommended).
Start the MSYS shell (file `msys.bat').
Change to the FFMPEG directory and follow the instructions of how to compile ffmpeg (file `INSTALL'). Usually, launching `./configure' and `make' suffices. If you have problems using SDL, verify that `sdl-config' can be launched from the MSYS command line.
You can install FFmpeg in `Program Files/FFmpeg' by typing `make install'. Don't forget to copy `SDL.dll' at the place you launch `ffplay'.