Re:Ffmpeg Buddy
by marclundgren on Wednesday June 01, 2022 @01:52PM
(#31585502)
It works great for audio. Here's a wasm-ffmpeg solution I created trim audio.
https://wasm-audio-clipper.netlify.app/
Check the repo: https://github.com/marclundgren/wasm-audio-clipper. I ended up lazily registering the context. The memory footprint stays lower even after trimming multiple clips on the same session.
I suspect you could still make it work with clever usage of the File System Access API as a cache, and process larger files in chunks. Then you’d mostly be limited by the Blob storage limits [1], and memory required to merge processed chunks together.
[0] https://nft-inator.com/app
[1] https://chromium.googlesource.com/chromium/src/+/224e43ce1ca...