How to know data buffered within the pipeline

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

How to know data buffered within the pipeline

Baby Octopus
Administrator
Hi,

Is there a way to know the total data buffered within the pipeline for ex:

gst-launch-1.0 src ! queue max-size-time=10000000000 ! sink

In this case the data buffered or held by the pipeline would be anywhere between 0 to 10seconds(greater than zero if src is running faster than sink can render). Is there a way to dynamically know this when the pipeline is running?

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

Re: How to know data buffered within the pipeline

Carlos Rafael Giani
On 2016-07-20 14:09, Baby Octopus wrote:

> Hi,
>
> Is there a way to know the total data buffered within the pipeline for ex:
>
> gst-launch-1.0 src ! queue max-size-time=10000000000 ! sink
>
> In this case the data buffered or held by the pipeline would be anywhere
> between 0 to 10seconds(greater than zero if src is running faster than sink
> can render). Is there a way to dynamically know this when the pipeline is
> running?
>
> ~BO
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-to-know-data-buffered-within-the-pipeline-tp4678768.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


I wondered about this myself. About the only solution I've found is to
get the current-level-* properties. Of course, if you have multiple
queues in the pipeline, it gets more complicated. And if there are
branches (for example, because there's a tee element), then it is
further complicated..

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