forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 30d372e461d4e2e07cec9b2bc0acd2dbf213b646Filtered to crates/ec-ogg/src/lib.rsClear filter

2026-08-14

feat(ec-ogg): Ogg demux/mux with Vorbis, Opus and FLAC mappingsAhmet Kaan Gümüş · 47772cb
feat(ec-ogg): Ogg demux/mux with Vorbis, Opus and FLAC mappings

RFC 3533 pages both ways: lacing (255-runs and the zero terminator),
packet reassembly across continuations, unreflected page CRC with
resync-on-damage, granule positions per mapping, BOS/EOS, and seek by
granule bisection.

Timing lives in the mapping, not in Ogg: Vorbis and FLAC count samples at
the stream rate, Opus counts 48 kHz samples including its pre-skip and
states per-packet durations in the TOC byte. Packets carry the page
granule they end on as side data, which is what lets a remux reproduce
positions the demuxer could not otherwise express.

Verified against ffprobe/ffmpeg on the nine Ogg fixtures: packet counts
and durations match, and every fixture remuxes to audio that decodes byte
for byte identical to the source.

feat(shims/oxideav-ogg): mux surface over ec-ogg

xiph_lace, open_concrete and set_page_target_bytes beside the
oxideav_core::Muxer methods, with the replica's "pts is the granule
position" convention translated here rather than at the call site.