I'm trying to read an avi file in OpenCV 2.1, VS2008 standard for 2 days now with no luck. I constantly get this message in the program console:
Compiler did not align stack variables. Libavcodec has been miscompiled and may be very slow or crash. This is not a bug in libavcodec, but in the compiler. You may try recompiling using gcc >= 4.2. Do not report crashes to FFmpeg developers.
..and the framerate all I get is a 0.5fps playback. I tried with various AVI and MPEG files, still with the same results. Also, the included examples using the webcam are extremely slow. I did not have such problems when using OpenCV 1.1
Things I already tried to resolve this issue:
- Re-compiled the whole library
- Updated the library from SVN and re-compiled
- Tried various version of libavcodec.a file
The code I'm using to read the file is looks like this:
CvCapture* input_video = cvCreateFileCapture("c:\\data\test.avi");
// ...
while (true) {
// ...
frame = cvQueryFrame( input_video );
cvShowImage("test", frame);
// ...
}
Can anyone help me? This is driving me nuts :(