A karaoke web player I’ve been working on lately ran into backing tracks in three-channel Ogg Vorbis, with the guide melody on one of the channels. After Chrome and Edge updated themselves to 156 on 27 October, the backing went muddy and choppy as soon as it reached a section where the guide melody came in. Nothing was wrong with the files, the server or the player.
The cause: from 156 on, Chrome decodes Vorbis with Symphonia, written in Rust, instead of FFmpeg. When Symphonia 0.6.1 reads the residue and a channel has an odd number of partitions, the spare entry in the last classword is written onto the first partition of the next channel; that partition is later read with the wrong codebook, and the rest of the packet is read as garbage. My files have 39 or 5 partitions per channel, and both happen to be odd.
An engineer at Google had already sent Symphonia a fix for this [1], merged in early November. While testing, we found another problem, in the order of multichannel coupling, and submitted a fix [2], which has also been merged. The player now does its own decoding in a Web Worker with Xiph’s official libvorbis (compiled to WebAssembly) and no longer depends on the browser. A retest with Edge 158 in early December shows it’s fixed there. Below is how I tracked it down.
Continue reading: Noise from multichannel Ogg Vorbis in Chrome / Edge 156: Symphonia, the newly adopted Rust decoder, writes partition classifications into the next channel11 min left







