Interpolate sender time in case of missing reference timestamp meta, sync with sender.
Антон Шаров
sharov_am at mail.ru
Tue Sep 5 17:15:59 UTC 2023
Hi.
Given following chunk of code:
var metaTs = buf.GetReferenceTimestampMeta();
if (metaTs.Timestamp > 0)
{ //ok
cameraTs = metaTs.Timestamp;
}
else
{ //what to do here??
cameraTs = UtcNow;
}
For now I use machine time which is not great — few seconds shift can be.
The obvious but coarse and not robust solution is to use cameraTs += 1/fps, but
it will give millisecond precision. Can we do better? Can I use pipeline clocks to interpolate
missing camera timestamps? Maybe it can be done automatically by gst within some settings, like
Rtspsrc-buffer-mode or Rtspsrc-ntp-time-source ?
My current rtsp settings are:
rtspSrc["add-reference-timestamp-meta"] = true;
rtspSrc["buffer_mode"] = 0; //Only use RTP timestamps
Thanks in advance.
--
С Уважением,
Шаров Антон
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20230905/dab0efcb/attachment.htm>
More information about the gstreamer-devel
mailing list