kmp_rtmp_out_max_free_buffers
The 'kmp_rtmp_out_max_free_buffers' directive sets the maximum number of free buffers available for RTMP output streams in the Kaltura Media Framework.
Description
The 'kmp_rtmp_out_max_free_buffers' directive configures the maximum number of free buffers that can be allocated for RTMP output streaming. This directive is particularly relevant in scenarios with high throughput and buffering needs, as it influences how efficiently data can be managed and transmitted during live streaming operations. When the specified limit of free buffers is reached, additional buffers may need to be allocated, potentially introducing latency or dropped frames if the system runs low on resources.
Setting this value too low might result in insufficient buffering during peak traffic, while setting it too high could lead to memory strain or resource wastage. Thus, it is crucial to balance this directive's value according to the specific demands of the media streaming scenario and the server's capabilities. This directive should be specified in the 'stream' or 'stream server' contexts, ensuring it applies precisely to the RTMP output streams within those defined sockets.
Config Example
stream {
server {
listen 1935;
kmp_rtmp_out_max_free_buffers 1024;
}
}Specifying a value lower than required may lead to dropped frames or latency in streaming.
Excessively high values can lead to unnecessary memory usage, impacting overall server performance.