Log in

View Full Version : Encoding 4K video took about 4.7G RAM


lansing
15th January 2019, 18:06
I tried to encode a 4K video with a vapoursynth script, vspipe took about 2.7G RAM, the x264_64 process took 4.7G, is this high RAM usage normal?

FranceBB
15th January 2019, 18:25
It really depends on the settings you are using for x264. If you wanna use less RAM, you can try to lower the lookahead and limit the ref.
Anyway, x264 does use a lot of RAM for such an high resolution, especially on some presets.

lansing
15th January 2019, 18:52
I was using CRF 22, preset medium.

I tried with x265 with the same preset on the same script, its RAM usage is 2.4G. Why is there a huge difference?

FranceBB
15th January 2019, 23:57
I believe that x265 is more optimized for this kind of resolution, while x264 was fine-tuned for HD and later FULL HD.
Some of the useful tools available in x265 have been backported to x264, but still it's not as efficient as x265 for very high resolutions.

poisondeathray
16th January 2019, 05:12
for x264, UHD , about 2.5GB RAM , vspipe 0.75GB

asarian
20th January 2019, 08:24
I tried to encode a 4K video with a vapoursynth script, vspipe took about 2.7G RAM, the x264_64 process took 4.7G, is this high RAM usage normal?

Typically, a x264 process, with 1080p input (8-bit), takes about 1G here. So, 4G+ for 10-bit seems about entirely right for a 4K source.

Depending on what type of fiters you're using (Temporal denoising/QTGMC, etc), I have vspipe processes that exceed 11G memory. And that's just for 1080p material. :) I have only 32G, so I don't ever dare and try this on 4K stuff. But it stands to reason the vspipe process will go way over 40G in that case.

Groucho2004
20th January 2019, 12:24
I have only 32G ... But it stands to reason the vspipe process will go way over 40G in that case.I'm getting dizzy.

By the way, my first 8086 based computer (i.e. PC) had 1 MiB of RAM. :cool:

StainlessS
20th January 2019, 12:41
By the way, my first 8086 based computer (i.e. PC) had 1 MiB or RAM. :cool:

You lucky duck, my 1st Z80 computer had 1KB.

Groucho2004
20th January 2019, 12:46
You lucky duck, my 1st Z80 computer had 1KB.Yeah, I had one of those too with a staggering 2K and, as appropriate for real men, only HEX input "keyboard".

As for 8086/8088 I think the minimum was 512K (to be verified).

StainlessS
20th January 2019, 14:28
only HEX input "keyboard".
Micro Professor ? [Z80/A 2KB RAM, hex Keypad, 7 seg display, beeper, string of led lamps, fitting inside a VHS cassette style case].

Apparently, Micro Professor (originally by what was to become Acer) is currently still manufactured(later version):- https://en.wikipedia.org/wiki/Micro-Professor_MPF-I
[Above looks different to how I remember it]

Hewlett Packard LabPack, was similar but much larger in a Samsonite brief case (with additional 8 bank toggle switches as well as hex keypad).
EDIT: "8 bank toggle switches", why use hex, real real men use binary.

IBM Personal Computer 5150, 8088, 16KB RAM (Max 640KB), PC-DOS 1.0:- http://oldcomputers.net/ibm5150.html

EDIT: HP LabPack, actually looks like this one "HP 5036A MicroProcessor Lab" [although the one I remember had big toggle switches, not small DIP switches, and a lot more chips]:- http://www.hpmuseum.org/cgi-sys/cgiwrap/hpmuseum/archv016.cgi?read=93495
EDIT: Took about an hour to key in a program to light up LED's in sequence and play a whooshing sound, like a rocket, time well spent, maybe.

EDIT: To Asarian below:
Philips P2000,
The P2000 system can be emulated with the MESS software. :- https://en.wikipedia.org/wiki/Philips_P2000

asarian
20th January 2019, 15:04
You lucky duck, my 1st Z80 computer had 1KB.

My first Z80 (P2000) had a whopping 16KB memory! :) It's the machine I learned Assembly language on (with MASM). Those were the days!

Taurus
20th January 2019, 17:51
....those were the days :D
And now we are old fa..s and struggeling along with 32 - 64G of Ram.
8 Core processors, multimonitor setups, etc....
Life is wonderful :cool: