FFMPEG Build
Replace opencv_ffmpeg.dll
- Install MinGW/MSys (32-bit) with the installer. Note: there is a separate open-source project that's called mingw-w64.
- Install extra packages with mingw-get. Browse through the MinGW sourceforge site for suitable ones.
- Download ffmpeg source release from http://ffmpeg.org
- Download and install pr.exe from MinGW snapshots.
http://creekcodes.blogspot.com/2011/02/msys-pr-not-found.html - Download pkg-config release binaries and depending libraries
http://www.rioki.org/2011/02/16/pkg-config-minimal-fuss.html - Run ffmpeg 'configure' with minimal options: --enable-gpl --enable-version3 --arch=x86 --enable-runtime-cpudetect --enable-w32threads --enable-memalign-hack --disable-avfilter --disable-postproc
- Enable console messages by removing all references to -mwindows in config.mak, that is created by configure script.
http://web.archiveorange.com/archive/v/4q4BhzhM6T9fRaCQN2qg - Run make and make install
Replace opencv_ffmpeg.dll
- Follow instructions at opencv/3rdparty/ffmpeg/readme.txt
- uses 'strip -g' (important to strip only debug symbols) to reduce size of ffmpeg core libraries
- copy the difference in header file also, if any.