-
Notifications
You must be signed in to change notification settings - Fork 364
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
Extend image_name_template to allow timestamp #394
Labels
Milestone
Comments
Thank you for the suggestion and PR,. Note that I will likely rename the variable to I'd also like to add |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem/Use Case
The current implementation for image_name_template allows four placeholders (of which FRAME_NUMBER is not described in the documentation).
In our use case, we would like to use the image timstamp in the filename, to be able to directly match the image with the right location in the video. Specifically, we would like to use the timestamp as in milliseconds from start, so we can use integers to refer to them.
Proposed Implementation:
In terms of implementation, it is pretty trivial to add this option just by adding
FRAME_TIMESTAMP_MS = int(image_timecode.get_seconds()*1000)
. (usingFrameTimeCode.get_seconds
)To enable users to use this, all that needs to be done is extend the documentation specifying
$FRAME_TIMESTAMP_MS
as one of the template options.The text was updated successfully, but these errors were encountered: