[gstreamer-bugs] [Bug 314146] adder and audioconvert spend too much time negottiating caps

bugzilla-daemon at bugzilla.gnome.org bugzilla-daemon at bugzilla.gnome.org
Fri Aug 26 01:31:14 PDT 2005


Please DO NOT reply to this by email. All additional comments should be made in
the comments box of this bug report.

 http://bugzilla.gnome.org/show_bug.cgi?id=314146
 GStreamer | gst-plugins | Ver: 0.8.10





------- Additional Comments From Akos Maroy  2005-08-26 08:31 -------
I got the tip that I should use gst_element_link_filtered() instead of simple
gst_element_link(), and that would reduce the negotiation time.

while it indeed does so, all is still tooo slow.

my results are the following (see the attached source code example):

changing:

    gst_element_link(adder, sink);
    gst_bin_add_many(GST_BIN(pipeline), adder, sink, NULL);

to:

    gst_element_link_filtered(adder, sink, caps);
    gst_bin_add_many(GST_BIN(pipeline), adder, sink, NULL);

reduces the user CPU time for 4 sources from 10+ seconds to about 5:

real    0m9.752s
user    0m4.806s
sys     0m0.019s


furthermore changing:

        gst_element_link(converter[i], adder);

to:

        gst_element_link_filtered(converter[i], adder, caps);

has a marginal effect (4.8 sec -> 4.6 sec):

real    0m9.561s
user    0m4.602s
sys     0m0.011s

while filtering the decoder -> converter link as well by a set capability
reduces the user time to 2 seconds:

real    0m7.008s
user    0m2.083s
sys     0m0.012s

(but then, there's no real need for the converter, is there?)


but this is all too long still, waiting almost 2 seconds for the playing to start.

------- You are receiving this mail because: -------
You are the assignee for the bug.
You are the QA contact for the bug.




More information about the Gstreamer-bugs mailing list