Could there be an error in OpenCV2.4 highgui for capturing frames from video in Windows?
I installed both pre-compiled libraries and those compiled by me, I can completely compile everything, and I can run my programs if
they are based on images. The problem is only in the video . OpenCV always fires in this function:
virtual IplImage* retrieveFrame(int)
{
unsigned char* data = 0;
int step=0, width=0, height=0, cn=0;
if(!ffmpegCapture ||
!icvRetrieveFrame_FFMPEG_p(ffmpegCapture,&data,&step,&width,&height,&cn)) <-------CRASHES HERE
return 0;
cvInitImageHeader(&frame, cvSize(width, height), 8, cn);
cvSetData(&frame, data, step);
return &frame;
}
This is inside the cap_ffmpeg.cpp class and called by VideoCapture .
I tried versions 2.4.2 and 2.4.9. My programs worked with opencv2
Additional Information
, , , avi ?