how to set memory limit when running gst-launch

Tim Müller tim at centricular.com
Mon Nov 11 07:42:18 PST 2013


On Mon, 2013-11-11 at 22:52 +0800, Diaz Soho wrote:

Hi,

> If I would like to reduce the memory usage when I run gst-launch to
> play a audio from network.
> 
> Where is the code that I can check or reivew  for reduce memory usage?
> 
> since the system memory oin my embebbed system is 32MB only.
> 
> I have to limit the memory for buffering or audio decode or audio
> re-sample if the code is allocate a lot of memory.
>
> Any input is very appreciate!!

What is your playback pipeline exactly? The knobs available depend a bit
on your exact pipeline and the elements involved.

If you're using playbin (or playbin2 in 0.10) there are "buffer-size"
and "buffer-duration" properties.

Have you investigated yet where memory is taken up yet?

Cheers
 -Tim


-- 
Tim Müller, Centricular Ltd - http://www.centricular.com






More information about the gstreamer-devel mailing list