forked from AcademySoftwareFoundation/OpenTimelineIO
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AAF Writer: Making precheck() more robust (AcademySoftwareFoundation#512
) * Adds better error messages for when the AAF Writer's precheck fails * Adding precheck failer negative test
- Loading branch information
1 parent
c269cb2
commit bdbeab9
Showing
3 changed files
with
331 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
234 changes: 234 additions & 0 deletions
234
contrib/opentimelineio_contrib/adapters/tests/sample_data/precheckfail.otio
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,234 @@ | ||
{ | ||
"OTIO_SCHEMA": "Timeline.1", | ||
"global_start_time": { | ||
"OTIO_SCHEMA": "RationalTime.1", | ||
"rate": 24.0, | ||
"value": 86400 | ||
}, | ||
"metadata": { | ||
"AAF": { | ||
"ClassName": "CompositionMob", | ||
"CreationTime": "2019-03-29 18:55:55", | ||
"LastModified": "2019-03-29 18:55:14", | ||
"MobAttributeList": { | ||
"AudioPluginWindowTrack": 1, | ||
"PRJ_BOUNDARY_FRAMES": 1, | ||
"SEQUERNCE_FORMAT_STRING": "HD 1080p/24", | ||
"SEQUERNCE_FORMAT_TYPE": 10, | ||
"_IMAGE_BOUNDS_OVERRIDE": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\" ?><Bounds> <Source>-800/1 -450/1 1600/1 900/1</Source></Bounds>", | ||
"_USER_POS": 10, | ||
"_VERSION": 2 | ||
}, | ||
"MobID": "urn:smpte:umid:060a2b34.01010101.01010f00.13000000.060e2b34.7f7f2a80.5c9e6a3b.ace913a2", | ||
"Name": "OTIO_Test_ppjoshm1.Exported.01", | ||
"Slots": {}, | ||
"UsageCode": "Usage_TopLevel" | ||
} | ||
}, | ||
"name": "OTIO_Test_ppjoshm1.Exported.01", | ||
"tracks": { | ||
"OTIO_SCHEMA": "Stack.1", | ||
"children": [ | ||
{ | ||
"OTIO_SCHEMA": "Track.1", | ||
"children": [ | ||
{ | ||
"OTIO_SCHEMA": "Clip.1", | ||
"effects": [], | ||
"markers": [], | ||
"media_reference": { | ||
"OTIO_SCHEMA": "MissingReference.1", | ||
"available_range": null, | ||
"metadata": { | ||
"AAF": { | ||
"ClassName": "MasterMob", | ||
"ConvertFrameRate": false, | ||
"CreationTime": "2019-03-29 18:52:18", | ||
"LastModified": "2019-03-29 18:54:01", | ||
"MobAttributeList": { | ||
"_GEN": 1553885640, | ||
"_IMPORTSETTING": "__AttributeList", | ||
"_SAVED_AAF_AUDIO_LENGTH": 0, | ||
"_SAVED_AAF_AUDIO_RATE_DEN": 1, | ||
"_SAVED_AAF_AUDIO_RATE_NUM": 24, | ||
"_USER_POS": 0, | ||
"_VERSION": 2 | ||
}, | ||
"MobID": "urn:smpte:umid:060a2b34.01010101.01010f00.13000000.060e2b34.7f7f2a80.5c9e6962.cd005cc5", | ||
"Name": "ppjoshm_1 (SIM1)", | ||
"Slots": {} | ||
} | ||
}, | ||
"name": null | ||
}, | ||
"metadata": { | ||
"AAF": { | ||
"ClassName": "SourceClip", | ||
"ComponentAttributeList": { | ||
"_IMAGE_BOUNDS_OVERRIDE": "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\" ?><Bounds> <Framing>-800/1 -450/1 1600/1 900/1</Framing> <Valid>-800/1 -450/1 1600/1 900/1</Valid> <Essence>-800/1 -450/1 1600/1 900/1</Essence> <Source>-800/1 -450/1 1600/1 900/1</Source></Bounds>" | ||
}, | ||
"DataDefinition": { | ||
"Description": "Picture Essence", | ||
"Identification": "01030202-0100-0000-060e-2b3404010101", | ||
"Name": "Picture" | ||
}, | ||
"Length": 10, | ||
"Name": "ppjoshm_1 (SIM1)", | ||
"SourceID": "urn:smpte:umid:060a2b34.01010101.01010f00.13000000.060e2b34.7f7f2a80.5c9e6962.cd005cc5", | ||
"SourceMobSlotID": 1, | ||
"StartTime": 0 | ||
} | ||
}, | ||
"name": "ppjoshm_1 (SIM1)", | ||
"source_range": { | ||
"OTIO_SCHEMA": "TimeRange.1", | ||
"duration": { | ||
"OTIO_SCHEMA": "RationalTime.1", | ||
"rate": 24.0, | ||
"value": 10 | ||
}, | ||
"start_time": { | ||
"OTIO_SCHEMA": "RationalTime.1", | ||
"rate": 24.0, | ||
"value": 86501 | ||
} | ||
} | ||
} | ||
], | ||
"effects": [], | ||
"kind": "Video", | ||
"markers": [], | ||
"metadata": { | ||
"AAF": { | ||
"ClassName": "TimelineMobSlot", | ||
"EditRate": "24", | ||
"MediaKind": "Picture", | ||
"Name": "TimelineMobSlot", | ||
"Origin": 0, | ||
"PhysicalTrackNumber": 1, | ||
"Segment": { | ||
"Components": {}, | ||
"DataDefinition": { | ||
"Description": "Picture Essence", | ||
"Identification": "01030202-0100-0000-060e-2b3404010101", | ||
"Name": "Picture" | ||
}, | ||
"Length": 10 | ||
}, | ||
"SlotID": 9, | ||
"SlotName": "" | ||
} | ||
}, | ||
"name": "TimelineMobSlot", | ||
"source_range": null | ||
}, | ||
{ | ||
"OTIO_SCHEMA": "Track.1", | ||
"children": [ | ||
{ | ||
"OTIO_SCHEMA": "Clip.1", | ||
"effects": [], | ||
"markers": [], | ||
"media_reference": { | ||
"OTIO_SCHEMA": "MissingReference.1", | ||
"available_range": { | ||
"OTIO_SCHEMA": "TimeRange.1", | ||
"duration": { | ||
"OTIO_SCHEMA": "RationalTime.1", | ||
"rate": 48.0, | ||
"value": 10 | ||
}, | ||
"start_time": { | ||
"OTIO_SCHEMA": "RationalTime.1", | ||
"rate": 48.0, | ||
"value": 0 | ||
} | ||
}, | ||
"metadata": { | ||
"AAF": { | ||
"ClassName": "MasterMob", | ||
"ConvertFrameRate": false, | ||
"CreationTime": "2019-03-29 18:52:18", | ||
"LastModified": "2019-03-29 18:54:01", | ||
"MobAttributeList": { | ||
"_GEN": 1553885640, | ||
"_IMPORTSETTING": "__AttributeList", | ||
"_SAVED_AAF_AUDIO_LENGTH": 0, | ||
"_SAVED_AAF_AUDIO_RATE_DEN": 1, | ||
"_SAVED_AAF_AUDIO_RATE_NUM": 24, | ||
"_USER_POS": 0, | ||
"_VERSION": 2 | ||
}, | ||
"MobID": "urn:smpte:umid:060a2b34.01010101.01010f00.13000000.060e2b34.7f7f2a80.5c9e6962.cd005cc5", | ||
"Name": "ppjoshm_1 (SIM1)", | ||
"Slots": {} | ||
} | ||
}, | ||
"name": null | ||
}, | ||
"metadata": { | ||
"AAF": { | ||
"ClassName": "SourceClip", | ||
"DataDefinition": { | ||
"Description": "Sound Essence", | ||
"Identification": "01030202-0200-0000-060e-2b3404010101", | ||
"Name": "Sound" | ||
}, | ||
"Length": 10, | ||
"Name": "ppjoshm_1 (SIM1)", | ||
"SourceID": "urn:smpte:umid:060a2b34.01010101.01010f00.13000000.060e2b34.7f7f2a80.5c9e6962.cd005cc5", | ||
"SourceMobSlotID": 2, | ||
"StartTime": 0 | ||
} | ||
}, | ||
"name": "ppjoshm_1 (SIM1)", | ||
"source_range": { | ||
"OTIO_SCHEMA": "TimeRange.1", | ||
"duration": { | ||
"OTIO_SCHEMA": "RationalTime.1", | ||
"rate": 24.0, | ||
"value": 10 | ||
}, | ||
"start_time": { | ||
"OTIO_SCHEMA": "RationalTime.1", | ||
"rate": 24.0, | ||
"value": 0 | ||
} | ||
} | ||
} | ||
], | ||
"effects": [], | ||
"kind": "Audio", | ||
"markers": [], | ||
"metadata": { | ||
"AAF": { | ||
"ClassName": "TimelineMobSlot", | ||
"EditRate": "24", | ||
"MediaKind": "Sound", | ||
"Name": "TimelineMobSlot", | ||
"Origin": 0, | ||
"PhysicalTrackNumber": 1, | ||
"Segment": { | ||
"Components": {}, | ||
"DataDefinition": { | ||
"Description": "Sound Essence", | ||
"Identification": "01030202-0200-0000-060e-2b3404010101", | ||
"Name": "Sound" | ||
}, | ||
"Length": 10 | ||
}, | ||
"SlotID": 10, | ||
"SlotName": "" | ||
} | ||
}, | ||
"name": "TimelineMobSlot", | ||
"source_range": null | ||
} | ||
], | ||
"effects": [], | ||
"markers": [], | ||
"metadata": {}, | ||
"name": "tracks", | ||
"source_range": null | ||
} | ||
} |
Oops, something went wrong.