Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Has anyone managed to work with large files? #516

Unanswered
fulopdaniel asked this question in Q&A
Discussion options

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.

You must be logged in to vote

Replies: 2 comments 3 replies

Comment options

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.

You must be logged in to vote
0 replies
Comment options

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
This release is basically the same as ffmpegwasm/ffmpeg.wasm v0.12.6 but with pull requests #562 and #581 implemented. (Release only includes UMD version.)

You must be logged in to vote
3 replies
Comment options

Any potential solution for handling large output files? Ideally streaming it directly to the host file system.

Comment options

Any potential solution for handling large output files? Ideally streaming it directly to the host file system.

You find a solution?

Comment options

Any potential solution for handling large output files? Ideally streaming it directly to the host file system.

You find a solution?

Nope

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

AltStyle によって変換されたページ (->オリジナル) /