Commits
2026-10-23
Restore edith_codecs after local data loss (2026-10-23)Ahmet Kaan Gümüş · b7434a2
Restore edith_codecs after local data loss (2026-10-23) On 2026-10-23 an automated agent ran `rm -rf $HOME` and deleted the local repository with all of its history. This commit restores the working tree from the newest surviving copy, the host-c server lane mirror. That mirror matches local main as of the testcut Phase 2 reports, including the tool cache, the nextest fast profile and changed-crates.sh. The history before this commit was not recovered.
2026-08-20
feat(ec-probe,ec-matroska): register the TrueHD decoder in the unified readerAhmet Kaan Gümüş · 4026107
feat(ec-probe,ec-matroska): register the TrueHD decoder in the unified reader ec-probe's AudioDecoder now carries a TrueHd arm (mirrors Ac3: send_packet/ receive_frame/flush/reset through the generic Decoder trait), so a TrueHD track decodes through Reader/AudioDecoder like any other codec instead of only being named in Reader::unsupported. ec-matroska's muxer writes CodecId::TrueHd back out as A_TRUEHD (demux already read it in); the symphonia shim needed no change since it wraps ec_probe::AudioDecoder generically. Library test updated from "TrueHD is listed unsupported" to "the TrueHD track in his 7.1 remux decodes, 8ch/48kHz, alongside the AC-3 track"; added a demux->mux->demux codec-id round-trip test in ec-matroska.
2026-08-14
fix(matroska): the SeekHead really points at the Cues, and four track facts a host needsAhmet Kaan Gümüş · c2c209e
fix(matroska): the SeekHead really points at the Cues, and four track facts a host needs The `SeekHead` stated the `Cues` position twice off the segment: `cues_at` was already relative and the table subtracted the segment body again, so the pointer landed in the middle of a cluster. This crate's own demuxer never noticed -- finding no `Cues` there it falls back to the cluster-header walk and reads the file perfectly -- while symphonia's reader follows the pointer, meets an element that cannot be there and refuses the file outright. Found by driving an exported `.mkv` back through symphonia. The remux test now resolves every `SeekHead` entry and asserts the element it lands on is the one it names. Four accessors a host cannot do without, all off the `Tracks` element that was already parsed: - `track_codec_id` -- the file's own `CodecID` (`A_EAC3`, `S_HDMV/PGS`), which says more than the `CodecId` it maps to and is what a copy and a refusal name. - `track_title` -- `TrackName`, now parsed and now written: `set_track_title` puts it back, so a subtitle track called "Signs" survives a remux. - `track_refusal` / `track_is_plain` -- what a `ContentEncodings` this cannot undo did, asked at the header instead of a cluster later, so one unreadable subtitle track is listed beside the readable ones rather than failing the file. - `unread_tracks` -- the `TrackEntry`s this crate hands no stream for, with their type: "MPEG-2 video nothing here decodes" is an answer, "no video track" is a lie about the same file. And `set_track_delay`, which writes `CodecDelay` for a track whose encoder delay only the caller knows: Opus states its own pre-skip in the `OpusHead` and is unaffected, AAC's is one access unit and nothing in the file says so -- a track written without it plays ~21 ms early against the picture.
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.