Skip to content

Commit 93f94d4

Browse files
pedrolaboniaMichaelPlug
authored andcommitted
fix AcademySoftwareFoundation#839 - FCP XML outputs not recognized by Resolve (AcademySoftwareFoundation#1287)
Co-authored-by: Pedro Labonia <[email protected]> Signed-off-by: Michele Spina <[email protected]>
1 parent 32aabe6 commit 93f94d4

File tree

1 file changed

+4
-0
lines changed
  • src/py-opentimelineio/opentimelineio/adapters

1 file changed

+4
-0
lines changed

src/py-opentimelineio/opentimelineio/adapters/fcp_xml.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1935,6 +1935,10 @@ def _add_stack_elements_to_sequence(stack, sequence_e, timeline_range, br_map):
19351935
video_e = _get_or_create_subelement(media_e, 'video')
19361936
audio_e = _get_or_create_subelement(media_e, 'audio')
19371937

1938+
# This is a fix for Davinci Resolve. After the "video" tag, it expects
1939+
# a <format> tag, even if empty. See issue 839
1940+
_get_or_create_subelement(video_e, "format")
1941+
19381942
# XXX: Due to the way that backreferences are created later on, the XML
19391943
# is assumed to have its video tracks serialized before its audio
19401944
# tracks. Because the order that they are added to the media is

0 commit comments

Comments
 (0)