<HTML><BODY><div>Hi.</div><div> </div><div>Given following chunk of code:</div><div><div><div> </div><div> var metaTs = buf.GetReferenceTimestampMeta();</div></div><div> if (metaTs.Timestamp > 0)</div><div><div> { //ok </div><div> cameraTs = metaTs.Timestamp;</div><div> }</div><div> else</div><div> { //what to do here??</div><div> cameraTs = UtcNow;</div><div> }</div></div></div><div> </div><div>For now I use machine time which is not great — few seconds shift can be.</div><div>The obvious but coarse and not robust solution is to use cameraTs += 1/fps, but</div><div>it will give millisecond precision. Can we do better? Can I use pipeline clocks to interpolate</div><div>missing camera timestamps? Maybe it can be done automatically by gst within some settings, like</div><div>Rtspsrc-buffer-mode or <span style="font-family: var(--vkui--octavius_font_family_global,var(--vkui--font_family_base,Helvetica,Arial,sans-serif)); letter-spacing: var(--vkui--font_text--letter_spacing--regular,normal);">Rtspsrc-ntp-time-source ?</span></div><div> </div><div><span style="font-family: var(--vkui--octavius_font_family_global,var(--vkui--font_family_base,Helvetica,Arial,sans-serif)); letter-spacing: var(--vkui--font_text--letter_spacing--regular,normal);">My current rtsp settings are:</span></div><div><div><div><span style="font-family: var(--vkui--octavius_font_family_global,var(--vkui--font_family_base,Helvetica,Arial,sans-serif)); letter-spacing: var(--vkui--font_text--letter_spacing--regular,normal);"> rtspSrc["add-reference-timestamp-meta"] = true;</span></div><div><span style="font-family: var(--vkui--octavius_font_family_global,var(--vkui--font_family_base,Helvetica,Arial,sans-serif)); letter-spacing: var(--vkui--font_text--letter_spacing--regular,normal);"> rtspSrc["buffer_mode"] = 0; //Only use RTP timestamps</span></div></div><div> </div><div>Thanks in advance.</div><div> </div></div><div> </div><div> </div><div data-signature-widget="container"><div data-signature-widget="content"><div>--<br>С Уважением,<br>Шаров Антон</div></div></div></BODY></HTML>