Single encoded video packet retrieved from a camera source. More...
Functions | |
| bytes | data (self) |
| Encoded payload of the packet, as Annex-B NAL units. | |
| int | size (self) |
| Length of data in bytes. | |
| Timestamp | timestamp (self) |
| Capture timestamp of the packet. | |
| STREAMING_CODEC | codec (self) |
| Codec the packet is encoded with. | |
| bool | is_keyframe (self) |
| True if this packet is an IDR (key frame). | |
| ENCODED_STREAM_SOURCE | source (self) |
| Encoded source that produced this packet. | |
Single encoded video packet retrieved from a camera source.
Filled by Camera.retrieve_encoded_stream_packet() / CameraOne.retrieve_encoded_stream_packet(). The payload is laid out as Annex-B NAL units. The first packet handed back on a given source is always an IDR, with SPS/PPS (and VPS for HEVC) inlined in front, so writing successive packets to a .h264 / .hevc file produces a stream playable by any standard player.