[x264-devel] Optimizing x264 for lowest memory usage

Michael Toon michael.toon at digitalbarriers.com
Thu Mar 10 16:31:57 CET 2016


The '--tune zerolatency' option may help reduce the memory usage. This will apply the following options:

--bframes 0 --force-cfr --no-mbtree
--sync-lookahead 0 --sliced-threads
--rc-lookahead 0

This is aimed to reduce the latency, but should also improve the memory usage as a consequence.

Mike

-----Original Message-----
From: x264-devel [mailto:x264-devel-bounces at videolan.org] On Behalf Of Henrik Gramner
Sent: 08 March 2016 18:20
To: Mailing list for x264 developers <x264-devel at videolan.org>
Subject: Re: [x264-devel] Optimizing x264 for lowest memory usage

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?
_______________________________________________
x264-devel mailing list
x264-devel at videolan.org
https://mailman.videolan.org/listinfo/x264-devel

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com ______________________________________________________________________


Digital Barriers e-Mail Confidentiality and Disclaimer

This message contains confidential information and is intended only for the individual named. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

Digital Barriers plc is a company registered in England and Wales. Registered number: 7149547. Registered office: Cargo Works, 1-2 Hatfields, London SE1 9PG, United Kingdom. For further information about Digital Barriers, please visit http://www.digitalbarriers.com/.

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________


More information about the x264-devel mailing list