get RTP timestamp

Sebastian Dröge sebastian at centricular.com
Tue May 10 06:30:35 UTC 2016


On Fr, 2016-05-06 at 03:09 -0700, Jek_point wrote:
> Hello! I'm trying to get the RTP timestamp of the subsequent output to a
> video file. How can I do that?

Please describe more detailed what exactly you want to do and why. You
want to get the RTP timestamp that corresponds to a specific video
frame?

In general, if you're using rtspsrc you don't need to use the
rtpsession element (rtspsrc already contains an rtpbin), and you don't
need to use rtpsession usually but should rather use rtpbin instead.


To get the RTP timestamps directly on the buffers as timestamp, you can
set the buffer-mode=none property on rtpbin. It will then give you the
(wraparound-corrected) RTP timestamps as buffer timestamps. However
this won't work (depending on your setup) not very well for
playback/synchronization.

What's the bigger picture of what you want to achieve?

-- 
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: 949 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160510/6c32125b/attachment.sig>


More information about the gstreamer-devel mailing list