<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello,</p>
<p><br>
</p>
<p>I have seen that queue size can be tuned by properties
"max-size-buffers", "max-size-bytes", "max-size-time" of <u>decodebin</u>
element.</p>
<p>If i set theses properties to 0, decodebin is in automatic mode.
How can i set these size to 0 in manual mode ?</p>
<p><br>
</p>
<p>Frederic</p>
<p><br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">Le 12/02/2019 à 11:58, Duchassin
Frederic a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:ad11b31c-157f-461a-ab56-9beb3e247d77@sefram.fr">Hello,
<br>
<br>
<br>
I try to use decodebin in my pipeline. I try to play mpeg2ts video
with audio and video and that's why decodebin try to use
multiqueue.
<br>
<br>
But i would like to set properties of this multiqueue (max-size* =
0) .
<br>
<br>
In order to achieve this i use a callback on "element added" on
decodebin :
<br>
<br>
<br>
/* CallBack for new element created in Decodebin */
<br>
void gstImpl::cb_element_added_decodebin (GstBin *bin, GstElement
*element, gpointer user_data)
<br>
{
<br>
gchar * name = GST_OBJECT_NAME (element);
<br>
gstImpl* pStreamObj = static_cast<gstImpl*>(user_data);
<br>
<br>
bin = bin; //compiler happy !
<br>
<br>
g_print ("DECODBIN element-added: %s\r\n", name);
<br>
<br>
if (g_strrstr (name, "multiqueue"))
<br>
{
<br>
multiqueue = element;
<br>
<br>
g_object_set(G_OBJECT(element), "max-size-buffers", (guint)
0, NULL);
<br>
g_object_set(G_OBJECT(element), "max-size-bytes", (guint) 0,
NULL);
<br>
g_object_set(G_OBJECT(element), "max-size-time", (guint64)
0, NULL);
<br>
}
<br>
}
<br>
<br>
<br>
If i read later these properties on my multiqueue, i can see that
I don't have 0 on all.
<br>
<br>
<br>
guint tmp1, tmp2;
<br>
guint64 tmp3;
<br>
<br>
g_object_get(G_OBJECT(multiqueue), "max-size-buffers",
&tmp1, "max-size-bytes", &tmp2, "max-size-time",
&tmp3, NULL);
<br>
tmp1 = 1;
<br>
<br>
<br>
--> gives max-size-buffers=5 ; max-size-bytes=2097152;
max-size-time=0;
<br>
<br>
<br>
Maybe decodebin already set these multiqueue's properties ??
<br>
<br>
<br>
BR
<br>
<br>
<br>
Frederic
<br>
<br>
_______________________________________________
<br>
gstreamer-devel mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<br>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote>
</body>
</html>