aaf2.ama module¶
-
aaf2.ama.
get_wave_fmt
(path)¶ Returns a bytearray of the WAVE RIFF header and fmt chunk for a WAVEDescriptor Summary
-
aaf2.ama.
get_aifc_fmt
(path)¶ Compute the AIFC header information for a AIFCDescriptor Summary
Parameters: path – file to read chunk from Returns: a bytearray
-
aaf2.ama.
create_network_locator
(f, absolute_path)¶
-
class
aaf2.ama.
FormatInfo
(metadata)¶ Bases:
object
Provides convenient access to commonly-used datums
-
streams
¶
-
first_sound_stream
¶
-
first_picture_stream
¶
-
create_descriptor
(f, path)¶
-
container_guid
¶
-
edit_rate
¶ Returns: The edit rate of the first picture stream, or if there are none, the first sound stream.
-
length
¶ Returns: The length of the first picture stream, or if there are none, the first sound stream.
-
create_wav_descriptor
(f, path)¶
-
create_aifc_descriptor
(f, path)¶
-
coalesce_descriptors
(f, descriptors, path)¶
-
create_multistream_descriptor
(f, path)¶
-
-
class
aaf2.ama.
StreamInfo
(metadata)¶ Bases:
object
-
codec_type
¶
-
codec_name
¶
-
is_sound
¶
-
is_picture
¶
-
edit_rate
¶
-
length
¶
-
physical_track_count
¶
-
create_pcm_descriptor
(f)¶
-
pixel_sizes
()¶
-
get_avc_compression
()¶
-
get_compression
()¶
-
create_video_descriptor
(f)¶
-
-
aaf2.ama.
create_media_link
(f, path, metadata)¶ Create an essence linked to external media and all obligatory mobs and data structures required by the edit spec.
The returned
aaf.mobs.MasterMob
will have one slot for each video stream and each audio channel in the file at path.Example: The linked file is a Quicktime movie with picture and a stereo audio track. This function will create a SourceMob with three slots, one picture slot, and two sound slots, for audio channels one and two respectively. The function will also create a derivation SourceMob, linked to these slots.
Parameters: - f – The
aaf.File
to add this link to - path – A path recognizable to os.path
- metadata – Pre-fetched media description (in the form of a dictionary) from “ffprobe -show_format -show_streams”
Returns: A aaf.mobs.MasterMob linked to the file at link.
- f – The