pckg_max_segment_index
The `pckg_max_segment_index` directive sets the maximum segment index used in media packaging for adaptive bitrate streaming.
Description
The pckg_max_segment_index directive is utilized within the Kaltura Media Framework Common NGINX Module. Its primary role is to define the upper limit for the segment index that will be utilized in the media packaging process for adaptive bitrate streaming. By specifying this limit, users can control how many segments are made available for playback per media asset, ensuring efficient bandwidth usage and playback performance while accommodating varying network conditions.
This directive accepts a numeric argument that dictates the highest index number of the segment allowable. When this index is reached, any further segments produced will be capped at this maximum while packaging, effectively allowing for content management that conforms to streaming protocols such as HLS and DASH. This behavior is particularly significant for large video assets subjected to adaptive bitrate techniques, as it allows for optimized resource allocation and can prevent performance degradation due to excessive segment creation.
Considering the contexts in which this directive can be applied, it can be placed inside http, server, or location blocks in the NGINX configuration file. Therefore, it offers flexibility to administrators to establish different settings based on the specific routing and handling of media streaming across various server locations or contexts.
Config Example
http {
pckg_max_segment_index 10;
server {
location /media {
# media serving settings
}
}
}Ensure that the value provided is a valid non-negative integer.
Setting too high a value can lead to increased memory usage and potential performance issues.
This directive may not take effect unless the Kaltura Media Framework is properly configured and initialized in the NGINX context.