gstrtpbin current bandwidth and latency

Olivier Crête olivier.crete at collabora.co.uk
Tue Mar 29 10:36:27 PDT 2011


On Tue, 2011-03-29 at 12:29 -0500, Myles Megyesi wrote:
> Thanks the bandwidth works great. By latency I actually meant the
> end-to-end delay from server to client. Is there a way to find that
> info?

Maybe look for "rb-round-trip" in the stats ?

Olivier

> 2011/3/29 Olivier Crête <olivier.crete at collabora.co.uk>
>         
>         On Mon, 2011-03-28 at 20:41 -0500, Myles Megyesi wrote:
>         > Hi,
>         >
>         > Is there a way to find the bandwidth and latency of a
>         gstrtpbin
>         > stream? On the
>         > server side I need to find the outgoing bandwidth and on the
>         client
>         > side I
>         > need to find the incoming bandwidth. I also need to find the
>         latency
>         > (time
>         > delay) on the client side. Thanks.
>         
>         
>         I guess you mean the latency added by the jitterbuffer in
>         rtpbin? It's
>         controlled by a property on rtpbin.
>         
>         AS for the bandwidth and other stats, you can get them from
>         the "stats"
>         property of the rtpsource object that you can get from the
>         rtpsession
>         object with something like:
>         
>         GObject *rtpsession, *rtpsource;
>         GstStructure *stats;
>         g_signal_emit_by_name(rtpbin, "get-internal-session",
>         sessionid,
>         &rtpsession);
>         g_signal_emit_by_name(rtpsession, "get-source-by-ssrc, ssrc,
>         &rtpsource);
>         g_object_get(rtpsource, "stats", &stats, NULL);
>         
>         --
>         Olivier Crête
>         olivier.crete at collabora.co..uk
>         
>         _______________________________________________
>         gstreamer-devel mailing list
>         gstreamer-devel at lists.freedesktop.org
>         http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>         
> 
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

-- 
Olivier Crête
olivier.crete at collabora.co.uk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20110329/33f823f1/attachment.pgp>


More information about the gstreamer-devel mailing list