pckg_format

The `pckg_format` directive in Kaltura Media Framework specifies the media packaging format for HTTP-based media delivery.

Syntaxpckg_format format;
Defaultnone
Contexthttp, server, location
Arguments1

Description

The pckg_format directive allows users to define the format in which media files are packaged for delivery via HTTP when utilizing the Kaltura Media Framework. This directive is utilized within http, server, or location contexts, making it versatile for different levels of configuration. By setting this directive, administrators can control whether the output media is packaged in specific formats tailored for various streaming protocols, such as HLS, DASH, or others relevant to the Kaltura ecosystem.

The directive takes a single argument that typically represents the desired packaging format, such as hls for HTTP Live Streaming or dash for Dynamic Adaptive Streaming over HTTP. When an HTTP request is made to serve media, the Kaltura Media Framework checks the pckg_format setting to determine how to format the files before they get delivered to the client. This ensures that the media is optimized for consumption based on the specified format, which can enhance playback compatibility across different devices and network conditions.

Proper usage of this directive is crucial as it directly affects the user experience. If incompatible formats are set based on the client's capabilities or configured protocols, it may result in playback errors or degraded performance. Therefore, understanding the media types and target audience's playback environments is essential when configuring this directive.

Config Example

http {
    server {
        location /media {
            pckg_format hls;
        }
    }
}

Ensure that the specified format is compatible with the streaming protocols being used.

Misconfiguration may result in media not being served correctly, leading to playback errors.

The directive must be placed in the appropriate context (http, server, or location) to function correctly.

← Back to all directives