Packets¶
- class av.packet.Packet(input=None)¶
Bases:
BufferA packet of encoded data within a
Stream.This may, or may not include a complete object within a stream.
decode()must be called to extract encoded data.- decode()¶
Send the packet’s data to the decoder and return a list of
AudioFrame,VideoFrameorSubtitleSet.
- is_corrupt¶
- is_discard¶
- is_disposable¶
- is_keyframe¶
- is_trusted¶
- opaque¶
- pts¶
The presentation timestamp in
time_baseunits for this packet.This is the time at which the packet should be shown to the user.
- Type:
- stream¶
The
Streamthis packet was demuxed from.
- stream_index¶
- time_base¶
The unit of time (in fractional seconds) in which timestamps are expressed.
- Type: