spdl.io.AudioCodec

class AudioCodec[source]

Codec metadata

Attributes

name

The name of the codec

num_channels

The number of channels in the audio stream

sample_rate

The sample rate of the audio stream

time_base

The internal unit of time used for timestamp.

property name: str[source]

The name of the codec

property num_channels: int[source]

The number of channels in the audio stream

property sample_rate: int[source]

The sample rate of the audio stream

property time_base: tuple[int, int][source]

The internal unit of time used for timestamp.

The value is expressed as a fraction. (numerator, denominator).