Has anyone managed to work with large files? #516
Replies: 2 comments 1 reply
-
Good question. I would personally go with the direction you mentioned. Split the files into < 4 GB chunks in JavaScript and then process those files with WebAssembly. |
Beta Was this translation helpful? Give feedback.
-
I have added pull request #581 that enables WORKERFS. With WORKERFS you can mount Files into the ffmpeg filesystem larger than 4Gb for reading. Largest I have tested for reading is a 13.2Gb mkv and it worked. Forked repo: LostBeard/ffmpeg.wasm Live demo (Blazor WASM): LostBeard/ffmpeg.wasm release v0.12.7 |
Beta Was this translation helpful? Give feedback.
-
I have been spending quite some time now figuring out ways to be able to convert files that are > 4gb. I know there is a hard limit on webassembly memory usage, so I've been looking into chunking, streaming, even this thread gave me some hope, mounting the WORKERFS file system, but it also threw a memory allocation error when I was trying to convert a 5gb video.
So I was wondering, if greater minds than me have any ideas how something like converting 5gb video files can be achieved.
Beta Was this translation helpful? Give feedback.
All reactions