mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-20 02:00:05 -08:00
1.1 KiB
1.1 KiB
Route absolute timestamps
Some streaming protocols allow to route absolute timestamps, associated with each frame, that are useful for synchronizing several video or data streams together. In particular, MediaMTX supports receiving absolute timestamps with the following protocols and devices:
- HLS (through the
EXT-X-PROGRAM-DATE-TIMEtag in playlists) - RTSP (through RTCP reports, when
useAbsoluteTimestampistruein settings) - WebRTC (through RTCP reports, when
useAbsoluteTimestampistruein settings) - Raspberry Pi Camera
and supports sending absolute timestamps with the following protocols:
- HLS (through the
EXT-X-PROGRAM-DATE-TIMEtag in playlists) - RTSP (through RTCP reports)
- WebRTC (through RTCP reports)
A library that can read absolute timestamps with HLS is gohlslib.
A library that can read absolute timestamps with RTSP is gortsplib.
A browser can read absolute timestamps with WebRTC if it exposes the estimatedPlayoutTimestamp statistic.