31 ms·
I’ve been using the ffmpeg wasm library directly for a couple of years now and it’s working OK in production though it has a number of critical issues that don’
by ComputerGuru 2y ago
I’ve been using the ffmpeg wasm library directly for a couple of years now and it’s working OK in production though it has a number of critical issues that don’t show up except in heavy testing with a wide variety of inputs and outputs.
Note that a lot of the ffmpeg code is not memory safe and some of the file/codec plugins contain memory errors. An out-of-bounds read or write will bring down the entire wasm subsystem (and does). You have to manually figure out which codecs are actually safe to use in the browser, vs which ones are merely exposed by the ffmpeg wasm builds.
- bgrigore 2y agoYes, you are absolutely correct. It’s not sufficient to only use ffmpeg.wasm and pass string arguments. There have been many use cases where we needed to use libav to implement workarounds.
- jonplackett 2y agoAre there any patent issues with mp4 you had to worry about?
- bgrigore 2y agoYes, we have used a free and open-source alternative to h264 to avoid it
- jonplackett 2y agoWhat is it you have used?