cutcutcodec.core.classes.muxer.Muxer

class cutcutcodec.core.classes.muxer.Muxer(name: str)[source]

A specific muxer.

Attributes

docstr

The documentation of the muxer (readonly).

extensionsfrozenset[str]

All the available extensions for this muxer (readonly).

Initialise and create the class.

Parameters

namestr

The canonical name or the extension with the suffix “.”.

property doc: str

Return the documentation of the muxer.

Based on ffmpeg, it parse ffmpeg -h muxer=....

Examples

>>> from cutcutcodec.core.classes.muxer import Muxer
>>> print(Muxer("null").doc)
Muxer null [raw null video]:
    Default video codec: wrapped_avframe.
    Default audio codec: pcm_s16le.

>>>
property extensions: frozenset[str]

All the available extensions for this muxer.

Examples

>>> from cutcutcodec.core.classes.muxer import Muxer
>>> sorted(Muxer("matroska").extensions)
['.mkv']
>>> sorted(Muxer("mpeg").extensions)
['.mpeg', '.mpg']
>>>