Compile and Build FFMPEG on Windows Platform

Google Buzz

Installing FFMPEG from the source in window platform is easy as you do for other window application. Here is the complete instructios how to build FFMPEG in windows. To install FFMPEG on windows you need to install third party MinGW and MSys library that is compatible with GCC. This library is required to build ffmpeg in windows and support shell to run commands.

Download MinGW and MSys

MinGW: MinGW Direct download link
MSys: MSys Direct download link
SF Link: Sourceforge MinGW MSys Package Download Page
FFMPEG: FFMPEG Download fully patched version

ffmpeg mingw msys compile build

Building FFMPEG

It is time to install ffmpeg. Extract downloaded ffmpeg archive in c: folder. If you have not downloaded yet please download now then run MSys.bat file from C:\msys\1.0\ folder. This location will be depend on you MinGW and MSys installation. In the command prompt run the following commands:

$ cd c:/ffmpeg-0.4.7

$ ./configure –extra-cflags=”-mno-cygwin -mms-bitfields” –extra-ldflags=”-Wl,–add-stdcall-alias” –enable-mingw32 –enable-shared –disable-a52 –disable-pp –disable-ffserver –disable-ffplay
$ make


Read Related Post

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

AddThis Social Bookmark Button

6 Responses to “Compile and Build FFMPEG on Windows Platform”

  1. Hello sir, i was looking at how you did to install ffmpeg. it goes fine until the last point.

    $ gcc -mno-cygwin -mms-bitfields -Wall -g -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSE
    T_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o common.o common.c
    gcc.exe: common.c: No such file or directory
    gcc.exe: no input files

    when i type the above code it cannot find gcc and i have tested gcc in command prompt.it is there.Can you please clear out my doubts.I am very new to programming.Have been tryng real hard to get ffmpeg installed since 24 hours already…
    Thank you!

  2. ohh..im so sorry.silly me!! i didnt notice that what i typed at the end was infact displayed. Just to be sure can u please clear out my doubt whether the last step was indeed make.

    One more thing, how will i get to execute ffmpeg for conversions? most of the codes i came across through have used something like “c:/ffmpeg.exe” how will i knw the path to mine,since i don’t find it in my drive..

    A quick reply will be very appreciated.

  3. Hi how do i verify the ffMPEG is created successfully? I am getting an error

    make[1]: *** [libavcodec.so] Error 1
    make[1]: Leaving directory `/e/ffmpeg-047/libavcodec’
    make: *** [lib] Error 2

    and I dont see anywher ffMPEG.exe or .dll created. Can you please help.

    Thank you

  4. Did your MingW and MSys package were installed successfully?

  5. Hi
    I have followed the steps you have mentioned. But on compilation i get an error as follows.

    liba52/a52.h: No such file or directory
    etc

    Could you please point to the location where i can find this file.

    Thanks in advance
    Santosh

  6. hi i am converting audio file through ffmpeg.exe.

    i am facing the path problem if in path there is space then it is not able to read it.

    ex:- D:\Project\WebSites\audioduration2\videos\org video\a.wmv

    its showing error like that:

    FFmpeg version SVN-r10461, Copyright (c) 2000-2007 Fabrice Bellard, et al. configuration: –enable-memalign-hack –enable-libamr-nb –enable-libamr-wb –enable-libfaac –enable-libgsm –enable-libmp3lame –enable-libogg –enable-libtheora –enable-libvorbis –enable-shared –disable-static –enable-liba52 –enable-libx264 –enable-libxvid –enable-libfaad –enable-swscaler –enable-gpl –enable-avisynth –cpu=i686 –enable-pthreads libavutil version: 49.5.0 libavcodec version: 51.43.0 libavformat version: 51.12.2 built on Sep 11 2007 01:30:32, gcc: 4.2.1-sjlj (mingw32-2) D:\Project\WebSites\audioduration2\videos\org: no such file or directory

Leave a Reply