From 01f467f6a466702900646298e1790bab2f134f38 Mon Sep 17 00:00:00 2001 From: Song Bing Date: Fri, 13 Mar 2015 18:04:31 +0800 Subject: [PATCH] encodebin: allow more buffers in output queue for better performance https://bugzilla.gnome.org/show_bug.cgi?id=744191 --- gst/encoding/gstencodebin.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gst/encoding/gstencodebin.c b/gst/encoding/gstencodebin.c index 59c19aaed9..21eb3463fe 100644 --- a/gst/encoding/gstencodebin.c +++ b/gst/encoding/gstencodebin.c @@ -1260,11 +1260,11 @@ _create_stream_group (GstEncodeBin * ebin, GstEncodingProfile * sprof, } /* Output Queue. - * We only use a 1buffer long queue here, the actual queueing will be done - * in the input queue */ + * The actual queueing will be done in the input queue, but some queuing + * after the encoder can be beneficial for encoding performance. */ last = sgroup->outqueue = gst_element_factory_make ("queue", NULL); - g_object_set (sgroup->outqueue, "max-size-buffers", (guint32) 1, - "max-size-bytes", (guint32) 0, "max-size-time", (guint64) 0, + g_object_set (sgroup->outqueue, "max-size-buffers", (guint) 0, + "max-size-bytes", (guint) 0, "max-size-time", (guint64) 3 * GST_SECOND, "silent", TRUE, NULL); gst_bin_add (GST_BIN (ebin), sgroup->outqueue);