ffmpeg.wasm
ffmpeg.wasm copied to clipboard
OOM error when processing 4k Videos
I am using 0.11.6 release of ffmpeg.wasm and 11.0 release of ffmpeg-core and can't process any 4K videos, even 1 second video.
What I'm doing is I load a video and a single png and executing following command: ffmpeg -I video.mp4 -I image.png -filter_complex overlay=10:10 -codec:a copy output.mp4 The RAM is filled up to 1100mb when I try with 4k video and it throws OOM error. For 1080p videos it loads about 1000mb of memory and everything is fine.
For 1080p videos it works fine, even if it's 1.5gb clip.
Does it worth to try newer releases? Or should I change some configuration?
Check https://github.com/ffmpegwasm/ffmpeg.wasm/issues/511, output a 4k video might be the issue.