Printing sink wait

Tim Müller tim at centricular.com
Tue Mar 29 22:14:07 UTC 2016


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




More information about the gstreamer-devel mailing list