Ask Your Question

Revision history [back]

Saving a Video with OpenCV from webcam without showing video on monitor

I have a video reader and writer that is from this tutorial. I would like to be able to save the video without imshow() because when the camera is running there will not be a monitor attached to the computer. When I run the code with imshow commented out it does not save the video. The file that is "saves" to says "this file contains no playable streams. When I run the code with imshow() not commented out it works perfectly. Any suggestions on how to save a video input from a camera when there is not a monitor to use imshow with?