Ask Your Question
0

please help me warning: Error opening file (/home/vaibhav/opencv/modules/highgui/src/cap_ffmpeg_impl.hpp:553)

asked 2014-02-14 02:49:52 -0600

shiv.butekar gravatar image

updated 2014-02-14 02:56:31 -0600

i am using opencv to display a video my code is as #include<opencv2 highgui="" highgui_c.h=""> #include <cv.h> #include <opencv cv.hpp=""> #include <opencv2 opencv.hpp=""> #include <cvaux.h> #include <cxcore.h> #include <stdio.h> #include <highgui.h> #include <stdlib.h> #include <opencv2 core="" core.hpp=""> #include <opencv2 highgui="" highgui.hpp=""> #include <iostream>

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

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-02-17 01:28:48 -0600

prakharmohan gravatar image

You need to install the ffmpeg codec on your system. You can find it here

On installation and inclusion it should work.

edit flag offensive delete link more

Comments

I have a similar problem Error opening file (/build/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:578) I have installed the ffmpeg codec but still this error is occurring.

anshul gravatar imageanshul ( 2016-05-20 05:43:00 -0600 )edit

Question Tools

Stats

Asked: 2014-02-14 02:49:52 -0600

Seen: 8,195 times

Last updated: Feb 17 '14