Packets¶
-
class
av.packet.Packet(input=None)¶ Bases:
av.buffer.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.-
copy()¶
-
decode(count=0)¶ Decode the data in this packet into a list of Frames.
-
decode_one()¶ Decode the first frame from this packet.
Returns
Noneif there is no frame.
-
duration¶
-
is_corrupt¶
-
is_keyframe¶
-
pos¶
-
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: int
-
size¶
-
stream¶
-
stream_index¶
-
time_base¶ The unit of time (in fractional seconds) in which timestamps are expressed.
Type: fractions.Fraction
-