Measuring pipeline latency

pisymbol . pisymbol at gmail.com
Wed Aug 21 11:00:42 UTC 2019


On Tue, Aug 20, 2019 at 11:52 PM Guillaume Desmottes <
guillaume.desmottes at collabora.com> wrote:

> 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
>
First off thanks!

But it crashes gstreamer:

sudo env GST_DEBUG="GST_TRACER:7" GST_TRACERS="latency(flags=reported)"
myapp
...start pipeline...
...after about a second...
0:00:04.976342329  5832      0x13c6de0 TRACE             GST_TRACER :0::
latency, src=(string)nvcam1_src, sink=(string)mfsink_sink,
time=(guint64)93748468;

(earheight:5832): GStreamer-CRITICAL **: gst_event_get_structure: assertion
'GST_IS_EVENT (event)' failed

(earheight:5832): GStreamer-CRITICAL **: gst_structure_id_get: assertion
'GST_IS_STRUCTURE (structure)' failed
Segmentation fault (core dumped)

?

-aps
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190821/c3414dbf/attachment.html>


More information about the gstreamer-devel mailing list