Ask Your Question

Revision history [back]

cannot use opencv to play video, illegal instruction(core dumped)?

Hello, everyone! I cannot use opencv to play video, illegal instruction(core dumped) when I test the second program of learning opencv early release edition. trying to play avi video, nothing happens!

the code like this

include "opencv2/highgui/highgui.hpp"

include "opencv2/imgproc/imgproc.hpp"

using namespace cv; using namespace std;

int main( int argc, char** argv ) { cv::namedWindow( "Example3", cv::WINDOW_AUTOSIZE ); cv::VideoCapture cap; cap.open( string(argv[1]) ); cv::Mat frame; while( 1 ) { cap >> frame; if( !frame.data ) break; // Ran out of film cv::imshow( "Example3", frame ); if( cv::waitKey(33) >= 0 ) break; } return 0; }

when I try to play bike.avi, nothing happens! What's the matter?

cannot use opencv to play video, illegal instruction(core dumped)?

Hello, everyone! I cannot use opencv to play video, illegal instruction(core dumped) when I test the second program of learning opencv early release edition. trying to play avi video, nothing happens!

the code like this

include "opencv2/highgui/highgui.hpp"

include "opencv2/imgproc/imgproc.hpp"

#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"

using namespace cv;
using namespace std;

std; int main( int argc, char** argv ) { cv::namedWindow( "Example3", cv::WINDOW_AUTOSIZE ); cv::VideoCapture cap; cap.open( string(argv[1]) ); cv::Mat frame; while( 1 ) { cap >> frame; if( !frame.data ) break; // Ran out of film cv::imshow( "Example3", frame ); if( cv::waitKey(33) >= 0 ) break; } return 0; }

}

when I try to play bike.avi, nothing happens! What's the matter?