Measuring pipeline latency

Guillaume Desmottes guillaume.desmottes at collabora.com
Wed Aug 21 03:52:24 UTC 2019


Hi,

This is exactly what the latency tracer is for. It can provide the 
pipeline latency (sink to source), per element latency and the announced 
latency (from the LATENCY query).

See this example about how to use it:
https://gstreamer.freedesktop.org/documentation/additional/design/tracing.html?gi-language=c#print-all-type-of-latencies-for-a-pipeline

And some doc in its source file: 
https://gitlab.freedesktop.org/gstreamer/gstreamer/blob/master/plugins/tracers/gstlatency.c#L21

On 21/08/2019 00:45, pisymbol . wrote:
> I have Googled this topic extensively but I still don't have a clear 
> answer yet.
>
> I can use the "identity" function to try to come up with something 
> adhoc but I see there is a "latency" plugin with almost zero doc. Can 
> one use that to measure latency between source and sink? Another topic 
> that comes up is the ability to query latency via the GstQuery object. 
> But I couldn't find a real example and I'm not sure how ones uses it!?
>
> I'm trying to measure two things:
>
> 1) Latency between one or more elements in my pipeline
>
> 2) Latency across my entire pipeline
>
> I'm doing this in Python. What are the best practices here?
>
> Thanks!
>
> -aps
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190821/b0e8e41a/attachment.html>


More information about the gstreamer-devel mailing list