OpenTimelineIO icon indicating copy to clipboard operation
OpenTimelineIO copied to clipboard

Flattening tracks sometimes splits contiguous clips into segments

Open jminor opened this issue 2 years ago • 9 comments

Incorrect Functionality

If a track has adjacent Gaps, then items below the boundary between those Gaps are sliced in an unexpected way.

To Reproduce

Using this test file "bug_before_flatten_redacted.otio"... flatten_bug_repro.zip

Run this command:

% otiotool -i bug_before_flatten_redacted.otio --flatten video -o out.otio

Expected Behavior

Clips below adjacent Gaps should not be segmented by the flatten operation. In the provided example, Clip #1 should be left as-is.

Screenshots

Here is a screenshot before flattening (note the highlighted Gap on the top track) Screenshot 2023-06-26 at 10 45 25 AM

Here is the result after flattening (note that Clip #1 has been split in two) Screenshot 2023-06-26 at 10 45 38 AM

jminor avatar Jun 26 '23 17:06 jminor

Seems related to the behavior outlines in https://github.com/AcademySoftwareFoundation/OpenTimelineIO/issues/1430

douglascomet avatar Oct 01 '23 22:10 douglascomet