Rate this Page
★ ★ ★ ★ ★

DemuxerMetadata#

class torchcodec.decoders.DemuxerMetadata(duration_seconds_from_header: float | None, bit_rate_from_header: float | None, best_video_stream_index: int | None, best_audio_stream_index: int | None)[source]#

Container-level metadata, as reported by the header.

This is what a Demuxer can say about the container itself.

Examples using DemuxerMetadata:

Build your own decoding pipeline

Build your own decoding pipeline
best_audio_stream_index: int | None#

Index of the best stream of audio type (int or None).

best_video_stream_index: int | None#

Index of the best stream of video type (int or None).

bit_rate_from_header: float | None#

Overall bit rate of the container (float or None).

duration_seconds_from_header: float | None#

Duration of the container, in seconds, obtained from the header (float or None).