Hello! I am using the rgb_encoding.py example to record and convert a video. However, I need to interrupt the recording based on a condition. I have a function that checks if a traffic light is red or not. I need a separate file for each duration of the red. What would be the best way to achieve this?
Thanks! Mladen