Problem reading .AVI file when migrating from openCV 2.1 to openCV2.4.1 (Bug #2115)
I am migrating an video application from OpenCv2.1 to 2.4.1. While opening and querying a capture opened with cvCaptureFromFile in 2.1 works well, the same program crashes when linked against 2.4.1 on windows XP.
I've tracked the problem down to CvCapture_FFMPEG_proxy::retrieveFrame, were see and assignment error icvRetrieveFrame_FFMPEG_p(ffmpegCapture, &data,...) when called on the first frame.
I'm having the same problem. It seems to be a problem of the video size or even more an issue of the frame size.
I tried an uncompressed 8bit grayscale avi with 640x680, 39fps, 19frames ->works well.
But the cvRetrieveFrame_FFMPEG_p() is throwing an unhanded exception by using an uncompressed 8bit grayscale avi with 1920x1080, 25fps, 500frames.
By the way I'm using VC10 and x64.
I'm encoutering the same problem with OpenCV 2.4.4 (actually with OpenCV 2.4.2 too).
I could read a raw avi without problem with OpenCV 2.1 (features example of file: codecs: rawvideo, bgr24, 1920x1080, bitrate: 1000865 kb/s, duration 21 seconds). But now with the new version, as soon as I put the first frame of my VideoCapture in a Mat, it throws me an access violation exception, coming from mlock.c file.
I have no problem with xvid avi file for example.