AudioStream#
- class torchcodec.decoders.AudioStream(demuxer: Demuxer, index: int)[source]#
An audio stream followed by a
Demuxer.You should not build one yourself: a
Demuxercreates one for you.- Variables:
index (int) – The stream’s index within the container, absolute across all media types. This is what a
Packet’sstream_indexcan be compared against.
Examples using
AudioStream:- make_decoder() AudioPacketDecoder[source]#
Build the
AudioPacketDecoderfor this stream.- Returns:
A decoder for this stream’s packets.
- Return type:
- property metadata: AudioStreamHeaderMetadata#
What the container header says about this audio stream.
From the header only.