kmp_rtmp_out_min_process_delay

Sets the minimum processing delay for RTMP output streams in NGINX.

Syntaxkmp_rtmp_out_min_process_delay delay_in_milliseconds;
Defaultnone
Contextstream, stream server
Arguments1

Description

The kmp_rtmp_out_min_process_delay directive configures the minimum delay between processing packets in outgoing RTMP streams handled by the Kaltura Media Framework. This parameter can be particularly crucial for ensuring a smooth, uninterrupted streaming experience by regulating the flow of data packets. By setting a specific delay, it controls how often the server processes and sends streams to clients, effectively acting as a throttling mechanism to prevent network congestion and buffer overflows.

The value assigned to this directive specifies the minimum time (in milliseconds) to wait before the next processing operation can begin. When the directive is set, if the time interval since the last processed packet is less than the configured delay, the server will pause until the minimum delay is satisfied. This can enhance performance and stabilize output in scenarios where the output stream could potentially overwhelm the network bandwidth. However, care should be taken when setting this value, as excessive delays could result in increased latency for end-users.

Config Example

stream {
    server {
        kmp_rtmp_out_min_process_delay 200;
    }
}

Setting the delay too low may lead to overwhelming the network, causing packet loss.

Setting the delay too high can introduce unacceptable latency into the streaming workflow.

← Back to all directives