I'm working with OpenCV in C. I intend to run a video on a window (and image process the frames a little before displaying them with an algorithm I made). However the following line:
CvCapture* capture = cvCreateFileCapture("eve.avi");
Gives me the error:
OpenCV Error: Bad flag (parameter or structure field) (Unrecognized or unsupported
array type) in cvGetMat, file /build/buildd/opencv-2.3.1/modules/core/src/array.cpp,
line 2482 terminate called after throwing an instance of 'cv::Exception'
what(): /build/buildd/opencv-2.3.1/modules/core/src/array.cpp:2482: error: (-206)
Unrecognized or unsupported array type in function cvGetMat
I have tried various .avi files i found lying around and all produce this. Using Ubuntu 12.10.