kmp_timescale

The `kmp_timescale` directive configures the time scale for Kaltura Media Protocol (KMP) streaming.

Syntaxkmp_timescale time_scale;
Defaultnone
Context
Arguments1

Description

The kmp_timescale directive is an essential part of the Kaltura Media Framework that governs the time scale used for media streaming protocols, particularly KMP. This directive allows you to set a specific time scale which dictates how the timestamps in the media packets are interpreted and synchronized during streaming. By adjusting the time scale, you can optimize performance based on the specific media requirements, ensuring smooth playback and synchronization across different media components.

In practical terms, the kmp_timescale helps manage how often media data is sampled and sent over the KMP protocol. It directly influences latency and the precision of timestamps, which are critical for media synchronization in real-time applications. This directive can impact various factors, including buffering strategies and playback responsiveness. Careful consideration is required when selecting a value for kmp_timescale, as it needs to align with the characteristics of the streaming media being delivered, such as frame rates and encoding formats.

Config Example

# Set the KMP time scale to 1000 (milliseconds)
kmp_timescale 1000;

Ensure the time scale value is appropriate for your media type; incorrect values may lead to playback issues.

Using a very low or high time scale can affect performance, causing increased latency or jitter in streaming.

← Back to all directives