StreamMetadata#
- class torchcodec.decoders.StreamMetadata(duration_seconds_from_header: float | None, begin_stream_seconds_from_header: float | None, bit_rate: float | None, codec: str | None, stream_index: int, media_type: str)[source]#
Metadata of a single stream, as reported by the container header.
This is everything that is known about a stream without looking at its content. Streams that are neither video nor audio (subtitles, data) are described by this class and nothing more.
- begin_stream_seconds_from_header: float | None#
Beginning of the stream, in seconds, obtained from the header (float or None). Usually, this is equal to 0.
- duration_seconds_from_header: float | None#
Duration of the stream, in seconds, obtained from the header (float or None). This could be inaccurate.