You recorded for a long time, MacWhisper stopped (in the one case we found, after the reporter briefly focused another app), and now the .m4a won't open in QuickTime, Music, VLC or anything else. You want the recording back, not a lecture on containers.

This page rests on a single public report, so it is a documented method, not a guaranteed fix. We don't make MacWhisper. Gubb has no long-recording or audio-file feature, so this is general recovery help.

Before you touch anything

Copy the broken file to another folder or drive and work only on the copy. Every step below is read-only on the original, but a copy costs nothing and removes the risk.

Why the file won't open

An .m4a is an MP4 container. The compressed audio sits in an mdat atom, and the moov atom is the table of contents: where each audio frame starts, how long it is, the sample rate and so on. A recorder normally writes moov when you press stop. If the app dies first, you are left with the audio and no table of contents.

In the reported case, a 2.5-hour recording produced a 72 MB file containing ftyp, wide and mdat atoms but no moov. That works out to about 64 kbit/s, so the file was not an empty shell. We don't know the underlying cause of the crash. The reporter linked it to briefly focusing another app, which is not proof.

Check whether your file matches

Install ffmpeg with Homebrew if you don't have it:

brew install ffmpeg

Then run this. It only reads the file:

ffprobe recording.m4a
What you see What it means Next step
moov atom not found The index was never written; matches the report Continue with the recovery sections
File is 0 KB or a few KB The app never wrote audio Nothing to recover; look for another copy
ffprobe reads it fine, but players fail A different problem Report it to the developer (see below)
Different error text Not the reported case Try another copy or ask the developer

Your file probably matches if it is large for the length you recorded, every player refuses it, and ffprobe reports the missing moov.

Step 1: Look for another copy

This takes a minute and could save the rest of the work.

  1. Check Time Machine or any other backup for a copy of the file.
  2. If you captured the same session another way (a second recorder, a meeting platform's own recording), use that.
  3. Check whether the app saved any other file for the session, such as a partial transcript.

Step 2: Rebuild the frames and remux (the reporter's method)

The reporter wrote a small program using ffmpeg's libavcodec library that did two things:

  1. Read the raw AAC data out of the mdat atom and rebuild it as a stream of ADTS frames, the self-describing frame format AAC uses outside MP4.
  2. Remux that stream into a fresh .m4a with a proper moov.

By their account, this recovered all the frames of the 2.5-hour recording. The full details are in the reporter's issue on the whisper.cpp GitHub tracker, which you can find by searching for the issue number 4116.

We can't give you a copy-paste command. The method needs custom code, and we won't invent one that might silently drop audio. What you can do:

  • Keep the original file untouched.
  • Share the file, or a short test clip cut from it, with someone comfortable with C and libavcodec, and point them to the issue.
  • When you get a rebuilt file, open it and scrub to the end to confirm the full duration is there.

Step 3: Try a repair tool that uses a reference file

Open-source tools such as untrunc are built to rebuild a missing moov using a healthy file made by the same recorder. To use one, make a short test recording in the same app with the same settings, then give the tool both files. We haven't verified that any such tool handles an audio-only .m4a like this one, so treat it as a quick attempt, not a promise.

Which option to pick

Option Needs coding Evidence it works for this file
Look for another copy No Not applicable
Rebuild ADTS frames and remux Yes One reporter recovered all frames
Repair tool with a reference file No None found for this case

Do the backup check first. If the recording matters and no other copy exists, go with the rebuild. Try the repair tool if you can't get help with code.

Checklist before you try again

  • The original file is copied and the original is left alone.
  • ffprobe reports moov atom not found.
  • You checked Time Machine and any second recording.
  • The file size is plausible for the length you recorded.
  • You know the real duration of the session, so you can check the recovered one.

Prevent it next time

The reporter's suggested fixes for the app are to write fragmented MP4 and to repair unfinished files on launch. In fragmented MP4 the index is written up front and extended in small pieces, so a crash costs only the last piece. Those changes are up to the app's developer.

Until then, you can reduce the risk:

  • Split long sessions into shorter recordings, for example one per hour.
  • Avoid switching apps during a very long recording. We don't know that the switch caused the crash, but avoiding it costs nothing.
  • Run a second, fragmented recording as a backup.

To set up the backup with ffmpeg, first list your audio devices:

ffmpeg -f avfoundation -list_devices true -i ""

Then record from an audio device, changing the 0 to your microphone's number from that list:

ffmpeg -f avfoundation -i ":0" -c:a aac -f mp4 -movflags frag_keyframe+empty_moov backup.m4a

This writes a fragmented MP4 to backup.m4a in the current folder. Press Control-C to stop. macOS asks for microphone access for Terminal the first time. Nothing here changes system settings, so there is nothing to undo. Delete backup.m4a when you no longer need it.

If nothing works

  • The file is tiny or 0 KB. The app never wrote audio, so there is nothing to recover.
  • ffprobe does not report a missing moov atom. Your file has a different problem from the reported one.
  • The recovered file is shorter than what you recorded. Compare its duration with your session. Audio may never have reached the original file.
  • You can't find anyone to write the recovery code. Keep the original. The method is documented, so the file can be recovered later.

Contact the MacWhisper developer through the support channel in the app or on its website. Include the file size, the recording length, your macOS version, what you were doing when it stopped, and the ffprobe output. A message you can copy:

Hi, a long MacWhisper recording stopped unexpectedly and the .m4a will not open in any player.
File size: [size] MB. Intended length: [hours]. macOS version: [version].
ffprobe reports: moov atom not found (ftyp, wide and mdat atoms present).
I was [describe what you were doing] when it stopped.
Could you suggest a way to recover it? Please also consider writing fragmented MP4 so a crash does not lose the whole file.

Common questions

Is my transcript lost too?

Not necessarily. If MacWhisper transcribed live or saved a partial transcript, check the app's session list. A transcript can't be rebuilt from a file that won't open until the audio is recovered.

Can I just rename the file or convert it with ffmpeg?

Renaming won't help, because the index is missing, not the extension. A plain ffmpeg -i conversion normally fails on the same missing moov, which is why the reporter rebuilt the frames from mdat.

Does this work for other recorders?

The same moov problem can hit any app that writes a standard MP4 and crashes mid-recording. We only have a documented recovery for this one case, so results elsewhere are untested.