I’m trying to make a capture from a file in OpenCV, but I keep getting NULL pointers. My guess is that opencv is not configured to use ffmpeg, when installed through Yast, but I don’t know how to check this.
(I have tried building ffmpeg and opencv myself, that was a 2 day traumatic experience, to say the least)
Yes, that’s what I’ve been afraid of. I’ve been trying to build openCV with ffmpeg support for 3 days now.
First I have to hack the configure.in script to let it detect the ffmpeg libs, together with the appropriate include flags.
Then I have to hack the Makefile.am to change install-hook into install-exec-hook.
The libtool they generate complains about:
I’ve looked into libtool and there are some hardcode config options, but I have no idea what to do with them.
Building the latest TESTED svn snapshot, with CMake, yields compilation errors. These are not overcome by adding ‘#define __STDC_CONSTANT_MACROS’ as mentioned elsewhere.
So I’ve also tried to post the above to the openCV mailinglist, but the owner has to approve and I don’t know if he still has to look at my message (sent it yesterday afternoon), or that he rejected it…
Well, I changed my mind. OpenCV 1.0 is available for openSUSE 11.1 at home:RedDwarf:multimedia with this configuration:
General configuration ================================================
CXXFLAGS: -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fno-strict-aliasing
Install path: /usr
HighGUI configuration ================================================
Windowing system --------------
Use Carbon / Mac OS X: no
Use gtk+ 2.x: yes
Use gthread: yes
Image I/O ---------------------
Use libjpeg: yes
Use zlib: yes
Use libpng: yes
Use libtiff: yes
Use libjasper: yes
Use libIlmImf: yes
Video I/O ---------------------
Use QuickTime / Mac OS X: no
Use xine: yes
Use ffmpeg: yes
Use dc1394 & raw1394: yes
Use v4l: yes
Use v4l2: yes
Wrappers for other languages =========================================
Additional build settings ============================================
Build demo apps yes
Isn’t the best package that could be, and don’t expect me to mantain it, but it should work.