Class containing the options used to stream with the ZED SDK. More...
Functions | |
StreamingParameters | __cinit__ (self, codec=STREAMING_CODEC.H265, port=30000, bitrate=0, gop_size=-1, adaptative_bitrate=False, chunk_size=16084, target_framerate=0) |
Default constructor. More... | |
int | chunk_size (self) |
Size of a single chunk. More... | |
STREAMING_CODEC | codec (self) |
Encoding used for streaming. | |
int | port (self) |
Port used for streaming. More... | |
int | bitrate (self) |
Defines the streaming bitrate in Kbits/s. More... | |
bool | adaptative_bitrate (self) |
Defines whether the adaptive bitrate is enable. More... | |
int | gop_size (self) |
GOP size in number of frames. More... | |
int | target_framerate (self) |
Framerate for the streaming output. More... | |
Class containing the options used to stream with the ZED SDK.
The default constructor sets all parameters to their default settings.
StreamingParameters __cinit__ | ( | self, | |
codec = STREAMING_CODEC.H265 , |
|||
port = 30000 , |
|||
bitrate = 0 , |
|||
gop_size = -1 , |
|||
adaptative_bitrate = False , |
|||
chunk_size = 16084 , |
|||
target_framerate = 0 |
|||
) |
Default constructor.
All the parameters are set to their default values.
codec | : Chosen codec |
port | : Chosen port |
bitrate | : Chosen bitrate |
gop_size | : Chosen gop_size |
adaptative_bitrate | : Activtates adaptative_bitrate |
chunk_size | : Chosen chunk_size |
target_framerate | : Chosen target_framerate |
int chunk_size | ( | self | ) |
Size of a single chunk.
Default: 16084
int port | ( | self | ) |
Port used for streaming.
int bitrate | ( | self | ) |
Defines the streaming bitrate in Kbits/s.
STREAMING_CODEC | RESOLUTION | FPS | Bitrate (kbps) |
---|---|---|---|
H264 | HD2K | 15 | 8500 |
H264 | HD1080 | 30 | 12500 |
H264 | HD720 | 60 | 7000 |
H265 | HD2K | 15 | 7000 |
H265 | HD1080 | 30 | 11000 |
H265 | HD720 | 60 | 6000 |
Default: 0 (it will be set to the best value depending on your resolution/FPS)
bool adaptative_bitrate | ( | self | ) |
Defines whether the adaptive bitrate is enable.
Default: False
int gop_size | ( | self | ) |
GOP size in number of frames.
Default: -1 (the GOP size will last at maximum 2 seconds, depending on camera FPS)
int target_framerate | ( | self | ) |
Framerate for the streaming output.
Default: 0 (camera framerate will be taken)