ll_segmenter_video_duration_margin

The `ll_segmenter_video_duration_margin` directive sets the acceptable duration margin for segmented video streams processed by the Kaltura Media Framework.

Syntaxll_segmenter_video_duration_margin duration_in_milliseconds;
Defaultnone
Context
Arguments1

Description

The ll_segmenter_video_duration_margin directive is an essential parameter within the Kaltura Media Framework's NGINX module, aimed at configuring the maximum allowed duration variance for video segments. This margin is critical in ensuring that the segmentation of video files aligns with playback requirements, allowing for slight variations in segment durations without leading to playback issues or stream disruptions. When the actual segment duration exceeds this specified margin compared to expected values, the segment handling logic may adapt the segmenting behavior or reject certain segments to maintain a consistent viewing experience.

This directive takes a single numeric argument, which represents the duration margin in milliseconds. Setting an appropriate value is crucial; a very tight margin may lead to frequent segment rejection, while a very loose margin may affect playback synchronization. Therefore, it is suggested to test and adjust this parameter based on specific use cases and the nature of the video content being processed. Its placement in the configuration can impact the overall media pipeline's performance since it directly influences segment creation and handling logic.

Config Example

ll_segmenter_video_duration_margin 100;

Setting the margin too low may cause frequent segment rejections.

A margin that is too high can lead to synchronization issues during playback.

← Back to all directives