Reputation: 308
I am trying to open .mpg video in OPencv3.0.0 in Ubuntu14.04 for my project.
ERROR icvOpenAVI_XINE(): Unable to initialize video driver.
Cannot open video!
I have added snippet of code for reference.
VideoCapture cap("umcp.mpg");
if (!cap.isOpened()){
std::cout << "Cannot open video!\n";
return -1;
}
Please help me !!!
Upvotes: 2
Views: 2133
Reputation: 61
Try installing the package libxine2 by using the following command:
$ sudo apt-get install libxine2
Upvotes: 4