Closed maptz closed 1 year ago
By the way, I've made some progress, but could still use some guidance, and a simple example.
I can add a couple of audio tracks to my sequence. I can even pull in some clips onto one of these tracks.
What's funky here is that my OP-ATOM files aren't all recognised correctly.
My OP-ATOM files are stereo files which are linked together. I think they should be showing up as a single mob with two slots, but in fact they're coming in as 4 mobs (maybe???).
Some hints would be great.
sound_slot = comp_mob.create_sound_slot(video_rate) # add a track
sound_slot2 = comp_mob.create_sound_slot(video_rate) # add a track
# audio_sequence = f.create.Sequence(media_kind="sound")
# sound_slot.segment = audio_sequence
audio_mobs = []
for path in source_file:
for mob in f.content.link_external_mxf(path):
if (mob not in audio_mobs):
audio_mobs.append(mob)
print(mob.name)
for mob in audio_mobs:
slot = mob.slots[0]
sound_slot.segment.components.append(mob.create_source_clip(slot.slot_id, length = 100)) # 100 frames
sound_slot.segment.components.append(f.create.Filler('sound', 100)) # 100 frames
for mob in audio_mobs:
slot = mob.slots[0]
sound_slot2.segment.components.append(mob.create_source_clip(1, length = 100))
sound_slot2.segment.components.append(f.create.Filler('sound', 100))
Apologies. I wrote this on the wrong repo. Should be on the pyaaf2 one.
Hi Mark,
I'm not sure how active you are on this project any more.
I'm hoping to bring in some edits into my Avid system using
pyaaf
.I just wondered if you can guide me in creating a very quick sample. I'm bashing my head against a wall.
I've got as far as your
test_create_sequence.py
file and worked out how to link the existing MXF files into that file, but I can't work out how on earth I add audio tracks and how to add the imported mobs into the sequence.Can you help?