aaf2.mobs module

class aaf2.mobs.Mob(name=None)

Bases: aaf2.core.AAFObject

Base Class for All Mob Objects

class_id = 0d010101-0101-3400-060e-2b3402060101
unique_key
name
mob_id

The unique Mob ID associated with this mob. Get Returns aaf2.mobid.MobID Object

usage
comments
slots
slot_at(slot_id)
create_timeline_slot(edit_rate, slot_id=None)
create_empty_sequence_slot(edit_rate, slot_id=None, media_kind=None)

Create an empty timeline slot and sets its segment to a new, empty aaf2.components.Sequence component. Timeline slots are for continuous, monotonically-changing media, like picture and sound.

create_picture_slot(edit_rate=25)

Create an empty timeline slot, with the ‘picture’ media kind, and sets its segment to a new, empty aaf2.components.Sequence component.

create_sound_slot(edit_rate=25)

Create an empty timeline slot, with the ‘sound’ media kind, and sets its segment to a new, empty aaf2.components.Sequence component.

create_source_clip(slot_id=None, start=None, length=None, media_kind=None)

Create a SourceClip of Mobs slot with slot_id. If no length given the default length will be the full length of slots segment minus start. Returns aaf2.components.SourceClip Object

dependant_mobs()

Yields all mobs that this mob is dependant on in depth first order.

class aaf2.mobs.CompositionMob(name=None)

Bases: aaf2.mobs.Mob

class_id = 0d010101-0101-3500-060e-2b3402060101
class aaf2.mobs.MasterMob(name=None)

Bases: aaf2.mobs.Mob

class_id = 0d010101-0101-3600-060e-2b3402060101
import_dnxhd_essence(path, edit_rate, tape=None, length=None, offline=False)

Import video essence from raw DNxHD/DNxHR stream

import_audio_essence(path, edit_rate=None, tape=None, length=None, offline=False)

Import audio essence from wav file

class aaf2.mobs.SourceMob(name=None)

Bases: aaf2.mobs.Mob

class_id = 0d010101-0101-3700-060e-2b3402060101
descriptor
create_essence(edit_rate=None, media_kind='picture', slot_id=None, offline=False)
create_empty_slot(edit_rate=None, media_kind='picture', slot_id=None)
create_timecode_slot(edit_rate, timecode_fps, drop_frame=False, length=None)
create_tape_slots(tape_name, edit_rate, timecode_fps, drop_frame=False, media_kind=None, length=None)
import_rawvideo_essence(path, edit_rate, width, height, pixel_layout, tape=None)
import_dnxhd_essence(path, edit_rate, tape=None, length=None, offline=False)

Import video essence from raw DNxHD/DNxHR stream

import_audio_essence(path, edit_rate=None, tape=None, length=None, offline=False)

Import audio essence from wav file

export_audio(path)
essence