Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Ok, I think I understand the problem. The processing of creating and writing the video is taking longer. Why? Not sure.

What you can do to help is change the value in waitKey. If you call waitKey(1), you will still see the frame on the screen, but it won't block the CPU from processing the next frame. As it is, the program is waiting at waitKey and not reading the next frame, resulting in the skips you see.