This module provides the transport layer Packet support code. For internal usage only: do not use nor import directly.
a Packet object represents an immutable, encoded packet of a multimedia stream.
returns the bytes() dump of the object
the raw data (bytes) this packet carries.
the Decoding TimeStamp of this packet.
builds a pyrana Packet from (around) a (cffi-wrapped) libav* packet object. The libav object must be already initialized and ready to go. WARNING: raw access. Use with care.
boolean flag. Is this packet a key frame? (provided by libav*)
the Presentation TimeStamp of this packet.
raw access to the underlying FFmpeg packet. used by decoders in some corner but important cases. For internal usage only. TODO: ensure R/O and (thus) simplify
Size of the packet data (bytes)
the identifier of the logical stream which this packet belongs to.
wrapper for the (wannabe)enum of AVPktFlag in libavcodec/avcodec.h
allocates an AVPacket and cleans it up on exception.
context manager for a raw ffmpeg packet of the given size.