Structure containing the options used to stream with the ZED SDK. More...
Functions | |
StreamingParameters (STREAMING_CODEC codec_=STREAMING_CODEC::H265, unsigned short port_=30000, unsigned int bitrate_=0, int gop_size_=-1, bool adaptative_bitrate_=false, unsigned short chunk_size_=16084, unsigned int target_framerate_=0) | |
Default constructor. More... | |
bool | operator== (const StreamingParameters ¶m1) const |
bool | operator!= (const StreamingParameters ¶m1) const |
Attributes | |
STREAMING_CODEC | codec = STREAMING_CODEC::H265 |
Encoding used for streaming. More... | |
unsigned short | port = 30000 |
Port used for streaming. More... | |
unsigned int | bitrate = 0 |
Streaming bitrate (in Kbits/s) used for streaming. More... | |
int | gop_size = -1 |
GOP size in number of frames. More... | |
bool | adaptative_bitrate = false |
Defines whether the adaptive bitrate is enable. More... | |
unsigned short | chunk_size = 16084 |
Size of a single chunk. More... | |
unsigned int | target_framerate = 0 |
Framerate for the streaming output. More... | |
Structure containing the options used to stream with the ZED SDK.
The default constructor sets all parameters to their default settings.
StreamingParameters | ( | STREAMING_CODEC | codec_ = STREAMING_CODEC::H265 , |
unsigned short | port_ = 30000 , |
||
unsigned int | bitrate_ = 0 , |
||
int | gop_size_ = -1 , |
||
bool | adaptative_bitrate_ = false , |
||
unsigned short | chunk_size_ = 16084 , |
||
unsigned int | target_framerate_ = 0 |
||
) |
Default constructor.
All the parameters are set to their default values.
bool operator== | ( | const StreamingParameters & | param1 | ) | const |
Comparison operator ==
StreamingParameters | to compare |
bool operator!= | ( | const StreamingParameters & | param1 | ) | const |
Comparison operator !=
StreamingParameters | to compare |
STREAMING_CODEC codec = STREAMING_CODEC::H265 |
Encoding used for streaming.
unsigned short port = 30000 |
Port used for streaming.
unsigned int bitrate = 0 |
Streaming bitrate (in Kbits/s) used for streaming.
sl::STREAMING_CODEC | sl::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)
int gop_size = -1 |
GOP size in number of frames.
Default: -1 (the GOP size will last at maximum 2 seconds, depending on camera FPS)
bool adaptative_bitrate = false |
Defines whether the adaptive bitrate is enable.
Default: false
unsigned short chunk_size = 16084 |
Size of a single chunk.
Default: 16084
unsigned int target_framerate = 0 |
Framerate for the streaming output.
Default: 0 (camera framerate will be taken)