Repository navigation
fix(animation): inkstats final hold from index.json t1 (#4594) - #4965
Merged
Merged
Conversation
inkstats timed a rotoscope work dir's last drawing as one frame after its start. Use d/index.json t1 (duration) so the final hold, duration, per_second, and on-1s/2s/3s mix match extract.py. Co-authored-by: Kyle Sexton <[email protected]>
Contributor
|
PR body contract — issue linkage This PR body does not yet satisfy the issue-linkage contract:
Edit the body and this comment updates itself on the next run. |
Co-authored-by: Kyle Sexton <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
inkstats: count a rotoscope work dir's last hold from index.json
inkstats.pyalready times intermediate drawings of a rotoscope work dir from consecutived/index.jsonstart times. After the last drawing it treated the film like a frame folder andended one frame later (
t + 1/fps).extract.pystores that last drawing's real end ast1(and
duration): the median hold, or the clip end for a lone drawing. The tail was thereforecounted as on-1s, which undercounted duration,
per_second, the on-1s/2s/3s mix, andoffstep.A video still uses
decode.end; a frame folder still ends one frame after the lastfNNNN.png.--tstill clips the sentinel to the window end.Animation plugin
0.1.0→0.1.1.Closes #4594
Test plan
python3 -m pytest -q plugins/animation/scripts/test_inkstats.py -v(4 passed)t1is 4 frames, not 1duration--twindow clips the tailscripts/run-ruff.sh check plugins/animation/scripts/inkstats.py plugins/animation/scripts/test_inkstats.py