Skip to content

Commit

Permalink
Make track for each audio layer
Browse files Browse the repository at this point in the history
  • Loading branch information
WyattBlue committed Aug 31, 2024
1 parent 29a1631 commit 4f6a7d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions auto_editor/formats/fcp7.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,8 @@ def media_def(


def resolve_write_audio(audio: Element, make_filedef, tl: v3) -> None:
track = ET.SubElement(audio, "track")
for aclips in tl.a:
for t, aclips in enumerate(tl.a):
track = ET.SubElement(audio, "track")
for j, aclip in enumerate(aclips):
src = aclip.src

Expand All @@ -411,7 +411,7 @@ def resolve_write_audio(audio: Element, make_filedef, tl: v3) -> None:

sourcetrack = ET.SubElement(clipitem, "sourcetrack")
ET.SubElement(sourcetrack, "mediatype").text = "audio"
ET.SubElement(sourcetrack, "trackindex").text = "1"
ET.SubElement(sourcetrack, "trackindex").text = f"{t + 1}"

if src.videos:
link = ET.SubElement(clipitem, "link")
Expand Down

0 comments on commit 4f6a7d1

Please sign in to comment.