kmp_cc_out_video_mem_limit
Limits the memory usage for processing video streams in the Kaltura Media Framework.
Description
The kmp_cc_out_video_mem_limit directive is used within Kaltura's NGINX integration to define a threshold for memory consumption when handling segmented video streams. When this limit is set, Kaltura ensures that the memory utilized for outputting video buffers does not exceed the specified amount. This is particularly useful in environments with constrained resources or high traffic streaming, as it helps mitigate potential server overload or crashes due to excessive memory usage. The limit is specified in bytes and acts as a safeguard during media processing operations.
This directive can be applied in both stream and stream server contexts, making it flexible for various deployment scenarios. Once configured, if the memory usage surpasses the defined limit during video processing, Kaltura's internal mechanisms will attempt to manage or drop excess streams based on pre-defined rules, ensuring the stability of the server. It is important to monitor memory usage and adjust the limit based on real-time performance data for optimal results.
Config Example
stream {
server {
kmp_cc_out_video_mem_limit 52428800; # 50 MB limit
}
}Setting the limit too low may lead to stream failures or degraded performance.
Ensure that the value is specified as an integer representing bytes, not kilobytes or megabytes directly.