Skip to content

Added code to preserve MissingReference entries when going from OTIO to AAF - #77

Open
danneufeldt wants to merge 1 commit into
OpenTimelineIO:mainfrom
danneufeldt:lei-missing-references
Open

Added code to preserve MissingReference entries when going from OTIO to AAF#77
danneufeldt wants to merge 1 commit into
OpenTimelineIO:mainfrom
danneufeldt:lei-missing-references

Conversation

@danneufeldt

Copy link
Copy Markdown

Fixes #76

The MissingReference in an AAF generated within the Avid corresponds to a TapeMob which in some mysterious way ties to the "physical media" separately from the video that is actually displayed. In my testing, each clip in an Avid generated AAF converted to OTIO contained two references, one ExternalReference and one MissingReference. The missing references are not converted when going back to AAF using otio-aaf-adapter and this causes some issues when loading the timeline into the Avid, at least in the testing done at our facility. I was able to resolve this for us cleanly with the code in this pull request, which just tries to transcribe all the data out of the otio.schema.MissingReference class into the tapemob created in AAFFileTranscriber._unique_tapemob. This PR modifies aaf_writer.py with two utility functions for obtaining the physical source mob from a clip and getting the mob id from a MissingReference, updates _unique_tapemob to construct the tapemob using the information from the MissingReference if available, and updates _TrackTranscriber._create_tapemob to use the range from the tapemob if available when constructing the time range for the tapemob slot segment. No new tests are contributed at this time, once I have permission to share some AAFs created at this facility I plan to add tests specific to this behavior.

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.

MissingReferences are Missing!

1 participant