i am using opencv to display a video my code is as #include #include #include #include #include #include #include #include #include #include #include #include
using namespace cv; int main( int argc, char * argv ) { CvCapture capture; cvNamedWindow( "video", CV_WINDOW_AUTOSIZE ); capture = cvCreateFileCapture("/home/vaibhav/program/c/w.avi"); IplImage* frame; while(1){ frame = cvQueryFrame( capture ); if( !frame ) break; cvShowImage( "video", frame ); char c = cvWaitKey(33); if( c == 27 ) break; }
cvReleaseCapture( &capture );
cvDestroyWindow( "Webcam" );
return 0; }
the program compiles but it give error when try to run it
i am using ubuntu 12.04 and eclipse
warning: Error opening file (/home/vaibhav/opencv/modules/highgui/src/cap_ffmpeg_impl.hpp:553)
please help me