DashUtils swaps FFmpeg.wasm for WebCodecs, cutting video compression from 97 s to 5.6 s

The developer of DashUtils, a site with 392 free browser-based file tools, replaced FFmpeg.wasm with the browser's native WebCodecs API for video and audio work. The FFmpeg engine had a large download, single-threaded processing, and no hardware acceleration, which made some jobs very slow. Mediabunny handles container reading and writing, with FFmpeg kept as a fallback for formats browsers cannot read. An initial 97-second compression time was traced to Chrome on Linux lacking AAC encoding, which the developer fixed by adding a small WebAssembly AAC encoder, bringing the time to 5.6 seconds. The article also describes throttling progress updates to reduce UI lag and adjusting resolution to meet file-size targets.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in