Measuring pipeline latency

pisymbol . pisymbol at gmail.com
Wed Aug 21 18:23:23 UTC 2019


On Wed, Aug 21, 2019 at 7:00 AM pisymbol . <pisymbol at gmail.com> wrote:

>
>
> 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)
>
>
Is this a bug in gstreamer or nvcamerasrc?

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


More information about the gstreamer-devel mailing list