Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Problem with reading video file opencv 3.1

Hi All,

I just recently installed opencv3.1 and i wanted to read a video file. Everything seem fine to as i have used code before. Please anyone look at this:

VideoCapture capture;

while (1) {
    capture.open("C:/Users/hp/Documents/motionTrackingTutorial/bouncingBall.avi");

    if (!capture.isOpened()) {
        cout << "ERROR ACQUIRING VIDEO FEED\n";
        getchar();
        return -1;
    }

          // ...............other code are implemented here
    }

The video file is not read as "ERROR ACQUIRING VIDEO FEED" is been displayed. Please can anyone help.