【发布时间】:2016-12-05 08:43:41
【问题描述】:
我在尝试在 opencv 中读取 .yuv 视频文件时遇到了一个特殊问题。我的代码如下:
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/opencv.hpp>
using namespace cv;
using namespace std;
int main( void )
{
VideoCapture cap("video/balloons1.yuv"); // open the video file for reading
if ( !cap.isOpened() ) // if not success, exit program
{
cout << "Cannot open the video file" << endl;
return -1;
}
return 0;
}
我已按照以下网站的说明安装了 FFMPEG:http://www.wikihow.com/Install-FFmpeg-on-Windows,并且安装似乎是正确的。有没有人知道问题可能是什么?
【问题讨论】:
标签: visual-studio-2010 opencv ffmpeg