AudioStreamMetadata¶
- class torchcodec.decoders.AudioStreamMetadata(duration_seconds_from_header: Optional[float], begin_stream_seconds_from_header: Optional[float], bit_rate: Optional[float], codec: Optional[str], stream_index: int, sample_rate: Optional[int], num_channels: Optional[int], sample_format: Optional[str])[source]¶
Metadata of a single audio stream.
Examples using
AudioStreamMetadata
:- begin_stream_seconds_from_header: Optional[float]¶
Beginning of the stream, in seconds, obtained from the header (float or None). Usually, this is equal to 0.
- duration_seconds_from_header: Optional[float]¶
Duration of the stream, in seconds, obtained from the header (float or None). This could be inaccurate.