Memory error crash in 32 bit compiler for 4K videos in veryslow preset

Issue #310 wontfix
Vignesh Vijayakumar created an issue

While encoding 4K videos, using a 32 bit compiled version of encoder in veryslow preset, for any search method, the encoding crashes due to memory error. For medium preset, for bframes-8, lookahead-40, it crashes. Error message comes as 'x265 malloc failed'.

Comments (3)

  1. H0W1K2

    Have you tried 64 bit version, I will say due to the resolution it may not be possible to use 32 bit.

  2. LittlePox

    Usually 32bit applications can use only 2GB of memory, and those with Windows 32-bit large address aware support can only use 3GB. If you are encoding for 4K video, you get memory limit exceeded easily by the NATURAL requirement of the task.

    Switching to the 64bit version is the only solution, provided you have the 64bit OS and sufficient memory. Otherwise, try lowering your bframes, like --bframes 3

  3. Log in to comment