ts_kmp_timescale
The ts_kmp_timescale directive sets the timescale for Kaltura Media Protocol (KMP) streaming media components in an NGINX server.
Description
The ts_kmp_timescale directive is utilized within the Kaltura Media Framework's NGINX module to define the timescale for time-based media streaming. This directive is applicable in the stream and stream server contexts, affecting the way that media time representation is calculated and interpreted across the media components managed by NGINX. In practice, specifying this value allows for synchronization and accurate timestamping between different segments of media being handled by the server, thus ensuring smoother playback and better management of live streaming content.
The parameter follows a numerical format that represents the desired timescale in nanoseconds or another suitable unit, which the backend components use to adjust their timing mechanisms accordingly. This is crucial in scenarios where multiple media streams are being coordinated to prevent desynchronization issues that can arise from differing time references. It is important that the set timescale aligns with the expectations of the media components to optimize performance and delivery of content.
Config Example
stream {
server {
ts_kmp_timescale 1000000; # Sets timescale to 1 second
}
}Ensure the timescale value is appropriate for the type of media being streamed to avoid timing mismatches.
Misconfiguration can lead to playback issues, where segments may fall out of sync with their expected timestamps.
Timescale should be consistent across all streams handled by the NGINX server to maintain synchronization.