cvQueryFrame returns corrupted frames from video--plays fine on WMP (Bug #1059)
Description
OpenCV2.2 Windows 7, Qt, 64 bits build with VC2010 PRO.
Frames are saved to a .avi file using 'DIB '. The avi file plays fine using Windows Media Player, but appear left shifted by about 1/4 frame and colors are messed up when played using textbook example code:
cvNamedWindow( "Example2", CV_WINDOW_AUTOSIZE );
CvCapture* capture = cvCreateFileCapture( "c:\\flyball_passes\\Dog3.avi" );
IplImage* frame;
while(1) {
frame = cvQueryFrame( capture );
if( !frame ) break;
cvShowImage( "Example2", frame );
char c = cvWaitKey();
if( c == 27 ) break;
}
cvReleaseCapture( &capture );
cvDestroyWindow( "Example2" );
return 0;
A sample avi file is attached.
Associated revisions
Merge pull request #1059 from dominikrose:dc1394_2-1394b
History
Updated by Dave Thomas almost 14 years ago
the "starter_video" example shows the same issue. File plays, but left shifted and color corrupted.
Updated by Vadim Pisarevsky almost 14 years ago
is it possible to upload the video somewhere?
Updated by Francesco Leotta almost 14 years ago
Problem confirmed on OpenCV 2.2, Windows 7, No QT, 64 bits build with VC2010 PRO. I've uploaded an example video that can be downloaded from my Dropbox public folder at http://dl.dropbox.com/u/5460464/left.avi.
Updated by Francesco Leotta over 13 years ago
Problem appears to be solved on SVN Revision 5505
Updated by Vadim Pisarevsky over 13 years ago
great! then I'm closing the ticket. Reopen if the problem arises again.
- (deleted custom field) set to fixed
Updated by Andrey Kamaev over 12 years ago
- Category changed from highgui-images to highgui-video