Hacker News new | ask | show | jobs
by lukaqq 849 days ago
Chillin, https://chillin.online/app/editor, integrated complete video editing functions, just for 1.8MB
2 comments

Your editor downloads a 32.6MB ffmpeg WASM binary on every page load.

Throttling the network to "Slow 3G", it took over four minutes of a broken interface before ffmpeg finally loads. (It doesn't cache, either.) A port of the Audacity audio editor to web[1] with WASM takes 2.7 minutes on the same connection, so the binary is totally reasonable, but I think claiming less than 2 MB is disingenuous.

[1]: https://wavacity.com/

Sorry for that, we just focus on js bundle and don't realize how big the ffmepg.wasm is. Thanks for reminding, next step we will try to rebuild ffmepg.wasm and make it smaller.
Caching might be your highest bang for the buck, depending on how often you expect someone to return to the app/reload the page it's hosted in.
By re-confirmed, the 36MB ffmpeg.wasm file is compressed by brotli to 9.6 MB as transferred.
Oh, nice! Compression is magical nowadays.