Skip to content

Time warp fixes: Trim-to-fill and Reverse#54

Merged
jminor merged 10 commits intoOpenTimelineIO:mainfrom
jminor:time-warp-fixes
Mar 13, 2025
Merged

Time warp fixes: Trim-to-fill and Reverse#54
jminor merged 10 commits intoOpenTimelineIO:mainfrom
jminor:time-warp-fixes

Conversation

@jminor
Copy link
Copy Markdown
Member

@jminor jminor commented Dec 12, 2024

Fixes jminor/otio-time-warp-test-suite#2

This PR attempts to fix the AAF->OTIO conversion of trim-to-fill time warp effects. Previously, they were translated as generic TimeEffects without any information (just a dump of AAF metadata). Now they are detected as LinearTimeWarp effects and a time_scalar is computed from keyframes and/or SpeedRatio.

Note, this PR is a draft. Further unit tests need to be added to verify correct behavior.

Also note that I did this work on top of @markreidvfx 's #44 but I believe this PR could be separated from that one, since the change is unrelated.

@jminor jminor force-pushed the time-warp-fixes branch 3 times, most recently from d988f32 to f564c70 Compare December 18, 2024 08:00
@jminor
Copy link
Copy Markdown
Member Author

jminor commented Dec 18, 2024

I have rebased this onto the main branch instead of Mark's PR so we have the option of landing this before or after that.

I have added a unit test which checks the time warp effect type and linear time_scale value. Currently several of the time scale values are incorrect & need to be investigated in more detail.

jminor and others added 3 commits January 29, 2025 10:23
Signed-off-by: Joshua Minor <joshm@pixar.com>
Signed-off-by: Joshua Minor <joshm@pixar.com>
Signed-off-by: Joshua Minor <joshm@pixar.com>
jminor and others added 2 commits January 30, 2025 10:05
Signed-off-by: Joshua Minor <joshm@pixar.com>
…as well as

extends the transcribe_linear_time_warp function to better handle reverse time
effects.
…as well as

extends the transcribe_linear_time_warp function to better handle
reverse time
effects.

Co-authored-by: Kathryn Miller <kathrynm@pixar.com>
@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla bot commented Feb 26, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

@jminor jminor force-pushed the time-warp-fixes branch from aa2c646 to dc9397b Compare March 8, 2025 01:59
Signed-off-by: Joshua Minor <joshm@pixar.com>
@jminor jminor marked this pull request as ready for review March 8, 2025 02:12
Signed-off-by: Joshua Minor <joshm@pixar.com>
@jminor
Copy link
Copy Markdown
Member Author

jminor commented Mar 8, 2025

This PR now includes work from @kathryn184 which fixes reverse time warps also :) That should fix jminor/otio-time-warp-test-suite#1

@jminor jminor changed the title Time warp fixes: Trim-to-fill Time warp fixes: Trim-to-fill and Reverse Mar 8, 2025
@jminor jminor requested a review from timlehr March 8, 2025 02:40
Copy link
Copy Markdown
Collaborator

@timlehr timlehr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @jminor! This looks good to me. Just the note about the changes from #56 being reversed.

Signed-off-by: Joshua Minor <joshm@pixar.com>
@jminor jminor requested a review from timlehr March 11, 2025 04:31
@jminor jminor merged commit d8d8747 into OpenTimelineIO:main Mar 13, 2025
47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Trim-to-fill time warp effects appear as the wrong type

3 participants