<div dir="ltr">Thank you Nicolas, will do!</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Sa., 2. Mai 2020 um 23:00 Uhr schrieb Nicolas Dufresne <<a href="mailto:nicolas@ndufresne.ca">nicolas@ndufresne.ca</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Le samedi 02 mai 2020 à 19:01 +0200, Michael a écrit :<br>
> <br>
> Hello everybody,<br>
> <br>
> <br>
> I wanna investigate latency issues in my pipeline!<br>
> <br>
> I found that using Tracers should be the way to go with `latencytracer`, but<br>
> ... <br>
> I couldn't find any example except using it in `gst-launch-1.0`<br>
> <br>
> GST_DEBUG="GST_TRACER:7" GST_TRACERS=latency(flags=element)<br>
> How would I enable it in a python script?  🤷‍♂️<br>
> <br>
> GST_TRACERS=latency(flags=element)<br>
> <br>
> Finding a way for debugging wasn't that easy starting from zero.<br>
> <br>
> Gst.debug_set_active(True)<br>
> #Gst.debug_set_default_threshold(4)<br>
> #Gst.debug_set_threshold_for_name('test*', Gst.DebugLevel.TRACE  )<br>
> #Gst.debug_set_threshold_for_name("qt*", 5)<br>
> <br>
> But how would I trace the latency for each Element in the current pipe during<br>
> runtime, in python?<br>
<br>
There is currently no API to the tracers, this is something we should do, we we<br>
already have few bits marked as unstable API because their API isn't yet in a<br>
shape we are confident to freeze it.<br>
<br>
>From the time being, you need to set the env before starting the process or do<br>
this before calling Gst.init():<br>
<br>
        os.environ["GST_TRACERS"] = "latency(flags=element)"<br>
<br>
There is no way to turn on and off at run-time for now.<br>
<br>
> <br>
> Thank you in advance.<br>
> <br>
> Michael<br>
> <br>
> <br>
> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div>