pckg_enc_scheme

The `pckg_enc_scheme` directive specifies the encoding scheme to be used for packaged content in the Kaltura Media Framework.

Syntaxpckg_enc_scheme scheme;
Defaultnone
Contexthttp, server, location
Arguments1

Description

The pckg_enc_scheme directive is an important part of the Kaltura Media Framework's NGINX module that governs how media content is packaged and encoded during streaming. This directive allows administrators to define the encoding scheme to be utilized, which can vary based on the media type, delivery demands, or playback requirements. The directive can be used globally within the http, server, or location contexts, offering flexibility in how it can be applied throughout an NGINX configuration.

When configuring this directive, it expects a single argument which specifies the desired encoding scheme. This allows for customization based on the specific needs of the deployment. The specified scheme can optimize performance or enhance compatibility with various media players and delivery methods. Without proper configuration, media could be poorly encoded or fail to play back as intended across different platforms or devices.

Configuring the pckg_enc_scheme directive correctly is critical as it directly impacts the functionality of media delivery and playback. Incorrect settings may lead to issues such as playback failures, suboptimal streaming quality, or incompatibility with certain media clients. As such, understanding the available encoding schemes and testing their impact on media delivery is a key part of utilizing this directive effectively.

Config Example

http {
    pckg_enc_scheme "h264";
}

server {
    listen 80;
    location /stream {
        pckg_enc_scheme "h265";
    }
}

Make sure to test the selected encoding scheme across different media clients to ensure compatibility.

Misspelling the scheme name will lead to the directive being ignored, resulting in default behavior.

Using an unsupported encoding scheme could lead to playback errors or degraded performance.

← Back to all directives