Configuring multiqueue property

Carlos Rafael Giani dv at pseudoterminal.org
Thu Feb 4 21:59:30 UTC 2016


I did not do that much with multiqueue so far, but I did investigate 
queue2, which has the same properties.
What I found out:

- max-size-* define three sizes for the capacity. As soon as the queue 
is filled up to at least one of the capacities, it reaches 100% buffering.

Internally, the queue2 estimates the data rate. It uses that to apply 
the max-size-time capacity. A max-size-time value of 5 seconds means the 
queue2 will buffer for 5 seconds. To determine whether or not 5 seconds 
have passed, it uses the data rate and the number of bytes received so 
far to compute the time passed. This is how max-size-time is used if the 
input segment is in BYTES.

If the input segment is in TIME, however, queue2 uses max-size-time 
differently. It looks at the timestamps, and buffers until a timespan of 
5 seconds has been covered (based on the timestamps).

max-size-bytes and max-size-buffers are much more straightforward. These 
are just compared against counters for the number of received bytes and 
buffers.


I do not guarantee that this info is 100% correct. I determined it from 
going through the queue2 code and experimenting with its behavior.


On 2016-02-04 19:54, Bhavya wrote:
> Hi All,
>
> I am using multiqueue for hls stream playback,
> HLS pipeline :
> souphttpsrc ! typefind ! hlsdemux name=d d. ! multiqueue ! decodebin !
> waylandsink d. ! multiqueue ! decodebin ! pulsesink
>
> What should the value set for property max-size-bytes, max-size-buffers,
> max-size-time?
> In decodebin these are set to 2MB, 5, 5second.
>
> Please suggest how these value should be decided, what factors impact it.
> Thanks.
>
> Best Regards,
> Bhavya R
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Configuring-multiqueue-property-tp4675670.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list