EncodedStreamInfo Class Reference

Describes one encoded video source exposed by the camera. More...

Functions

ENCODED_STREAM_SOURCE source (self)
 Encoded source this entry describes.
 
bool active (self)
 True if this source is producing packets right now.
 
STREAMING_CODEC codec (self)
 Codec this source encodes with.
 
int bitrate_kbps (self)
 Configured bitrate, in kbps. More...
 
bool is_lossless (self)
 True for the H264_LOSSLESS / H265_LOSSLESS recording modes.
 

Detailed Description

Describes one encoded video source exposed by the camera.

Returned by Camera.get_encoded_streams_info() / CameraOne.get_encoded_streams_info(): one entry per source, whether currently active or not. Use this to discover which sources are producing data, and at what codec/bitrate, before calling Camera.retrieve_encoded_stream_packet().

Functions

◆ bitrate_kbps()

int bitrate_kbps (   self)

Configured bitrate, in kbps.

0 for lossless / unknown.