Skip to content

Example: capture_video_timer#1092

Open
mbauer575 wants to merge 1 commit intoraspberrypi:nextfrom
mbauer575:next
Open

Example: capture_video_timer#1092
mbauer575 wants to merge 1 commit intoraspberrypi:nextfrom
mbauer575:next

Conversation

@mbauer575
Copy link
Copy Markdown

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:

  1. Modify the start_time and duration variables in the script to set the desired start time and recording duration.
  2. Run the script using python capture_video_timer.py

…me and duration for a video capture.

Max Bauer bauermax@oregonstate.edu
@davidplowman
Copy link
Copy Markdown
Collaborator

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants