cutcutcodec.core.classes.encoder.Encoder

class cutcutcodec.core.classes.encoder.Encoder(name: str)[source]

A specific encoder.

Attributes

docstr

The documentation of the encoder (readonly).

Initialise and create the class.

Parameters

namestr

The name of the encoder.

property doc: str

Return the documentation of the encoder.

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

Examples

>>> from cutcutcodec.core.classes.encoder import Encoder
>>> print(Encoder("libopus").doc)
Encoder libopus [libopus Opus]:
    General capabilities: ...
    Threading capabilities: none
    Supported sample rates: 48000 24000 16000 12000 8000
    Supported sample formats: s16 flt
libopus AVOptions:
  ...
>>>