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. _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
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 [hidden email] _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel signature.asc (205 bytes) Download Attachment |
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?
2011/3/29 Olivier Crête <[hidden email]>
_______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
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 <[hidden email]> > > 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 > [hidden email]..uk > > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel > > > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel Olivier Crête [hidden email] _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel signature.asc (205 bytes) Download Attachment |
Free forum by Nabble | Edit this page |