-
Notifications
You must be signed in to change notification settings - Fork 396
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 #395
Extend image_name_template to allow timestamp #395
Conversation
I see in your PR you've already used the Thank you for the PR! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR, please address the following so this can be landed:
- Rebase ontop of the
develop
branch - Ensure the code is formatted correctly:
python -m yapf -i -r scenedetect tests
Thanks for replying so fast, even though my PR was still a draft. I'll make sure to address the issues you mentioned, hopefully later today. |
…ithub.com:Veldhoen/PySceneDetect into 394-extend-image-name-template-to-allow-timestamp
Rebased on Documentation still needs to be updated to explain these extensions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the test_save_images
test is failing on Windows, will approve once fixed. Thank you!
scenedetect/scene_manager.py
Outdated
IMAGE_NUMBER=image_num_format % (j + 1), | ||
FRAME_NUMBER=image_timecode.get_frames(), | ||
TIMESTAMP_MS=int(image_timecode.get_seconds() * 1000), | ||
TIMECODE=image_timecode.get_timecode()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Timecodes need to be formatted specially as not all operating systems support :
in paths. Please replace them with ;
as is done when splitting videos:
TIMECODE=image_timecode.get_timecode().replace(":", ";")
This is most likely why test_save_images
is failing on the Windows build currently.
I applied the requested changes, and extended docstring. Hope this will do! |
Much appreciated, approved. Thank you for the PR! |
@Breakthrough When do you plan to release 0.6.4? I created a pre-release of my fork to be able to use the functionality right away, but I'd like to use a proper release at some point, of course. |
I'm hoping to wrap up the next release by the end of this month. If for whatever reason you need this sooner in production, I can consider pushing a pre-release to PyPI. |
If you can make it by the end of this month, that would be great. Until then we'll be fine with my ad hoc pre-release. Thanks! |
@Breakthrough do you have any updates concerning the release of 0.6.4? Would be much appreciated :) |
All feature work is complete, just finishing up testing and preparing the release. The new version should be out within a day or two. |
Fixes #394