-
-
Notifications
You must be signed in to change notification settings - Fork 831
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 error #745
Comments
Instead of copying the file to the worker, you can transfer a reference to it like so:
|
I reduced the memory from 1gb to 150mb, much more than half the file.
|
Describe the bug
The file memory is doubled in Chrome, if the file occupies 400mb, the memory increases by 800mb.
To Play
-> use ffmpeg.writeFile(fileName, array400mb);
Expected behavior
I imagine the problem is:
Browser -> worker (file 400mb) -> webasembly (file 400mb)
Wasm does not use the file system, only memory, could you give me some clue to see where this copy is made to see if we can pass the file to webasembly by ranges while the worker file is deleted and when the file is formed in webassembly send them by range to the worker and finally pass it to the browser.
I think it would be optimal, let's see if I wanted to replicate the file system with ffmpeg when wasm does not use the file system, I think it was a mistake.
The text was updated successfully, but these errors were encountered: