My setup runs entirely on-device and doesnβt rely on any third-party servers. Any web client can implement this.
Previously, the common approach was to use FFmpeg, which requires downloading a ~40MB WASM package and is significantly slower. In comparison, this approach using built-in WebCodecs is much faster, up to 67x in my tests, and simpler to integrate.
I know Amethyst also supports compression, though Iβm not sure which package or approach it uses.
Login to reply
Replies (1)
@β‘ Dee Kay β‘ has implemented a lot of the media stuff in Amethyst. This is the compression library π

GitHub
GitHub - davotoula/LightCompressor-enhanced: A powerful and easy-to-use video compression library and app (LCe) for android that uses the native MediaCodec API. It supports H.264/H2.65 hardware accelerated encoding and configurable resolution, bitrate, fast-start (streamable), and Gif to Mp4 conversion.
A powerful and easy-to-use video compression library and app (LCe) for android that uses the native MediaCodec API. It supports H.264/H2.65 hardwar...