how to capture sequence no. and time stamp of RTP/UDP packets
Sebastian Dröge
sebastian at centricular.com
Sat May 2 00:58:52 PDT 2015
On Do, 2015-04-30 at 17:39 +0000, Raheeb Muzaffar wrote:
> Hello,
> I am multicasting video stream using RTP (rtph264pay) and UDP (udpsink) from a source node. At the client end the video stream is decoded and Displayed As They stream. I have coded this using gstreamer in c / c ++. I now want to
> 1. At the source, capture the sequence no., Packet size (in bytes) and timestamp of each packet of the video stream being Transmitted over the network.
> 2. At receiver, capture the sequence no. And timestamp of the received packets so as to measure delay and packet loss.
> It would be great if someone Could help me suggest a way to implement this in C / C ++. I do not want to use GST debug since I have to do some processing with the video packets. Here is the code for the server and client.
Why don't you want to use GStreamer for that?
But in any case, if you don't you'll have to parse the RTP packets
yourself. See https://tools.ietf.org/html/rfc3550 section 5 for the
packet format.
If you use GStreamer, you could use the gst_rtp_buffer_map() function
from libgstrtp.
--
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: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150502/2cb8a897/attachment-0001.sig>
More information about the gstreamer-devel
mailing list