Commits
Commits on
8dbd683068d7f87f21dcc4ed1dfdca786d82c52bFiltered to crates/ec-probe/tests/library.rsClear filter2026-08-25
fix(probe): skip the AVI test when the AVI files have left the libraryAhmet Kaan Gümüş · 283d445
fix(probe): skip the AVI test when the AVI files have left the library `avi_audio_chunks_end_cleanly_on_real_files` asserted that at least one of the two hard-coded AVI paths was present, so deleting that download failed the workspace run. Its two siblings already skip; sweeping the five test files that name paths under Downloads or Videos found this to be the only one that asserted presence rather than skipping.
2026-08-21
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.
fix(mp3): propagate real decode errors from Mp3Reader::take, and fix a test comparison that never saw themAhmet Kaan Gümüş · cc3e0e3
fix(mp3): propagate real decode errors from Mp3Reader::take, and fix a test comparison that never saw them Root cause of the "open: NeedMore" symptom on this file was never in ec-mp3's per-packet frame/reservoir bookkeeping — that already decodes this cover-art-tagged, CRC-less 192kbps/48kHz stream correctly one frame per packet, matching ffmpeg sample-for-sample once the LAME encoder's lead-in is accounted for (measured lag 2210 interleaved samples = 1105 stereo frames = exactly StreamInfo::initial_padding). Two real bugs, both now fixed: - Mp3Decoder::take() used `while let Ok(frame) = self.reader.next_frame()`, so any real decode error (corrupt CRC, unsupported layer) — not just the expected "nothing more yet" NeedMore/Eof — was silently dropped instead of reaching send_packet's caller. take() now returns Result and only swallows NeedMore/Eof. - The new real-file regression test compared decoded audio against ffmpeg without accounting for initial_padding: ffmpeg trims the LAME/Xing encoder's lead-in from its PCM output; ec-mp3's raw decoder intentionally does not (registry.rs: callers must count and drop it themselves). The mismatch alone produced corr=0.53; trimming `initial_padding * channels` off the front before comparing gets corr>0.999.
2026-08-14
feat(probe): one sniffing reader and one decoder registry for every audio fileAhmet Kaan Gümüş · 51de303
feat(probe): one sniffing reader and one decoder registry for every audio file Content decides the format, never the extension: RIFF, fLaC, OggS, EBML and ftyp by magic, MP3 and ADTS by three chaining frames after any ID3 tag (a lone MPEG audio header turns up inside AAC payload often enough that a single sync is not evidence). WAV, MP3, FLAC and ADTS are demuxed here — one walk, four framings, a frame index built on the first seek so a landing is sample-accurate. Ogg, mp4 and Matroska are delegated to their own crates: there is one EBML parser in this family and it is ec-matroska (cargo tree -p ec-probe shows the edge). Everything is served on the one reader the file was opened with, however many times it is seeked. Reader::seek answers where it actually landed, which is the number a segment start is trimmed against. Reader::unsupported names every audio track with no decoder and why. Cover art is not a video track and never appears as one. Tags: ID3v1/v2 and Vorbis comments; mp4 ilst is not read (edith reads no metadata today) and says so in the module docs. Verified: 26-file fixture matrix (format, codec, channels, packet counts against ffprobe, sample counts against ffmpeg), 100 random seeks per file each landing at or before its target within the container's own granularity, and a 9-file sweep of the real library covering aac, ac3, eac3, opus, mp3 and a TrueHD remux whose unplayable track is listed.