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
OpenTimelineIO commit hash: cbef407 (current head of main at time of writing)
Compiler information:
Apple clang version 13.1.6 (clang-1316.0.21.2.5)
Target: arm64-apple-darwin21.4.0
Thread model: posix
Expected Behavior
If the Marker's marked_range.duration.value > 0, I expect the value of out to be marked_range.start_time + marked_range.duration.value.
Additional Context
I have a fix for this locally that I'm happy to PR but I'm not really sure if there's a good reason for it to be hardcoded to -1. If so let me know and I'll close this issue!
The text was updated successfully, but these errors were encountered:
I agree that this should not be hard-coded to -1. My guess would be (possibly for simplicity) the original implementer went with just using a default value for the out element as discussed in the FCP 7 XML spec:
Also, you can use -1 to override an existing encoding with an undefined or default value.
Interestingly, the adapter seems to read this value already.
We'd definitely welcome a PR to address this. Also, an example of another software package (like an NLE) generating or consuming markers with a duration in the FCP XML format would be a "nice to have" - just to validate whatever we do in practice.
I'm guessing you discovered this because you were using one of these OTIO generated files in some other software? Do you mind sharing which application you were importing the file into?
Hey @reinecke, I put the PR up for it just waiting on the CLA Manager on my side. And yeah, we're auto-generating OTIO timelines that get imported into Adobe Premiere. The -1 actually works fine going into Premiere, it just comes through as an "instantaneous" (zero duration) marker when we really need to preserve the range for our use case.
Bug Report
When exporting to FCP XML, markers always have an
out
of -1. This is because the value is hardcoded here.To Reproduce
Generating a marker with the following code and serializing it to FCP XML results in an
out
of -1 even when duration is > 0:main
at time of writing)Expected Behavior
If the Marker's
marked_range.duration.value
> 0, I expect the value ofout
to bemarked_range.start_time + marked_range.duration.value
.Additional Context
I have a fix for this locally that I'm happy to PR but I'm not really sure if there's a good reason for it to be hardcoded to -1. If so let me know and I'll close this issue!
The text was updated successfully, but these errors were encountered: