[Ffmpeg-devel] Re: FFMPEG on Windows

Falconetti Gabor falconettig
Sat Aug 27 18:44:21 CEST 2005

Hi everyone! 
Thank you Martin for your help. I compiled and used ffmpeg on msvc at last.
Here is how I done it:
Install Msys, MinGW. Put ffmpeg in Msys root directory. Cut and paste the
commands from the vcvars32.bat into autoexec.bat. On NT systems alter the
path,lib, include variable. Reboot. Open Msys shell. 
Issue the following commands:
if it has some output then the next is:

 ./configure --enable-shared
If everything goes well start msvc. New project: Console application.
Cut and paste the code from Martin Boehmes demo. In Project ->Settings-> Link
put at the end avcodec.lib avformat.lib.
Put all the h files from ffmpeg in your working directory (or alter the
directory settings)
Put avcodec.lib and avformat.lib in the compiler lib directory.
If you put all the h files in your working directory then 
write this at the start of the demo:
#include "avcodec.h"
#include "avformat.h"

Start building and the compiler will cry for inttypes.h.

Put this in common.h or write some preprocessor constants in Project->Settings
#ifndef COMMON_H
#define COMMON_H
#define CONFIG_WIN32

Copy avformat and avcodec.dll and some video in the same directory where your
demo resides.

demo.exe Craddleoflife.avi
That's it.

More information about the ffmpeg-devel mailing list