ENCODED_STREAM_SOURCE Class Reference

Identifies which of the camera's encoded video paths to read from. More...

Static Functions

def from_string (str, name)
 Converts a string to the corresponding ENCODED_STREAM_SOURCE enum value. More...
 

Detailed Description

Identifies which of the camera's encoded video paths to read from.

A single Camera (or CameraOne) can produce up to three concurrent encoded H264/H265 bitstreams: the incoming stream when the camera is opened from a network sender (RECEIVING), the outgoing stream when Camera.enable_streaming() is active (SENDING), and the SVO encoder output when Camera.enable_recording() is active with a video compression mode (RECORDING). Each source has its own codec, bitrate and key-frame schedule.

Enumerator
RECEIVING Incoming stream packets (Camera opened with sl.INPUT_TYPE.STREAM).
SENDING Outgoing stream packets (enable_streaming() is active).
RECORDING SVO encoder output (enable_recording() with an H264 / H265 compression mode).

Functions

◆ from_string()

def from_string (   str,
  name 
)
static

Converts a string to the corresponding ENCODED_STREAM_SOURCE enum value.

Parameters
name: The string representation of the ENCODED_STREAM_SOURCE enum value.
Returns
The corresponding ENCODED_STREAM_SOURCE enum value. If the string does not match any ENCODED_STREAM_SOURCE, ENCODED_STREAM_SOURCE.LAST is returned.