kmp_cc_out_subtitle_mem_limit
Sets the memory limit for subtitle data processing in the Kaltura Media Framework.
Description
The kmp_cc_out_subtitle_mem_limit directive specifies the maximum amount of memory that can be allocated for handling subtitle data within the Kaltura Media Framework's common NGINX module. This directive is particularly useful in environments where subtitle data may be substantial, affecting memory usage and performance. By controlling memory allocation, administrators can prevent potential memory overconsumption that might otherwise lead to performance degradation or service interruptions.
When configuring this directive, the argument should be specified in bytes, allowing granularity in memory allocation settings. The NGINX server will enforce the limit specified by this directive whenever subtitles are processed, ensuring that the configured memory cap is not exceeded. It is essential to set this limit appropriately based on the expected subtitle load and server resources, as a too low value might lead to subtitle data being truncated, while too high a value might lead to inefficiencies in resource utilization.
The directive can be placed inside a stream or stream server context, making it versatile in various deployment scenarios, such as handling live video streams or media delivery services. Proper use of this directive contributes to maintaining an optimal balance between resource availability and application performance within the Kaltura environment.
Config Example
stream {
server {
listen 12345;
kmp_cc_out_subtitle_mem_limit 10m;
}
}Ensure the memory limit is configured adequately to avoid truncation of subtitle data.
Be cautious when increasing the limit; excessive memory usage can impact overall server performance.