Skip to content

FCP XML: marker out is hardcoded as -1 #1410

@jhorrocks-tl

Description

@jhorrocks-tl

Bug Report

When exporting to FCP XML, markers always have an out of -1. This is because the value is hardcoded here.

<marker>
    <comment>Shot ID 12123483</comment>
    <name>...</name>
    <in>4906</in>
    <out>-1</out>
</marker>

To Reproduce

  1. OS: Mac OS 12.3
  2. Python version: 3.9.7
  3. Example Snippet:

Generating a marker with the following code and serializing it to FCP XML results in an out of -1 even when duration is > 0:

marker = otio.schema.Marker(
    name=name,
    marked_range=otio.opentime.TimeRange(
        start_time=mark_in,
        duration=(mark_out - mark_in),
    ),
    metadata={
        "fcp_xml": {
            "comment": comment,
        },
    },
)

timeline.tracks.markers.append(marker)
  1. OpenTimelineIO commit hash: cbef407 (current head of main at time of writing)
  2. 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA problem, flaw, or broken functionality.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions