RTP timestamps in AppSink

Tim Müller tim at centricular.com
Fri Feb 2 08:24:28 UTC 2018


On Thu, 2018-02-01 at 11:09 +0100, Frederik Leth wrote:

Hi Frederik,

> Is it possible to get the RTP timestamps from the buffer in the
> appsink element ?
> I have read, that if the RtpBin is in 'buffer-none' the PTS should
> contain the RTP timestamp.
> PTS timestamp is 8 bytes whereas RTP timestamp is 4 bytes ?
> When I run my program the timestamps from PTS is not the same I see
> in wireshark on the incomming packets.

What is the data you are getting in the appsink? Is it RTP packets, or
are you talking about the depayloaded/decoded data and want to know
what the original RTP timestamp was?

If it's RTP packets you could use gst_rtp_buffer_map() +
gst_rtp_buffer_get_timestamp().

Cheers
 -Tim

-- 
Tim Müller, Centricular Ltd - http://www.centricular.com


More information about the gstreamer-devel mailing list