Calculation of bandwidth in gstreamer

Tim-Philipp Müller t.i.m at zen.co.uk
Fri Jan 4 03:43:28 PST 2013


On Thu, 2013-01-03 at 23:46 -0800, arpita banerjee wrote:

Hi,

> How I can get the bandwidth value at server side using gstreamer for
> video streaming?

It's hard to answer this question without knowing at least *some*
contex, like what you are serving using which sink element etc.

If you are using the multifdsink element, it has a bunch of properties
which you can read out in regular intervals and then calculate the
bandwidth from that, like "bytes-served":

http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-multifdsink.html

per-client stats are available via the "get-stats" action signal.

Cheers 
 -Tim



More information about the gstreamer-devel mailing list