You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
FrameTimeCode should be identic to itself when applying the resulting values to create a new FrameTimeCode #268
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:
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.
Activity
Breakthrough commentedon Apr 20, 2022
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!
[FrameTimecode] Change to use rounding instead of truncation. #268
Breakthrough commentedon Apr 20, 2022
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:
Wirg commentedon Apr 21, 2022
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.
Breakthrough commentedon Apr 27, 2022
This is now available in the latest release of v0.6 (v0.6-rc0), feel free to give it a try!
[docs] Update known issues for v0.5. #268