ffmpeg won't build with --enable-libopencv for opencv-2.2 because of the changed opencv structure. The problem is the second include in libavfilter/vf_libopencv.c : #include <opencv/cxtypes.h> just delete it. Don't know if ffmpeg would still build with opencv < 2.2. sean