int main()
{
cvNamedWindow( "Example2", CV_WINDOW_AUTOSIZE );
CvCapture* capture = cvCaptureFromAVI( "a.avi" );
IplImage* frame;
if(!capture)
{
printf("fail");
}
else
{
while(1)
{
frame = cvQueryFrame( capture );
cvShowImage( "Example2", frame );
char c = cvWaitKey(40);
if( c == 27 ) break;
}
cvReleaseCapture( &capture );
cvDestroyWindow( "Example2" );
}
return 0;
}
the frame rate of the video i tried with open cv is 29 frames/s and frame width is 720 and height is 480 the format of the video is DX50 with avi wrapper
the blank window is showed named example2 which goes away...
the problem is cvcapturefromavi does return the pointer thats why fail is not printed
operating system window 7