kmp_cc_out_timescale

The `kmp_cc_out_timescale` directive defines the output timescale for Kaltura Media Framework’s content publishing.

Syntaxkmp_cc_out_timescale value;
Defaultnone
Contextstream, stream server
Arguments1

Description

The kmp_cc_out_timescale directive is part of the Kaltura Media Framework Common NGINX Module, where it can be used within the context of stream and stream server blocks. This directive accepts a single argument that specifies the timescale for output content, which plays a crucial role in the timing and synchronization of media streams. Setting this directive correctly ensures that the media output adheres to a defined temporal framework, which is critical for maintaining the quality and playback performance during streaming services.

When this directive is invoked, it impacts the way media timestamps are interpreted and utilized within the Kaltura Media Protocol (KMP). By specifying the output timescale, content can be processed with a consistent frame of reference, allowing for more precise control over the encoding and distribution of streaming media. For example, if you define a timescale of 90000, this would typically align with common media timing standards such as those used in video files encoded for HLS or DASH streaming protocols, where the reference frame rate is crucial for correct playback and synchronization. It's important to note that incorrect setting of this parameter could result in desynchronization of audio and video tracks during playback.

Config Example

stream {
    server {
        # Configure the output timescale for Kaltura streaming
        kmp_cc_out_timescale 90000;
    }
}

Ensure the timescale value matches the frame rate of the media being processed to avoid playback issues.

Be cautious when changing timescale values mid-stream, as this can lead to synchronization issues.

It's recommended to test configuration changes in a staging environment before deploying to production.

← Back to all directives