v0.17.2 audio probe rejects valid .m4a with moov-after-mdat (iPhone Voice Memos)
Summary
Minutes v0.17.2's audio probe rejects valid .m4a files whose moov atom follows mdat (the default iPhone Voice Memos export layout). The same files were accepted under v0.14.0.
Reproduction
- Export a recording from iPhone Voice Memos, or use any
.m4awithftypmajor brandM4Aand atom orderftyp → mdat → moov. - Drop into the watched inbox path while running
minutes watchv0.17.2.
Expected
File is probed as a valid audio container and enters the transcription pipeline.
Actual
Watcher logs:
INFO stream is seekable with len=<N> bytes
WARN file failed audio probe — not a valid audio container, skipping
ffprobe accepts the same files cleanly: probe_score=100, full stream metadata, valid mp4a.40.2 AAC, correct Voice Memos creation_time and voice-memo-uuid tags.
Verified samples
| Size | Duration | Title | Encoder |
|---|---|---|---|
| 21 MB | 42:05 | "Jake Ursula 8/4" | iPhone Voice Memos 18.5 |
| 6.8 MB | 13:00 | "Pam Jake 10/10" | iPhone Voice Memos 18.6.2 |
| (historical) | — | (processed cleanly under v0.14.0) | iPhone Voice Memos |
The historical sample has the identical atom layout (ftyp → mdat → moov) and identical major brand (M4A , space-padded) — so the rejection is a probe-behavior change between v0.14.0 and v0.17.x, not a file-content issue.
Workaround
Container-only rewrite places moov first:
ffmpeg -i in.m4a -c copy -movflags +faststart out.m4a
v0.17.2 then accepts and processes the rewritten file normally. Audio data is byte-identical; only the atom order changes.
Suspected cause
Audio probe library was changed or tightened between v0.14.0 and v0.17.x. Possible angles:
- New probe requires
moovbeforemdat(streaming-friendly layout), which Apple Voice Memos does not produce by default. - Major brand
M4A(space-padded, Apple's audio-only brand) no longer recognized in addition toisom/mp42in compatible_brands.
Environment
- macOS 25.2.0 (Darwin)
- Minutes v0.17.2 (Homebrew tap
silverstein/tap) - Files originate from iPhone Voice Memos sync, dropped into
~/.minutes/inbox/.
Impact
Every direct iPhone Voice Memos export is unprocessable on v0.17.2 without manual ffmpeg remuxing. The default Apple layout is not faststart; users have to pre-process every recording.
Thanks for the detailed report. Two passes on this:
Diagnosis correction. Symphonia 0.5.5's isomp4 demuxer does handle ftyp -> mdat -> moov on seekable streams (verified against the demuxer source). The actual gate-side failure is one step deeper: the watcher's audio_duration probe in crates/core/src/watch.rs:194-221 requires both codec_params.n_frames and codec_params.sample_rate to be Some, and treats any missing piece as "not a valid audio container." Apple Voice Memos exports probe successfully but apparently do not write n_frames in the moov sample table for the recordings you tested, so the gate rejected them even though both symphonia and ffmpeg can decode them cleanly.
This explains the v0.14.0 vs v0.17.x split: the strict n_frames+sample_rate requirement was added during a v0.15/v0.16 hardening pass and was never tested against the Voice Memos no-frame-count case.
Fix. PR #232 splits the probe into two functions with different contracts:
is_audio_container(new): used by the validity gate. Returns true if symphonia probe succeeds AND at least one track has a non-null codec. Does not require duration metadata.audio_duration(unchanged signature and behavior): used only for memo-vs-meeting routing. When None on a probe-OK file, routing falls back to the configured default type.
The container check is tighter than just "probe succeeded" so a video-only mp4 misnamed .m4a still gets rejected. A separate codex review pass caught and fixed two earlier draft issues (a DoS angle from being too permissive, and the video-only-mp4 false-accept).
The ask. I cannot easily reproduce the exact failing case without a real Voice Memos file. My synthetic test files (ffmpeg-generated AAC m4a with the same atom order) do have n_frames present, so they probe cleanly under both the old and new code. Could you grab one of your shortest recordings (5-10 seconds is enough), confirm it has personally-uninteresting audio (just say "test test test" or whatever), and either drop the raw bytes here, or send it through a private channel, or share a link? I want to add it as a regression-test fixture so this exact failure mode never silently comes back.
In the meantime, the fix will ship in v0.17.3 either way; your ffmpeg -movflags +faststart workaround keeps working until then.
Workaround if you have not used it yet, for posterity:
ffmpeg -i in.m4a -c copy -movflags +faststart out.m4a
Tried a fresh 4-second Voice Memos recording from iOS — it probes cleanly under 0.17.2, doesn't reproduce. The original failing files (13min, 42min, real conversations) have identical atom structure to the passing test file, so the delta is somewhere in the sample-table contents — likely length-correlated or related to whatever tool staged them into the watched path (filename pattern is non-native: 2026-03-23_voicememo_<ts>-HASH.m4a). Happy to dig into the moov internals if useful, otherwise the PR #232 split should handle the class of failure regardless. Will retest on 0.17.3 when it ships.
v0.17.3 is live with the audio-probe split. The watcher now accepts any file symphonia probes into a non-null-codec track regardless of whether the moov sample table records n_frames, which should cover the iPhone Voice Memos exports you flagged.
Upgrade paths:
# Homebrew
brew update && brew upgrade --cask silverstein/tap/minutes
# Or download the DMG directly
# https://github.com/silverstein/minutes/releases/tag/v0.17.3
When you have a moment, two things would close the loop here:
- Drop one of your originally-failing recordings into the watched inbox on v0.17.3 and confirm it lands as a normal meeting instead of routing to
failed/. The 13-min and 42-min ones from your first report would be the strongest signal since they reproduce the no-n_frames-in-moov class. - If you ever do dig into the moov internals out of curiosity, I would still love a small fixture sample for a deterministic test case in the watch suite. Totally optional now that the fix is shipped.
Also a quick separate note: your work on #234 / PR #235 is in active review (codex flagged six things, the meatiest being a tempfile-cleanup-on-error gap and a question about which decode path actually produces the 2x output). Comments are on the PR. The macOS 26 .mov dual-track fix will be the headline of v0.17.4 once we finish that thread.
Genuinely, the contribution velocity today (#231 + #234 + PR #235 + the #224 cross-reference) is rare. Thank you.
Mathieu