Write video without calling release

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

Zana Zakaryaie Nejad gravatar image

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


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

Used delay for timer.sleep. I merely used picamera.

supra56 gravatar imagesupra56 ( 2020-02-06 07:45:26 -0500 )edit

How did you get 64bit on RPI 3?The arm_64bit=1 doesn't work.

supra56 gravatar imagesupra56 ( 2020-04-12 21:18:33 -0500 )edit