aaf.mob

Mob

class aaf.mob.Mob

Bases: aaf.base.AAFObject

Base Class for All Mob Objects

append_attribute()

append_attribute(name, value):

append_comment(name, value)
append_new_timeline_slot(edit_rate, seg, slotID = 0, slot_name = None, origin = 0)

Creates a new TimelineMobSlot with the given property values and appends it to the Mob

append_slot()
comment_dict()
comments()
create_clip(slotID = None, length = None, start_time = None)
insert_slot(index, slot)

Inserts the given slot into this mob at the given index. All existing slots at the given and higher index will be moved up one index to accommodate.

material_id
mobID

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

name
nb_slots
remove_comment(tag)
remove_comment_by_name(name)
slot_at(slotID)
slots()
umid

MasterMob

class aaf.mob.MasterMob

Bases: aaf.mob.Mob

add_master_slot(media_kind, source_slotID, source_mob, master_slotID, slot_name = None)

Add a slot that references the specified a slot in the specified Source Mob.

add_master_slot_with_sequence(media_kind, source_slotID, source_mob, master_slotID, slot_name = None)
create_essence(slot_index, media_kind, codec_name, edit_rate, sample_rate, compress = False, locator = None, fileformat = "aaf")
import_audio_essence(path, channels, sample_rate)

Import raw PCM audio stream from file.

Parameters:
  • path (str) – path to pcm file
  • channels (int) – number of channels in pcm file
  • sample_rate – sample rate of pcm file
import_video_essence(path, frame_rate)

Import raw dnxhd video stream from file.

Parameters:
  • path (str) – path to dnxhd file
  • frame_rate – frame rate of dnxhd file
new_phys_source_ref(edit_rate, slotID, media_kind, ref, srcRefLength)
open_essence(slotID, mode = "r", compression = False)

Opens a single channel of a file mob and returns EssenceAccess Object.

Parameters:
  • slotID (int) – mob slotID to open essence data.
  • mode (str) – essence open mode “r” for read, “a” for append.
  • compression (bool) – decompress encoded data, (if supportedd).
Returns:

aaf.essence.EssenceAccess.

CompositionMob

class aaf.mob.CompositionMob

Bases: aaf.mob.Mob

SourceMob

class aaf.mob.SourceMob

Bases: aaf.mob.Mob

add_nil_ref(slotID, length, media_kind, edit_rate)
add_pulldown(edit_rate, slotID, media_kind, source_ref, src_ref_length, pulldown_kind = "TwentyFourToSixtyPD", phase_frame = 0, direction = "TapeToFilmSpeed", add_type = b"append")
append_phys_source_ref(edit_rate, slotID, media_kind, ref, srcRefLength)
append_timecode_slot(edit_rate, slotID, startTC, frame_length)
essence_descriptor
new_phys_source_ref(edit_rate, slotID, media_kind, ref, srcRefLength)

MobSlot

class aaf.mob.MobSlot

Bases: aaf.base.AAFObject

datadef()
media_kind
name
physical_num

Audio channel, audio 1 = left 2 = right (leave video as 0)

segment
slotID

TimelineMobSlot

class aaf.mob.TimelineMobSlot

Bases: aaf.mob.MobSlot

editrate
mark_in
mark_out
origin
user_pos

EventMobSlot

class aaf.mob.EventMobSlot

Bases: aaf.mob.MobSlot

StaticMobSlot

class aaf.mob.StaticMobSlot

Bases: aaf.mob.MobSlot

Table Of Contents

Previous topic

aaf.storage

Next topic

aaf.component

This Page