<br><font size=2 face="sans-serif">Hi,</font>
<br><font size=2 face="sans-serif">thank you for the hint with the dot
output. There I could see that the max buffer property of the the app sink
has not been set correctly. After setting it correct all works fine.</font>
<br>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=41%><font size=1 face="sans-serif"><b>Marco Ballesio/</b></font>
<br>
<br><font size=1 face="Wingdings">(</font><font size=2 color=#000080 face="sans-serif">
</font>
<br><font size=1 face="sans-serif">Gesendet von: gstreamer-devel-bounces+steffen.roeber=hella.com@lists.freedesktop.org</font>
<p><font size=1 face="sans-serif">09.09.2011 15:08</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Bitte antworten an<br>
Discussion of the development of and with GStreamer &nbsp; &nbsp; &nbsp;
&nbsp;&lt;gstreamer-devel@lists.freedesktop.org&gt;</font></div></table>
<br>
<td width=58%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">An</font></div>
<td><font size=1 face="sans-serif">Discussion of the development of and
with GStreamer &lt;gstreamer-devel@lists.freedesktop.org&gt;</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Kopie</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Thema</font></div>
<td><font size=1 face="sans-serif">Re: pipeline memory consumption</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2><tt>Hi,<br>
<br>
there may be many reasons for the increased memory size, some of which<br>
may even be fully legitimate depending on the system you're using and<br>
what you're playing. Indeed there's always room for bugs ;). Some<br>
questions below to help the community helping you ;).<br>
<br>
On Thu, Sep 8, 2011 at 8:22 AM, &nbsp;&lt;Steffen.Roeber@hella.com&gt;
wrote:<br>
&gt;<br>
&gt; Hi,<br>
&gt; I'using a filesrc, decodebin2, ffmpegcolorspace, capsfilter and appsink<br>
&gt; pipeline which I use in pull mode. This means I pull the data of the
appsink<br>
&gt; in a worker thread.<br>
<br>
See here:<br>
<br>
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-appsink.html#gst-app-sink-pull-buffer<br>
<br>
Are you consuming buffers fast enough? Are you properly unreffing them<br>
when you're done?<br>
<br>
&gt; I also set the 'max-size-bytes' property of the &nbsp;decodebin2 to
1000000 and the<br>
&gt; gst_app_sink_set_max_buffers to 1. Anyhow after starting the pipeline,
the<br>
&gt; memory consumption is rised up to more than 1gb, which decreases slowly<br>
&gt; while playing.<br>
<br>
How are you measuring the memory allocated by the process? Might it be<br>
that your system has an outrageous quantity of memory and that size is<br>
used for filesystem caching?<br>
<br>
&gt; If I delete the pipeline all memory is freed. Who does take this memory?<br>
<br>
You could be interested in dumping the pipeline topology on a dot<br>
file: http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstInfo.html#GST-DEBUG-BIN-TO-DOT-FILE:CAPS<br>
<br>
and verifying all the queues there are reasonably limited in length<br>
and size. It would also be interesting to know which decoders you're<br>
using and if any custom elements are used.<br>
<br>
I hope this will help.<br>
<br>
Regards<br>
<br>
&gt;<br>
&gt; Regards<br>
&gt;<br>
&gt; Hella Aglaia Mobile Vision GmbH<br>
&gt; Steffen Roeber<br>
&gt; Firmware &amp; Tools<br>
&gt; Treskowstr. 14, D-13089 Berlin<br>
&gt; Amtsgericht Berlin-Charlottenburg HRB 66976 B<br>
&gt; Geschäftsführer: Kay Talmi<br>
&gt;<br>
&gt; Fon: &nbsp;+49 30 200 04 29&#8211; 412<br>
&gt; Fax: &nbsp;+49 30 200 04 29&#8211; 109<br>
&gt; Mail: Steffen.Roeber@hella.com<br>
&gt; URL: www.aglaia-gmbh.de<br>
&gt;<br>
&gt; URL: www.mobilevision.de<br>
&gt;<br>
&gt; Dieses Dokument ist vertraulich zu behandeln. Die Weitergabe sowie<br>
&gt; Vervielfältigung, Verwertung und Mitteilung seines Inhalts ist nur
mit<br>
&gt; unserer ausdrücklichen Genehmigung gestattet. Alle Rechte vorbehalten,<br>
&gt; insbesondere für den Fall der Schutzrechtsanmeldung.<br>
&gt; This document has to be treated confidentially. Its contents are not
to be<br>
&gt; pass ed on, duplicated, exploited or disclosed without our express<br>
&gt; permission. All rights reserved, especially the right to apply for<br>
&gt; protective rights.<br>
&gt; _______________________________________________<br>
&gt; gstreamer-devel mailing list<br>
&gt; gstreamer-devel@lists.freedesktop.org<br>
&gt; http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel<br>
&gt;<br>
&gt;<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
gstreamer-devel@lists.freedesktop.org<br>
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel<br>
</tt></font>
<br>