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 #3

Open
bknill opened this issue Mar 23, 2020 · 0 comments
Open

Memory Allocation #3

bknill opened this issue Mar 23, 2020 · 0 comments

Comments

@bknill
Copy link

bknill commented Mar 23, 2020

Great module, hope I can get it to work.

I'm sending it quite a large file to convert to webM and getting this error:

Cannot enlarge memory arrays. Either (1) compile with -s TOTAL_MEMORY=X with X higher than the current value 33554432, (2) compile with ALLOW_MEMORY_GROWTH which adjusts the size at runtime but prevents some optimizations, or (3) set Module.TOTAL_MEMORY before the program runs.

Other people have had this issue
Kagami/ffmpeg.js#9

And the solution is to

Try to pass TOTAL_MEMORY: 128 * 1024 * 1024 (128MB) option. There is 64MB by default which might be not enough for some files.

Any idea how I do this with your version?

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