Get RTP timestamp of the buffer

Sebastian Dröge sebastian at centricular.com
Mon May 8 13:30:49 UTC 2017


On Sat, 2017-05-06 at 15:08 +0300, Yurii Monakov wrote:
> Hi All!
> 
> Any thoughts on this?
> 
> I'm developing video recording application for air traffic control
> system. And RTP <-> NTP timestams matching is essential for later
> playback of multiple streams (audio, video, digital records).
> So I need to get perfect time of the first key frame in each video
> sequence (~20 min long).
> 
> Maybe I can alter the source code or subclass some gstreamer
> elements?

If you set buffer-mode=none on rtpbin, you will get the RTP timestamps
(extended) as PTS on the buffers.

There's also this extension that is not merged yet which would allow
you to get things more directly:
https://bugzilla.gnome.org/show_bug.cgi?id=762628


And independent of that, rtpbin already has all functionality needed
for synchronizing RTP packets based on their RTP timestamps, the
NTP/RTP timestamp mapping and a NTP clock in various ways. If that is
something you're looking for.
Generally, all you want to do is already possible in various ways. The
best way to do it depends on the bigger picture of what you want to do.

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1000 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170508/dffe7e22/attachment.sig>


More information about the gstreamer-devel mailing list