Ask Your Question

Revision history [back]

Write video without calling release

Hi. I want to write video from a webcam until the last frame that the webcam is plugged in. Currently, every 5 minutes, I write a video and release it. The problem is that if the user unplugg the webcam before reaching the end of the minute 5 ( say at the third minute) no video is saved because the "release" method is not called. So I miss that 3 minutes. Isn't there any solution to guarantee the saving of the video up to the last frames?