kmp_cc_out_subtitle_buffer_size

Defines the buffer size for subtitle output in the Kaltura Media Framework Common NGINX module.

Syntaxkmp_cc_out_subtitle_buffer_size size;
Defaultnone
Contextstream, stream server
Arguments1

Description

The kmp_cc_out_subtitle_buffer_size directive specifies the size of the buffer used for sending subtitle data in the Kaltura Media Framework. This buffer plays a crucial role during the streaming of subtitles alongside video content. By configuring this value, administrators can optimize the performance and latency of subtitle delivery based on the specific demands of their media applications.

The directive accepts a single argument, which should be a size value, such as 16k or 1m. This value determines the maximum size of the buffer allocated for subtitle outputs, allowing for efficient data handling during streaming. If the buffer is too small, it might lead to dropped or stuttered subtitles, while an excessively large buffer might introduce latency, especially in real-time streaming scenarios. Therefore, finding the right balance based on testing and monitoring is essential.

This directive can be placed within the stream or stream server context in your NGINX configuration file, which emphasizes its application in handling media streams effectively. Since subtitle delivery is a component of the overall media streaming process, tuning this setting can contribute to a smoother viewing experience for end-users in applications that utilize the Kaltura Media Framework.

Config Example

stream {
    server {
        listen 1935;
        kmp_cc_out_subtitle_buffer_size 64k;
    }
}

Setting the buffer size too low can cause subtitles to lag or drop, affecting viewer experience.

Overly large buffer sizes could increase latency, which is not ideal for live streaming situations.

← Back to all directives