Home / Repair guides / Moov atom not found
How to fix “moov atom not found” in MP4 or MOV
The message means FFmpeg or your player can’t find the file’s index: the moov atom that says where every frame is and how long the video lasts.
The short answer
- Your footage is usually still in the file. The recording stopped before the camera or phone wrote the index, so players can’t find the frames.
- Copying, converting or renaming won’t fix it. The index has to be rebuilt from the recorded data.
- Upload the damaged file. A healthy clip from the same device helps but isn’t required. You get a short preview before you pay, and you pay €5.00 only if the repaired video is ready.
Read the exact error message
Open a copy of the file with ffprobe or in the program that refused it, then find the message below.
| Message | What it means | What to do |
|---|---|---|
moov atom not found (FFmpeg, ffprobe) | The file has no index. Usually the recording was interrupted; sometimes the copy is incomplete. | If the original is still on the camera, phone or card, copy it again. Otherwise the index has to be rebuilt. |
Invalid data found when processing input (FFmpeg) | FFmpeg’s generic text for one error code, AVERROR_INVALIDDATA. After “moov atom not found” it means the index is missing. On its own, the file may not be a video at all. | Check the file size and where the file came from. If it came from recovery software, see recovered videos that won’t play. |
Could not find codec parameters for stream 0 (FFmpeg) | FFmpeg found a track but could not read enough of its frames to set up the decoder. Common when the file is cut short or the index points to data that isn’t there. | Check that the file has its full size, then treat it as a damaged index. |
stream 0, offset 0x…: partial file (FFmpeg) | The index exists but points past the end of the file: the file is truncated. | Copy it again from the source if you can; otherwise see repair a truncated MP4. |
| “The file isn’t compatible with QuickTime Player” (Mac) | QuickTime can’t read the file: a missing index, a codec it doesn’t support or other damage. | See QuickTime Player can’t open the file. |
| “File import failure” (Premiere Pro) | Premiere can’t read the file’s structure or codec. | See Premiere Pro “File Import Failure”. |
Error 0xc00d36c4 or 0xc10100be (Windows) | The Windows player can’t play the file: a missing codec or a damaged file. | See error 0xc00d36c4 or error 0xc10100be. |
Inside an MP4 or MOV: ftyp, mdat and moov
An MP4 or MOV file is a series of boxes (QuickTime calls them atoms). A recording from a camera or phone has three that matter:
| Box | What it holds |
|---|---|
ftyp | The file type, in the first bytes. Some MOV files start with wide or mdat instead. |
mdat | The recorded video frames and audio: almost the whole file. |
moov | The index: the tracks, the codec settings, the timing and the position of every frame. |
Inside moov, each track has a sample description (stsd, with the H.264 avcC or HEVC hvcC settings), timing (stts), frame sizes (stsz), frame positions (stco or co64) and the list of keyframes (stss).
Cameras and phones usually write moov last, when you press stop. That is why an interrupted recording has an mdat but no moov. Files prepared for the web often have moov at the start instead (“faststart”); both positions play normally.
Check your file in one minute
On a copy of the file, list its boxes with mp4dump from Bento4, or check whether its tracks can be read with MP4Box from GPAC or ffprobe from FFmpeg. All three are free.
mp4dump damaged-video.mp4
MP4Box -info damaged-video.mp4
ffprobe -v error -show_format -show_streams damaged-video.mp4- An
mdatand nomoov: the recording stopped before the index was written. The frames are usually there and the index has to be rebuilt. - A
moov, but FFmpeg reports “partial file” or the file is smaller than the original: the file was cut short. Copy it again from the source first. - A
moovbut no readable tracks: the index itself is damaged and has to be rebuilt. - Many
moofboxes: a fragmented MP4. It doesn’t give this error, but it can show 0:00; see video shows 0 seconds. - No boxes recognised at all: the file may not be a video, for example an empty file, a block of zeros or a copy of a whole memory card. FrameRescue tells you when an upload is a memory-card copy.
No tools? Upload the file: the check is free and tells you whether a repair is possible before you pay anything.
Why ffmpeg -c copy, faststart and renaming can’t fix it
ffmpeg -i broken.mp4 -c copy fixed.mp4 first has to read packets from the input. With no index, FFmpeg finds no streams or packets to copy. -movflags faststart moves an existing moov to the start of the file; it cannot create one that was never written. Renaming .mov to .mp4 only changes the name, and converters fail for the same reason as FFmpeg.
These commands do help when a file can still be read but reports the wrong duration.
How a missing moov is rebuilt
- Find the frames. The repair reads the
mdatfrom start to end and finds where each video frame and audio packet begins and ends. - Recover the codec settings. The settings the decoder needs (for H.264 and HEVC, the parameter sets) and the frame rate are normally stored in
moov. They come from a validated profile of the same camera model or from a healthy clip recorded with the same settings. - Rebuild the timing. Timestamps are rebuilt from the frame rate and the audio sample rate.
- Write and check a new file. A new
moovis written around the frames, and the result is decoded from start to end before it is offered.
H.264 and HEVC (H.265) recordings are supported, as are ProRes MOV files. A repair can’t bring back frames that were never written, have been overwritten or are encrypted.
untrunc does the same job from the command line, with a healthy reference from the same camera: see untrunc without the command line.
How a healthy reference helps
A healthy clip helps but isn’t required. It doesn’t donate missing footage: it shows how the same camera writes its files, so the codec settings and timing can be taken from it. Without one, FrameRescue first tries validated profiles of the same camera model; if none matches, it may ask you for a clip and let you retry once without uploading the damaged file again.
A useful reference matches the damaged file: same device, same codec (H.264 or HEVC), resolution, frame rate and audio. A clip in another format, for example an H.264 clip for an HEVC recording, or a video re-encoded by a messaging or social app, won’t help.
Before you start
- Keep the original unchanged. Work on a copy; don’t edit, convert or re-save the only copy.
- Copy it again from the source if the original is still on the camera, phone or card: a cut-off transfer is fixed by copying, not by repair.
- Stop recording on the same card if the file may need storage-level recovery later.
- Don’t send it through messaging apps, which re-compress video.
How to verify a repaired file
Opening the first frame is not enough. Check the beginning, middle and end of the recovered recording. Verify duration, seeking, picture continuity and audio synchronization. If the clip matters for editing, test it in the software where you intend to use it.
A container can be readable yet still contain gaps, damaged sections or timing problems, which is why validation must be treated as a separate step.
“Moov atom not found” FAQ
Can FFmpeg recreate a missing moov atom?
Not with a simple copy or faststart command when the required index does not exist. Structural reconstruction may be necessary before normal remuxing or decoding becomes possible.
What is an mdat without a moov?
It is the typical interrupted recording: the mdat box holds the recorded frames, but the moov box that describes them was never written. The frames can usually be found and a new moov built around them.
Is it bad if the moov atom is at the end of the file?
No. Most cameras and phones write it at the end, and players read it there without problems. Moving it to the start (faststart) only helps streaming on the web; it is not a repair.
Does a large file mean the video can be recovered?
No. A plausible size suggests that data exists, but it does not prove that all expected samples are present or that the surviving payload can be mapped correctly.
Do I need a healthy reference file?
Not to start. A healthy clip from the same device helps but isn’t required: FrameRescue first tries validated profiles of the same camera model, and asks for a clip only when none matches.
Can changing .mov to .mp4 fix the error?
No. Renaming the extension does not create missing track tables, timestamps or sample indexes.
What if the file was damaged during copying rather than recording?
Re-copy the original source first if it still exists. A transfer problem should be corrected at the source before attempting container reconstruction.
What does “Invalid data found when processing input” mean?
It is FFmpeg’s generic text for input it can’t read. When the line above it says “moov atom not found”, the MP4 or MOV has lost its index, usually because the recording was interrupted, and that can be repaired. Without a more specific message, FFmpeg may not have recognised the file at all.
Related repair guides
By symptom
- Video shows 0 seconds
0:00 with a large file size is usually repairable; 0 bytes is not. How to tell, free fixes and repair.
- Video won’t play? Find the cause
Codec, player, incomplete copy or damaged file: quick checks for MP4 and MOV videos that won’t open.
- Repair a corrupted MP4
Phones, action cameras, drones and dashcams: what “corrupted” usually means and what can be recovered.
By device
- iPhone
Photos and iCloud errors versus real file damage, and how to export the original MOV.
- GoPro
The camera’s own repair, chapters and file names, and repairing the MP4.
- DJI Osmo Action
Battery loss or shutdown: what to keep and how to repair the clip.
By origin
- Phone died while recording
Does the video save? Where to look on iPhone, Android and cameras, and how to repair the unfinished file.
- Repair a truncated MP4
Recording interrupted or copy cut off? How to tell, and when a reference-based repair is needed.
- Recovered videos won’t play
Why recovery software returns broken files and when repair helps.
Start a repair
Upload the original damaged file. A healthy clip from the same device helps but isn’t required. FrameRescue checks the result before offering it: you get a short preview before you pay, and you pay €5.00 only if a repaired file is ready.