How to calc latency through gstreamer code

saketbafna82 at saketbafna82 at
Mon May 29 05:23:57 UTC 2017

This is Saket and new to gstreamer.

I wanted to measure latency for complete pipeline also plugin wise.
through command line I could able to measure:
GST_DEBUG="GST_TRACER:7" GST_TRACERS=latency filesrc ! decodebin !

Now same stuff I want to do in my application.

I wrote one gstreamer app which does video playback.
filesrc --> decodebin -->  videosink.
It worked absolutely fine.

Then, I tried with tracer APIs to get latency figure but, could not
understand how to use.
I googled for example code but, didn't get any example code to use.

Can anyone please help me with some example code?

Saket Bafna

View this message in context:
Sent from the GStreamer-devel mailing list archive at

More information about the gstreamer-devel mailing list