How to get the RTP/RTCP timestamps at Rx for video frames send from Tx.

Nicolas Dufresne nicolas at ndufresne.ca
Sat Oct 27 07:56:03 UTC 2018


Le vendredi 26 octobre 2018 à 04:43 -0500, vk_gst a écrit :
> Hello,
> 
> I have an application that send video packets from an iMX6 device to an
> Ubuntu PC. I want to have the knowledge of  the timestamps of the video
> packets at the receiver side, to analyse the incoming data flow. 
> Right now I installed a python timer and for every push buffer, note down
> the time. However it would be better, if I can get the timestamps from the
> video packets itself. 
> 
> Below are my pieplines: 
> 
> Tx pipeline: 
> v4l2src -> h264encode ->  rtph264pay -> rtpbin -> udpsink(port=5000) ->
> rtpbin.send_rtcp(port=5000) -> rtpbin.recv_rtcp(port=5000)
> 
> Rx pipeline: 
> udpsrc(port=5000) -> rtpbin -> rtph264depay -> avdec_h264 ->
> rtpbin.recv_rtcp(port=5000) -> rtpbin.send_rtcp(port=5000) -> videosink
> 
> 
> 1. Does anyone have any idea on how to read the timestamps in my
> application?
> 2. Does rtp send and rtcp send/recv have to be on the same port(in my case
> 5000), or should I use different ports for rtp and rtcp ? 

You can ways add a pad probe in your application in order to inspect
from your application the data flow.

> 
> 
> P.S. I know that the log file does have the timestamps, but I would prefer
> it to be accessible from my application without the log information. 
> 
> 
> 
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20181027/a02f529c/attachment.sig>


More information about the gstreamer-devel mailing list