Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NEW] Timestamp annotation for videos #357

Open
gsvidaurre opened this issue Dec 20, 2022 · 2 comments
Open

[NEW] Timestamp annotation for videos #357

gsvidaurre opened this issue Dec 20, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@gsvidaurre
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
I want to be able to troubleshoot the timing of video recording for the pre-motion and post-motion videos. One way to do this is to add the timestamps to each frame.

Describe the solution you'd like
I’d like to add timestamps to each frame of each video with millisecond resolution.

Describe alternatives you've considered
I’d be ok with resolution in seconds if milliseconds proves tricky.

Additional context
The pi camera documentation has information about how to add timestamps with resolution in seconds. I’m not sure if milliseconds will be possible. I’m also not sure why 0.2 seconds was chosen for wait_recording(), and how this affects the resolution of the timestamps. Also, I’m not sure whether this solution will fail for the pre-motion video captured by the stream.

See this issue about hard coding timestamps in picamera, as well as this post about an alternative solution for streaming video

@lastralab
Copy link
Owner

Anticipating a bigger size for the video files if they start to include timestamps, I propose to include time in the file names as a plan B:
Box_00_2022-12-30_13-32-33_pre.mp4
Box_00_2022-12-30_13-32-38_post.mp4

Looking at the documentation and proposed sources I think this will not be an easy task, so maybe we should consider it for the last phase

@gsvidaurre

@gsvidaurre
Copy link
Collaborator Author

This plan sounds good to me, let's give it a try after other more pressing issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants