-
Notifications
You must be signed in to change notification settings - Fork 388
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
FrameTimeCode should be identic to itself when applying the resulting values to create a new FrameTimeCode #268
Comments
Hey @Wirg; Thanks for looking into this. It looks like some of the existing test cases are failing after your change (probably just a few off-by-one errors now), so will need to see why that is before merging #269 (thanks for the PR as well). I'm not sure if this should be taken for v0.5 or not, as this could possibly be a breaking change, but I'd be happy to consider it for v0.6. I ended up doing a similar workaround in v0.6 for the PyAV backend, so I think your change is correct. Truthfully it's been quite a few years since I've touched FrameTimecode, so I can't really remember the intent behind these test cases you pointed out: PySceneDetect/tests/test_frame_timecode.py Lines 114 to 116 in f6c61dd
I may mark this as a known issue for v0.5, but bring your change in for v0.6. Thanks for the report! |
Reformat test cases using autoformatter. Thanks @Wirg for finding this and suggesting a solution.
I've accepted your suggested solution for v0.6 (c5ac42b) and it will be included in the next beta release, as well as v0.6. I'm reluctant to merge this fix into v0.5 as it may constitute a breaking change for some existing applications. TODO before closing this issue:
|
Thanks for the fast answer! I think it's ok for me, I agree with your reasoning. I may try the v0.6 branch then. |
This is now available in the latest release of v0.6 (v0.6-rc0), feel free to give it a try! |
Hi !
Thank you for PySceneDetect.
I ran into issues where after some serialization the resulting time frame was not the expected one.
For example:
I found the corresponding code with flooring (with
int
instead ofround
) :PySceneDetect/scenedetect/frame_timecode.py
Lines 227 to 236 in f6c61dd
PySceneDetect/scenedetect/frame_timecode.py
Line 307 in f6c61dd
I ran into the following code which seems to indicate this is on purpose. What is the reason?
PySceneDetect/tests/test_frame_timecode.py
Lines 114 to 116 in f6c61dd
Have a nice day !
The text was updated successfully, but these errors were encountered: