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 -0500

shiv.butekar gravatar image

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

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 -0500

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 -0500 )edit
Login/Signup to Answer

Question Tools

Stats

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

Seen: 6,570 times

Last updated: Feb 17 '14