I have developed an application using wxWidgets and OpenCV 2.4.8. I am simply loading avi files from the disk using VideoCapture. The application works perfectly fine on the machine it is developed on. But when run on a different machine, cap.open(fileName) return false as seen in the code snippet below. Does anyone have an idea what might be the problem here?
bool Data::loadVideoFile(const char *fileName)
{
VideoCapture cap;
if ( !cap.open(fileName) ) // if not success, return false
{
return false;
}
else
{
return true;
}
}