Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

memory allocation of 58737033216 bytes failed when encoding with some zone files with --split-method none #928

Open
Akatmks opened this issue Mar 5, 2025 · 0 comments

Comments

@Akatmks
Copy link

Akatmks commented Mar 5, 2025

Description

  • When encoding using some zone files with --split-method none, av1an would fail with memory allocation of 58737033216 bytes failed.
  • With the same zones file, the amount of memory (58737033216 here) required is always the same. With a different zones file, the number can vary but mostly stays in the range of several baker's dozens of GiB.
  • In cases I do have more free memory than it is trying to allocate but the same error occurs nonetheless.
  • Some zones file with similar amount of zones does not trigger this issue, or at least it seems so. An example is provided below.
  • This issue does not occur if I change --split-method none to --split-method av-scenechange in the commandline below.

To Reproduce

Command:
av1an -y --max-tries 5 --resume --keep --verbose -i source.mkv -o output.mkv --split-method none --extra-split 360 --min-scene-len 6 --zones zones.txt --chunk-method bestsource --encoder svt-av1 --pix-format yuv420p10le --workers 1 --video-params "--lp 5 --keyint -1 --lookahead 120 --color-primaries 1 --transfer-characteristics 1 --matrix-coefficients 1 --color-range 0" --concat mkvmerge

A zones file that will trigger the issue:
with.issue.zones.txt

A zones file that doesn't trigger the issue:
without.issue.zones.txt

Information

av1an 0.4.4-unstable (rev e6b29a5) (Release)

* Compiler
  rustc 1.84.0 (LLVM 19.1)

* Target Triple
  x86_64-pc-windows-msvc

* Date Info
  Commit Date:  2025-01-28

* VapourSynth Plugins
  systems.innocent.lsmas : Found
  com.vapoursynth.ffms2  : Not found
  com.vapoursynth.dgdecodenv : Not found
  com.vapoursynth.bestsource : Found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant