ffmpeg.wasm icon indicating copy to clipboard operation
ffmpeg.wasm copied to clipboard

Larger video file inputs

Open bobbyohyeah opened this issue 2 years ago • 5 comments

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?

bobbyohyeah avatar Nov 07 '23 16:11 bobbyohyeah

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

mcosti avatar Nov 30 '23 10:11 mcosti

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

timing avatar Feb 16 '24 14:02 timing

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

off-border avatar Jun 18 '24 00:06 off-border