Sets the streaming parameters. More...
Functions | |
def | __cinit__ (self, codec=STREAMING_CODEC.H265, port=30000, bitrate=8000, gop_size=-1, adaptative_bitrate=False, chunk_size=32768, target_framerate=0) |
Constructor. More... | |
def | chunk_size (self) |
Defines a single chunk size. More... | |
def | codec (self) |
Defines the codec used for streaming. More... | |
def | port (self) |
Defines the port the data will be streamed on. More... | |
def | bitrate (self) |
Defines the streaming bitrate in Kbits/s. | |
def | adaptative_bitrate (self) |
Enable/Disable adaptive bitrate. More... | |
def | gop_size (self) |
Defines the gop size in frame unit. More... | |
def | target_framerate (self) |
defines the target framerate for the streaming output. More... | |
Sets the streaming parameters.
The default constructor sets all parameters to their default settings.
def __cinit__ | ( | self, | |
codec = STREAMING_CODEC.H265 , |
|||
port = 30000 , |
|||
bitrate = 8000 , |
|||
gop_size = -1 , |
|||
adaptative_bitrate = False , |
|||
chunk_size = 32768 , |
|||
target_framerate = 0 |
|||
) |
Constructor.
codec | : the chosen codec |
port | : the chosen port |
bitrate | : the chosen bitrate |
gop_size | : the chosen gop_size |
adaptative_bitrate | : activtates adaptative_bitrate |
chunk_size | : the chosen chunk_size |
target_framerate | : the chosen target_framerate |
def chunk_size | ( | self | ) |
Defines a single chunk size.
def codec | ( | self | ) |
Defines the codec used for streaming.
def port | ( | self | ) |
Defines the port the data will be streamed on.
def adaptative_bitrate | ( | self | ) |
Enable/Disable adaptive bitrate.
def gop_size | ( | self | ) |
Defines the gop size in frame unit.
def target_framerate | ( | self | ) |
defines the target framerate for the streaming output.
This framerate must be below or equal to the camera framerate. Allowed framerates are 15,30, 60 or 100 if possible. Any other values will be discarded and camera FPS will be taken.