cutcutcodec.core.compilation.export.compatibility.audio_encodec_compatibility

cutcutcodec.core.compilation.export.compatibility.audio_encodec_compatibility(encodec: str, muxer: str, layout: str = 'mono', rate: int | None = None, profile: str | None = None) str[source]

Test throw av the compatibility of the encoding audio parameters.

Parameters

encodecstr

The codec or the encoder name.

muxerstr

The format name.

layoutstr, default=”mono”

The name of the audio layout, ex “stereo”

rateint, optional

The samplerate of the audio in all channels.

profilestr, optional

The name of the binary format of the data ex “flt”.

Returns

codecstr

The name of the codec found.

Raises

IncompatibleSettings

If it fails to encode or if the decoded parameters don’t matched.

Examples

>>> from cutcutcodec.core.compilation.export.compatibility import audio_encodec_compatibility
>>> audio_encodec_compatibility("libvorbis", "ogg")
'vorbis'
>>>