We build FFmpeg under windows8 and VS2010.

Step 1)
Download mingw and install it (choose C, C++, MSYS Basic System, MinGW Developer Toolkit.)
Run minGW shell and type the following commands 
"mingw-get install zlib"
"mingw-get install libz-dev"

Step 2)
a) Download FFMpeg distribution and extract it ie C:\ffmpeg\ (http://www.ffmpeg.org/releases/)
b) Download c99-to-c89 compiler and extract it at C:\ffmpeg\ (c99-to-c89-1.0.1.zip from http://download.videolan.org/pub/contri ... 0.1/win32/)
c) Download yasm-1.2.0-win32 and extract it at C:\yasm\ 
d) Download msinttypes and extract it a C:\ffmpeg\ (https://msinttypes.googlecode.com/files ... es-r26.zip)

Step 3)
a) Open up visual studio 2010 developer console Developer command prompt for VS10 ) and Navigate to c:\MinGW\msys\1.0>
b) Run msys.bat from here.

Step 4)
Change our current home directory to ffmpeg ie "cd C:/ffmpeg"

Step 5) 
Rename mingw link.exe to avoid conflict with MS link.exe with "mv /bin/link.exe /bin/mingw_link.exe". 

Step 6) 
Extend default path with the command "export PATH=$PATH:C:/ffmpeg"

Step 7)
a) ./configure --prefix=ffmpeg/ --yasmexe='C:/yasm/yasm-1.2.0-win32.exe' --cpu=i686 --toolchain=msvc --enable-shared --enable-pthreads --enable-memalign-hack --disable-everything --enable-parser=aac --enable-parser=h264 --enable-parser=mpegvideo --enable-parser=mpeg4video --enable-parser=mpegaudio --enable-demuxer=aac --enable-demuxer=mpegts --enable-demuxer=mpegtsraw --enable-demuxer=asf --enable-demuxer=h264 --enable-demuxer=mpegvideo --enable-demuxer=m4v --enable-demuxer=mov --enable-demuxer=flv --enable-demuxer=mpegps --enable-decoder=aac  --enable-decoder=c93 --enable-decoder=h264 --disable-debug --enable-protocol=file --enable-small 
b) make
c) make install


Step 7)
We use C:\ffmpeg\ffmpeg\bin\avcodec-56.dll C:\ffmpeg\ffmpeg\bin\avformat-56.dll C:\ffmpeg\ffmpeg\bin\swscale-3.dll
