Next step is switching to #Mediabunny for de/muxing https://mediabunny.dev
Mediabunny

A JavaScript library for reading, writing, and converting media files. Directly in the browser, and faster than anybunny else.

Mediabunny

Loops now uses mediabunny to transcode and optimize videos before uploading, using WebCodecs!

We have a very simple quality algorithm lol, but it does work great and reduces the file size significantly, allowing for reduced backend load.

The magic happens here ✨
https://github.com/joinloops/loops-server/blob/main/resources/js/pages/studio/upload.vue#L1472-L1556

#loops #loopsDev #mediabunny

ブラウザ上でお手軽動画圧縮 | gihyo.jp

今回は、Misskey v2025.10.0に含まれる予定の「動画圧縮機能」で採用した、ブラウザ上で動画処理を行えるライブラリMediabunnyを紹介します。

gihyo.jp