limistah / ffmpeg-webworker

A WebWorker implementation that eases the use of ffmpeg library in the browser.
30 stars 9 forks source link

Memory Allocation #3

Open bknill opened 4 years ago

bknill commented 4 years ago

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 https://github.com/Kagami/ffmpeg.js/issues/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?