kmp_cc_out_video_buffer_size
The `kmp_cc_out_video_buffer_size` directive sets the size of the output video buffer for Kaltura Media Framework's streaming services.
Description
The kmp_cc_out_video_buffer_size directive is a configuration parameter used in the Kaltura Media Framework's NGINX module that specifies the size of the output video buffer in bytes. This directive is crucial for stream handling as it impacts how data is buffered before being sent to the client. A larger buffer can enhance video streaming quality by reducing the chances of playback interruptions caused by network fluctuations; however, it may also increase latency and memory usage.
The directive can be set within a stream or stream server context, allowing it to apply at different levels of the streaming configuration. The specified size must be a numerical value without units, and it directly influences the NGINX handling of sessions that involve video data. Proper tuning of this value is essential for achieving optimal performance, especially in environments with a high number of concurrent streams or fluctuating bandwidth.
When configuring this directive, users should consider the characteristics of their network environment and the expected load on their server to determine an appropriate buffer size. Over-allocation of buffer size could lead to wasted memory resources, while under-allocation may lead to less smooth playback. It's recommended to monitor streaming performance and adjust this directive accordingly for best results.
Config Example
stream {
server {
listen 1234;
kmp_cc_out_video_buffer_size 2048000; # Buffer size of 2MB
}
}Setting the buffer size too small may lead to playback interruptions.
Conversely, a very large buffer size can increase memory consumption and latency.
Ensure that the size is specified as a plain integer without units.