[x264-devel] Optimizing x264 for lowest memory usage

Henrik Gramner henrik at gramner.com
Tue Mar 8 19:20:10 CET 2016


On Mon, Mar 7, 2016 at 3:04 PM, Yakov Sudeikin <yakovs at setplex.com> wrote:
> Hi, I am using x264 with GStreamer, and I experience too much memory
> consumption 300-3000 MB per stream (not even HD), are there any compile-time
> options or other tricks to reduce the RAM usage to minimum, even sacrificing
> some performance? I want to run on a memory scarce system.
>
> Thank you.

What x264 settings are you using? If you're using overly slow
settings, try using faster ones. rc-lookahead in particular tends to
use quite a lot of memory.

However, it's a bit odd that you're getting 3GB memory usage with SD
resolution, are you certain that it's allocated by libx264?


More information about the x264-devel mailing list