Print processing latency

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Print processing latency

Saurabh Bora
Hi, 

I followed the link https://gstreamer.freedesktop.org/documentation/design/tracing.html#print-processing-latencies, set the environment variables and ran the pipeline as follows:
//--------------------------------------------------------------------------------------------------------------------------------
export GST_DEBUG="GST_TRACERS:7"
export GST_TRACERS=latency
gst-launch-1.0 audiotestsrc num-buffers=10 ! audioconvert ! volume volume=0.7 ! autoaudiosink

Output:
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Redistribute latency...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstAudioSinkClock
Got EOS from element "pipeline0".
Execution ended after 0:00:00.237344143
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
//----------------------------------------------------------------------------------------------

The above output is exactly the same as the output that I get when environment variables are not set.
Am I missing something here? What output must I expect?

Help Appreciated...

--
Thanks and Regards,
Saurabh Bora

PH NO : 7038166900
             [hidden email]

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Print processing latency

Nicolas Dufresne-5
Le lundi 25 mars 2019 à 22:16 +0530, Saurabh Bora a écrit :
> Hi,
>
> I followed the link https://gstreamer.freedesktop.org/documentation/design/tracing.html#print-processing-latencies, set the environment variables and ran the pipeline as follows:
> //--------------------------------------------------------------------------------------------------------------------------------
> export GST_DEBUG="GST_TRACERS:7"

I'm sorry for this, but there is no S to that debug section (/o\)

> export GST_TRACERS=latency
> gst-launch-1.0 audiotestsrc num-buffers=10 ! audioconvert ! volume volume=0.7 ! autoaudiosink
>
> Output:
> Setting pipeline to PAUSED ...
> Pipeline is PREROLLING ...
> Redistribute latency...
> Pipeline is PREROLLED ...
> Setting pipeline to PLAYING ...
> New clock: GstAudioSinkClock
> Got EOS from element "pipeline0".
> Execution ended after 0:00:00.237344143
> Setting pipeline to PAUSED ...
> Setting pipeline to READY ...
> Setting pipeline to NULL ...
> Freeing pipeline ...
> //----------------------------------------------------------------------------------------------
>
> The above output is exactly the same as the output that I get when environment variables are not set.
> Am I missing something here? What output must I expect?
>
> Help Appreciated...
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Print processing latency

Saurabh Bora
Ah..My Bad!!
Thanks for pointing it out Nicolas. I was able to see GST_TRACER logs

Actually, I am working on finding out latency for different elements in a live gstreamer pipeline which looks something like below:
v4l2src ! videoconvert ! vp8enc ! webrtcbin

As I am expecting to see output on the browser, I also need to find out end to end latency, from source(live camera feed) to destination(web browser). I believe enabling the environment variables would not suffice in this scenario.

Thanks and Regards,
Saurabh Bora

On Mon, Mar 25, 2019, 22:49 Nicolas Dufresne <[hidden email]> wrote:
Le lundi 25 mars 2019 à 22:16 +0530, Saurabh Bora a écrit :
> Hi,
>
> I followed the link https://gstreamer.freedesktop.org/documentation/design/tracing.html#print-processing-latencies, set the environment variables and ran the pipeline as follows:
> //--------------------------------------------------------------------------------------------------------------------------------
> export GST_DEBUG="GST_TRACERS:7"

I'm sorry for this, but there is no S to that debug section (/o\)

> export GST_TRACERS=latency
> gst-launch-1.0 audiotestsrc num-buffers=10 ! audioconvert ! volume volume=0.7 ! autoaudiosink
>
> Output:
> Setting pipeline to PAUSED ...
> Pipeline is PREROLLING ...
> Redistribute latency...
> Pipeline is PREROLLED ...
> Setting pipeline to PLAYING ...
> New clock: GstAudioSinkClock
> Got EOS from element "pipeline0".
> Execution ended after 0:00:00.237344143
> Setting pipeline to PAUSED ...
> Setting pipeline to READY ...
> Setting pipeline to NULL ...
> Freeing pipeline ...
> //----------------------------------------------------------------------------------------------
>
> The above output is exactly the same as the output that I get when environment variables are not set.
> Am I missing something here? What output must I expect?
>
> Help Appreciated...
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Print processing latency

Nicolas Dufresne-5
Le lundi 25 mars 2019 à 23:25 +0530, Saurabh Bora a écrit :
Ah..My Bad!!
Thanks for pointing it out Nicolas. I was able to see GST_TRACER logs

Actually, I am working on finding out latency for different elements in a live gstreamer pipeline which looks something like below:
v4l2src ! videoconvert ! vp8enc ! webrtcbin

I'd be really happy if you give a try on what m y Colleague and I have been working on for a while. It's a enhancement of the latency trace to add per-element effective latency and also reported latency. With that you should be able to see if an element is using more latency when it's max reported latency allow. Meanwhile, I can give you a hint, vp8enc has variable latency, unless you set the dealine= property. That assumes you're CPU is fast enough.



As I am expecting to see output on the browser, I also need to find out end to end latency, from source(live camera feed) to destination(web browser). I believe enabling the environment variables would not suffice in this scenario.


Thanks and Regards,
Saurabh Bora

On Mon, Mar 25, 2019, 22:49 Nicolas Dufresne <[hidden email]> wrote:
Le lundi 25 mars 2019 à 22:16 +0530, Saurabh Bora a écrit :
> Hi,
>
> I followed the link https://gstreamer.freedesktop.org/documentation/design/tracing.html#print-processing-latencies, set the environment variables and ran the pipeline as follows:
> //--------------------------------------------------------------------------------------------------------------------------------
> export GST_DEBUG="GST_TRACERS:7"

I'm sorry for this, but there is no S to that debug section (/o\)

> export GST_TRACERS=latency
> gst-launch-1.0 audiotestsrc num-buffers=10 ! audioconvert ! volume volume=0.7 ! autoaudiosink
>
> Output:
> Setting pipeline to PAUSED ...
> Pipeline is PREROLLING ...
> Redistribute latency...
> Pipeline is PREROLLED ...
> Setting pipeline to PLAYING ...
> New clock: GstAudioSinkClock
> Got EOS from element "pipeline0".
> Execution ended after 0:00:00.237344143
> Setting pipeline to PAUSED ...
> Setting pipeline to READY ...
> Setting pipeline to NULL ...
> Freeing pipeline ...
> //----------------------------------------------------------------------------------------------
>
> The above output is exactly the same as the output that I get when environment variables are not set.
> Am I missing something here? What output must I expect?
>
> Help Appreciated...
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel