I am encountering a particular problem while attempting to read a .yuv video file in opencv. My code is as follows:
#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;
}
However, I keep encountering the following error:
I have installed FFMPEG following the instructions from this website: http://www.wikihow.com/Install-FFmpeg-on-Windows and the installation seems to be correct. Does anyone have any ideas of what the problem might be?