Try to read AVI file
I try to open an AVI file. The return of the open method is false, although the file exists.
Here below the snippet code. Any idea, suggestion is welcome.
#include "opencv2/opencv.hpp"
using namespace cv;
using namespace std;
int main(int argc , char* argv []) {
VideoCapture cap(0);
bool ok = cap.open (argv [1]);
if (ok == false) {
cout << "Problem when opening file." << endl;
return -1;
}
return(0);
}