How to calc latency through gstreamer code

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

How to calc latency through gstreamer code

saketbafna82@gmail.com
Hi,
This is Saket and new to gstreamer.

I wanted to measure latency for complete pipeline also plugin wise.
through command line I could able to measure:
GST_DEBUG="GST_TRACER:7" GST_TRACERS=latency filesrc ! decodebin ! videosink.


Now same stuff I want to do in my application.

I wrote one gstreamer app which does video playback.
filesrc --> decodebin -->  videosink.
It worked absolutely fine.

Then, I tried with tracer APIs to get latency figure but, could not understand how to use.
I googled for example code but, didn't get any example code to use.

Can anyone please help me with some example code?


Thanks
Saket Bafna
Reply | Threaded
Open this post in threaded view
|

Re: How to calc latency through gstreamer code

Nicolas Dufresne-5
Le dimanche 28 mai 2017 à 22:23 -0700, [hidden email] a écrit :
> Hi,
> This is Saket and new to gstreamer.
>
> I wanted to measure latency for complete pipeline also plugin wise.
> through command line I could able to measure:
> GST_DEBUG="GST_TRACER:7" GST_TRACERS=latency filesrc ! decodebin !
> videosink.

You'll have to define latency. In GStreamer the use of latency refer to
live pipeline only, and this isn't a live pipeline (filesrc is not
live). Maybe you care about processing time ?

>
>
> Now same stuff I want to do in my application.
>
> I wrote one gstreamer app which does video playback.
> filesrc --> decodebin -->  videosink.
> It worked absolutely fine.
>
> Then, I tried with tracer APIs to get latency figure but, could not
> understand how to use.
> I googled for example code but, didn't get any example code to use.
>
> Can anyone please help me with some example code?
Might be related.

>
>
> Thanks
> Saket Bafna
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble
> .com/How-to-calc-latency-through-gstreamer-code-tp4683132.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> 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

signature.asc (188 bytes) Download Attachment