cutcutcodec.core.classes.layout.AllLayouts

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).

property individuals: dict[str, str]

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

Examples

>>> from pprint import pprint
>>> from cutcutcodec.core.classes.layout import AllLayouts
>>> pprint(AllLayouts().individuals)
{'bc': 'back center',
 ...
 'wl': 'wide left',
 'wr': 'wide right'}
>>>
property layouts: dict[str, list[str]]

To each layouts name, associate the names of the channels.

Examples

>>> from pprint import pprint
>>> from cutcutcodec.core.classes.layout import AllLayouts
>>> pprint(AllLayouts().layouts)
{'2.1': ('fl', 'fr', 'lfe'),
 ...
 'stereo': ('fl', 'fr')}
>>>