spdl.io.AudioCodec¶ class AudioCodec[source]¶ Codec metadata Attributes channel_layout The channel layout of the audio name The name of the codec num_channels The number of channels in the audio stream sample_fmt The sample format of the audio. sample_rate The sample rate of the audio stream time_base The internal unit of time used for timestamp. property channel_layout: str[source]¶ The channel layout of the audio property name: str[source]¶ The name of the codec property num_channels: int[source]¶ The number of channels in the audio stream property sample_fmt: str[source]¶ The sample format of the audio. 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).