ffmpegwasm / ffmpegwasm/ffmpeg.wasm
OOM error when processing 4k Videos
Open
- Dominant language
- C
- Stars
- 17.8k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
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?
Contributor guide
Assessment
This issue has not been assessed yet.