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("opus").doc)  
Encoder opus [Opus]:
    ...
    Threading capabilities: none
    Supported sample rates: 48000
    Supported sample formats: fltp
    Supported channel layouts: mono stereo
Opus encoder AVOptions:
  ...
>>>