FFMPEG - Compiling with Cygwin Window

You need the following to compile FFMPEG on window. Cygwin seems to be an easier choice than MingW

1. Install your Cygwin with all the "Base" packages, plus the following "Devel" ones: binutils, gcc4-core, make, subversion, mingw-runtime, texi2html, diffutils

2. Load Cygwin and navigate to the ffmpeg source

3. type dos2unix configure to convert the file to dos compatible text

4. Type make distclean to clean the past distribution if any

5. Then run ./configure --enable-static --disable-shared to make a static build.

5. The current gcc4-core package is buggy and needs this flag to build shared libraries: ./configure --enable-shared --disable-static --extra-cflags=-fno-reorder-functions

6. Then perform make and make install

7. You should have all your builds at \Cygwin\usr\local folder

Alternatively, you can download nightly build from http://ffmpeg.arrozcru.org/autobuilds/

Comments

  1. Great article. Can this procedure be used to build for Android as well? Thanks.

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. Very Nice Article, exactly to the point, i was thinking it is going to be very challenging task - but it worked correctly in first go itself with these instructions, thanks!

    Also want to know if there is similar link to understand the interfaces between component involved, and learn ffmpeg in more depth.

    ReplyDelete
  4. There is quite a few on my FFMPEG label on commands

    http://thompsonng.blogspot.com/search/label/FFMPEG

    This tutorial not too bad too

    http://dranger.com/ffmpeg/ffmpeg.html

    ReplyDelete

Post a Comment

Popular Posts