ffmpegwasm / ffmpeg.wasm

FFmpeg for browser, powered by WebAssembly
https://ffmpegwasm.netlify.app
MIT License
13.49k stars 775 forks source link

Larger video file inputs #623

Open bobbyohyeah opened 8 months ago

bobbyohyeah commented 8 months ago

Currently the file size limit for ffmpeg wasm is 2GB, but we know that wasm supports up to 4GB in size. Is there any way to increase the size limit?

mcosti commented 7 months ago

My browser on safari ios crashes even loading a 400MB .mov file sadly

            fetchFile(videoFile).then((result) => {
                ffmpeg.writeFile("source_video.mp4", result)
            })

This is enough to crash it

timing commented 4 months ago

Is it really about the file size itself? Isn't the 2G or 4G the memory limit of wasm itself? If you uncompress the video and keep all the uncompressed frames in memory that could take up way more RAM as the file size of the original file.

I'm asking this because I'm curious! :-D

off-border commented 3 weeks ago

They've added ffmpeg.mount() https://github.com/ffmpegwasm/ffmpeg.wasm/pull/581 but looks like it's not in documentation yet