Write video without calling release

asked 2019-10-24 03:29:09 -0500

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?

edit retag flag offensive close merge delete

Comments

Are you using for pc or ARM7 or later?

supra56 gravatar imagesupra56 ( 2019-10-26 08:36:00 -0500 )edit

I'm using Raspberry Pi 3B+ which as an ARMV8-A CPU.

Zana Zakaryaie Nejad gravatar imageZana Zakaryaie Nejad ( 2019-10-26 09:18:34 -0500 )edit