Bilibili Tech
Apr 16, 2024 · Frontend Development
Design and Implementation of a High‑Performance Matroska Demuxer for Web Uploads
The new mkv-demuxer SDK replaces the slow FFmpeg-Wasm solution on Bilibili’s upload page by reading Matroska files in slice-sized ArrayBuffers, parsing EBML headers and SeekHead indexes, and exposing getMeta, getData, and seekFrame APIs, cutting memory use by 98 % and parsing time by 97 % while accelerating cover-generation and recommendation processing.
DemuxerMatroskaPerformance
0 likes · 17 min read