Tracer API Usage in Application

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Tracer API Usage in Application

kwalsh
Hello everyone,

I've stumbled across this API and it appears to have everything I'm currently looking for to measure intra-pipeline or element latency for our C/C++ application.  Unfortunately I haven't been able to successfully compile, for example I wanted to use gstlatency.c function calculate_latency, but I get linking errors.  I tried to use Basic Tutorial 7 code and implement some of Tracer API functions.

The latency information works great for pipeline simulation, i.e. macros with gst-launch-1.0 call.  But for my purposes we're looking to gather latency information realtime and use those values.  

Documentation was a little thin on this front, so I wanted to see if anyone had any basic examples of this in C/C++?  Also, if I'm way off please let me know.

GStreamer Version: 1.14.5 (negotiable to change)
OS: Ubuntu 18.04 LTS

Thanks,
Keegan