How can I save a video for a length of time?
I have a video stream going, and object detection. If I detect an object, I want to stop detecting, save video for N seconds. I wrote a function, but its not right. After naming the file based on date and time, I'm not sure what to do. There is only 1 camera, and I am working on a linux system.
Should I close the existing video stream, then open another and save video for N seconds?
If I interrupt the video stream, I will get quality issues related to exposure, in the first few frames. Exposure settings are not supported on my camera in openCV.
I tried appending a stream and also tried saving a separate stream concurrently, but both resulted in problems.
Is there a preferred method to save parts of a video stream without interrupting the stream? if there is, can i get an example of that?