Printing sink wait

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

Printing sink wait

Baby Octopus
Administrator
Hi,

How to know for how much time a buffer is held by the sink before rendering? .. ! fakesink silent=0 -v is not printing this duration for each buffer. Is there a property in testsink or fakesink to know this?

~BO
Reply | Threaded
Open this post in threaded view
|

Re: Printing sink wait

Tim Müller
On Tue, 2016-03-29 at 06:26 -0700, Baby Octopus wrote:

Hi,

> How to know for how much time a buffer is held by the sink before
> rendering?
> .. ! fakesink silent=0 -v is not printing this duration for each
> buffer. Is there a property in testsink or fakesink to know this?

Not really. The GST_DEBUG=basesink:6 log should tell you, or QoS events
sent upstream for each buffer (if qos is enabled like it it for video
sinks, but you can also enable it on fakesink with qos=true).

You could also set up a pad probe and a pad idle probe and measure the
time it takes from the buffer going into the sink and your idle probe
being called (although that would include the time it took to render as
well then).

Cheers
 -Tim

--
Tim Müller, Centricular Ltd - http://www.centricular.com


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