cutcutcodec.core.classes.layout

The significance of the audio and video frame channels.

Classes

AllLayouts(*args, **kwargs)

Parse the ffmpeg -layouts command line.

Layout(name)

An audio profile.

Details

class cutcutcodec.core.classes.layout.AllLayouts(*args, **kwargs)[source]

Parse the ffmpeg -layouts command line.

Attributes

individualsdict[str, str]

To each channel canonical name in lower case, associate the description (readonly).

layoutsdict[str, tuple[str, …]]

To each layouts name, associate the names of the channels (readonly).

class cutcutcodec.core.classes.layout.Layout(name: str | Integral)[source]

An audio profile.

Attributes

channelstuple[tuple[str, str], …]

Each audio channel (readonly) as an ordered dict with: The canonical name of the audio channel and a human description of the audio channel.

namestr

The canonical name of the audio profile (readonly).

Initialise and create the class.

Parameters

namestr or numbers.Integral

The canonical name of the audio profile. If an integer is provide, a default profile is assigned.