<div dir="ltr"><div>Yes, I used "valgrind --tool massif" to profile the memory usage.<br></div><br>I attach the screenshot of one of the sessions. In this particular session, libx264 uses about 600 MB when run under valgrind, this is after only 5 minutes running, but the same pipeline run with the same settings minutes earlier used 4GB all together, I think under valgrind the encoder simply cannot run as fast to consume more RAM.<br><br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 9, 2016 at 2:20 AM, Henrik Gramner <span dir="ltr"><<a href="mailto:henrik@gramner.com" target="_blank">henrik@gramner.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Mon, Mar 7, 2016 at 3:04 PM, Yakov Sudeikin <<a href="mailto:yakovs@setplex.com">yakovs@setplex.com</a>> wrote:<br>
> Hi, I am using x264 with GStreamer, and I experience too much memory<br>
> consumption 300-3000 MB per stream (not even HD), are there any compile-time<br>
> options or other tricks to reduce the RAM usage to minimum, even sacrificing<br>
> some performance? I want to run on a memory scarce system.<br>
><br>
> Thank you.<br>
<br>
</div></div>What x264 settings are you using? If you're using overly slow<br>
settings, try using faster ones. rc-lookahead in particular tends to<br>
use quite a lot of memory.<br>
<br>
However, it's a bit odd that you're getting 3GB memory usage with SD<br>
resolution, are you certain that it's allocated by libx264?<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
x264-devel mailing list<br>
<a href="mailto:x264-devel@videolan.org">x264-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/x264-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/listinfo/x264-devel</a><br>
</div></div></blockquote></div><br></div>