forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on cbbd6e2ef6acafb00aeb55e460423f024126f90fFiltered to crates/ec-matroska/src/lib.rsClear filter

2026-08-14

feat(matroska): Matroska/WebM muxer with SeekHead and CuesAhmet Kaan Gümüş · 550709b
feat(matroska): Matroska/WebM muxer with SeekHead and Cues

Streams declared, packets rescaled into the millisecond tick every Matroska
muxer writes, a cluster opened at each video keyframe, and three fields
patched at finish: the segment size, the duration and the SeekHead reserved
in front of the Info. Cues name every keyframe cluster, so a file written
here seeks in this crate's own reader and in ffmpeg.

Beyond the engine's writer, which wrote neither index: WebM doc type with the
codec subset enforced, colour and mastering metadata carried through, Opus
CodecDelay and SeekPreRoll off the OpusHead, DisplayWidth for anamorphic
sources, and BlockGroup durations for subtitle cues.
feat(matroska): EBML grammar and Matroska/WebM demuxerAhmet Kaan Gümüş · 4888147
feat(matroska): EBML grammar and Matroska/WebM demuxer

The element grammar both directions share (variable-length ids and sizes,
in-memory child walks, the unknown-length rule) and the reader on top of it:
segment and track walk, cluster walk, SimpleBlock and BlockGroup, all three
lacings, ContentEncodings undone (zlib through ec-inflate, header stripping
put back, everything else refused by name), and cue-driven seeking on the one
reader a file was opened with.

Ported from the engine's own demuxer, restructured around the ec-core Demuxer
contract: packets stream out of one cluster-sized allocation instead of a
frame index built for a video editor, and every track of the file becomes a
StreamInfo rather than one picture track plus a sound list.