Open mbauer575 opened 3 months ago
Hi, and thanks for posting this!
Looks good, I guess the main question I had was about the use of threads. Obviously threads can be essential, particularly in more complex applications, though in this case everything could have been run just in Python's main thread. Do you think the threads are adding something in this case? Also (sorry for the nit pick!), I wonder whether the bits of code that start threads should be "joining" them at the end, maybe this would be a bit tidier?
This PR adds a new example script capture_video_timer.py that demonstrates how to capture video for a specific duration starting at a specific time using the picamera2 library. The script includes logging and error handling to ensure smooth operation.
Usage:
python capture_video_timer.py