Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

In this line simply change deviceID to the name of your video file. Make sure it is in the same folder as the .exe file!

VideoCapture cap(deviceId); to VideoCapture cap("filename.avi");

In this line simply change deviceID to the name of your video file. Make sure it is in the same folder as the .exe file!

VideoCapture cap(deviceId); cap(deviceId);

to

to

VideoCapture cap("filename.avi");

In this line simply change deviceID to the name of your video file. Make sure it is in the same folder as the .exe file!

VideoCapture cap(deviceId);

to

VideoCapture cap("filename.avi");

There are many tutorials out there which explain this also!