<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" 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="moz-txt-link-freetext" href="https://gstreamer.freedesktop.org/documentation/additional/design/tracing.html?gi-language=c#print-all-type-of-latencies-for-a-pipeline">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="moz-txt-link-freetext" href="https://gitlab.freedesktop.org/gstreamer/gstreamer/blob/master/plugins/tracers/gstlatency.c#L21">https://gitlab.freedesktop.org/gstreamer/gstreamer/blob/master/plugins/tracers/gstlatency.c#L21</a><br>
    </p>
    <div class="moz-cite-prefix">On 21/08/2019 00:45, pisymbol . wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAPpy_fHPxJaZjE2nG+yB9fY+rW=ii3uTrKBudFZUwhbKOyTdcA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>I have Googled this topic extensively but I still don't
          have a clear answer yet.</div>
        <div><br>
        </div>
        <div>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!?<br>
        </div>
        <div><br>
        </div>
        <div>I'm trying to measure two things:</div>
        <div><br>
        </div>
        <div>1) Latency between one or more elements in my pipeline</div>
        <div><br>
        </div>
        <div>2) Latency across my entire pipeline</div>
        <div><br>
        </div>
        <div>I'm doing this in Python. What are the best practices here?</div>
        <div><br>
        </div>
        <div>Thanks!<br>
        </div>
        <div><br>
        </div>
        <div>-aps<br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></pre>
    </blockquote>
  </body>
</html>