How to get latency and packet-loss from udpsrc

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

How to get latency and packet-loss from udpsrc

mapcol
This post was updated on .
I have two pipelines for sending and receiving streaming via UDP (udpsink ---> udpsrc)

How do I get statistics about latency and packet-loss from udpsrc?
Reply | Threaded
Open this post in threaded view
|

Re: How to get latency and packet-loss from udpsrc

Sebastian Dröge-3
On Mon, 2016-08-29 at 05:44 -0700, mapcol wrote:
> I have to pipelines for sending and receiving streaming via UDP
>
> How do I get statistics about latency and packet-loss from udpsrc?

udpsrc can't do that for you, and UDP in general does not allow you to
get such statistics. You need a higher-layer protocol for that, e.g.
RTP with RTCP.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (949 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: How to get latency and packet-loss from udpsrc

mapcol
Thx,

How would I do that with rtp/ rtcp elements? Does that mean I have to remove udpsink and udpsrc from my application?
Reply | Threaded
Open this post in threaded view
|

Re: How to get latency and packet-loss from udpsrc

Sebastian Dröge-3
On Tue, 2016-08-30 at 05:56 -0700, mapcol wrote:
> Thx,
>
> How would I do that with rtp/ rtcp elements? Does that mean I have to
> remove udpsink and udpsrc from my application?

No, but everything before/after that will be different. Look at the
examples with rtpbin in gst-plugins-good/tests/examples/rtp.

Also note that this uses a completely different protocol than before,
both sender and receiver need to handle that correctly.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (949 bytes) Download Attachment