<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 21, 2019 at 7:00 AM pisymbol . <<a href="mailto:pisymbol@gmail.com">pisymbol@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 20, 2019 at 11:52 PM Guillaume Desmottes <<a href="mailto:guillaume.desmottes@collabora.com" target="_blank">guillaume.desmottes@collabora.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF">
    <p>Hi, <br>
    </p>
    <p>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).<br>
    </p>
    <p>See this example about how to use it:<br>
<a class="gmail-m_-1877279827551482612gmail-m_-3237633793052906843moz-txt-link-freetext" href="https://gstreamer.freedesktop.org/documentation/additional/design/tracing.html?gi-language=c#print-all-type-of-latencies-for-a-pipeline" target="_blank">https://gstreamer.freedesktop.org/documentation/additional/design/tracing.html?gi-language=c#print-all-type-of-latencies-for-a-pipeline</a></p>
    <p>And some doc in its source file:
<a class="gmail-m_-1877279827551482612gmail-m_-3237633793052906843moz-txt-link-freetext" href="https://gitlab.freedesktop.org/gstreamer/gstreamer/blob/master/plugins/tracers/gstlatency.c#L21" target="_blank">https://gitlab.freedesktop.org/gstreamer/gstreamer/blob/master/plugins/tracers/gstlatency.c#L21</a><br>
    </p></div></blockquote><div>First off thanks! <br></div><div><br></div><div>But it crashes gstreamer:<br></div><div><br></div><div>sudo env GST_DEBUG="GST_TRACER:7" GST_TRACERS="latency(flags=reported)" myapp</div><div>...start pipeline...</div><div>...after about a second...<br></div><div>0:00:04.976342329  5832      0x13c6de0 TRACE             GST_TRACER :0:: latency, src=(string)nvcam1_src, sink=(string)mfsink_sink, time=(guint64)93748468;<br><br>(earheight:5832): GStreamer-CRITICAL **: gst_event_get_structure: assertion 'GST_IS_EVENT (event)' failed<br><br>(earheight:5832): GStreamer-CRITICAL **: gst_structure_id_get: assertion 'GST_IS_STRUCTURE (structure)' failed<br>Segmentation fault (core dumped)</div><br></div></div></blockquote><div><br></div><div>Is this a bug in gstreamer or nvcamerasrc?</div><div><br></div><div>-aps<br></div></div></div>