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.
Is this working with FFMpeg 0.10 and Git "Trunk"? Some functions used by OpenCV seemed to have been removed lately (they were already deprecated I believe)?
ReplyDeleteWhich version did you use?
Ok. It builds with FFMpeg 0.10. It fails with the "master" Git. They have removed some functions (for example av_open_input_file) from the API.
ReplyDeleteMy last successful build and integration was done on ffmpeg 0.8.9 release. What I did was I pulled in related ffmpeg, highgui changes from OpenCV 2.3.1. OpenCV 2.3.1 release has support for ffmpeg 0.8.x, according to their changelog. After that I just follow the steps above to build ffmpeg 0.8.9 and integrate to OpenCV.
ReplyDeleteHolly cow... you linked my site... now I real need to keep the URLs permanent...
ReplyDeleteOr let me know whenever you decide to change the url. Thanks again!
Delete