help to measure bandwidth
Emile Semmes
emile.semmes at e6group.com
Sun Jun 3 07:26:25 PDT 2012
Hi Simo,
You can try attaching a data probe to the udpsrc or tcpclientsrc src pad
with gst_pad_add_buffer_probe(). In the callback, you can keep track of
the size of the incoming GstBuffer (GstBuffer->size) which is most
likely the MTU size and get the timestamp using
gst_util_get_timestamp(). With that you should be able to determine the
incoming bandwidth. See
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/chapter-dataaccess.html#section-data-probe
for an example on how to add a data probe.
Another option is using an identity element and connecting a callback to
the handoff signal it emits. You can place the identity element anywhere
in your pipeline to determine the bandwidth between two elements.
You might want to make sure it's synchronous so that your timestamps are
valid. It should be but double-check with something like wireshark.
Take care,
Emile
--
Emile Semmes
Software Consultant
e6 Group, LLC
Office: (630) 376-0626
www.e6group.com
Guru.com: http://www.guru.com/freelancers/e6group
On 6/2/2012 1:08 PM, simosimo wrote:
> hello,
>
> Im doing some experimental test on GStreamer, and I get to the fourth
> parameter of quality of service: the bandwidth.
> can someone suggest me some techniques to measure the network bandwidth used
> by my streaming pipeline.
> In fact, I do performance measurements, therefore, I try to find the impact
> of using multiple instance on the computer on the network that makes
> transcoding , so I'd like to measure the bandwidth according to number of
> instance supported by the computer (CPU).
>
> Thank you for your help.
>
>
> Simo
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/help-to-measure-bandwidth-tp4655169.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
More information about the gstreamer-devel
mailing list