This is pretty cool. I've also been playing around in this area lately and noticed there's still a drastic performance hit. But seems to work great for smaller files.
Question: Are you compiling FFmpeg to WASM, or FFMpeg's libav and interfacing with that directly?
Also for anyone curious, the author of ffmpeg.wasm[1] has an excellent guide on compiling FFmpeg to WASM:
https://itnext.io/build-ffmpeg-webassembly-version-ffmpeg-js...