What happens inside the file when the power cuts
A camera doesn’t save a video in one go at the end. While you film, it writes the picture and sound to the card continuously, in a long block of data. What it can’t write until the end is the index: the table that says where each frame is and how long the recording lasts. It only knows that when you press stop.
So when the battery dies, the card fills up, or a phone crashes in the middle of a recording, the camera has already written almost all of the footage, and it never gets the chance to write the index. The file on the card is the right size, often several gigabytes, but every player refuses it.
On a Mac, it looks like this:
Why the footage is usually still there
Because the footage is written as you film, what was recorded before the stop is usually on the card. How much is lost at the very end depends on the camera; it’s usually only the final moments that were still in its memory.
Our tests show what happens to footage once it’s in the file. We tested 12 broken files: 11 recordings made on a Mac and cut off so the index was missing, and 1 real Canon clip whose copy was cut short. Between them they cover H.264 and HEVC video, AAC and uncompressed sound, MP4 and MOV. In every one, the footage written before the cut came back intact when the index was rebuilt. That tells you a missing index doesn’t take the footage with it; it doesn’t tell you how much a particular camera writes before it loses power.
There are two exceptions to know about:
- The camera never wrote the recording. Some cameras reserve space for a file when you press record and fill it in as they go. If power cut right at the start, the file can be the right size but full of zeros. There’s nothing in it to rebuild.
- The card itself is damaged. If your computer can’t read the card at all, that’s a different problem from a broken video. Get the card read first; deleted or unreadable files need a recovery tool such as Shotback (also ours), not a repair tool.
What to do right now
The next few minutes matter more than which tool you use.
- Stop filming on that card. Don’t record anything new on it, and don’t format it. New recordings can overwrite the parts of the card where your footage is.
- Copy the file off. Put the card in your computer (or connect the camera or phone) and copy the broken video to your computer. Work on the copy, and leave the original on the card until you have a version that plays.
- Check the copy finished. Compare the file size on your computer with the one on the card. If the copy is smaller, copy it again.
- Keep a normal clip from the same camera. Find, or record on another card, a short video from the same camera in the same mode: same resolution, same frame rate. It’s the helper a repair tool learns your camera’s format from. A few seconds is enough. Don’t change any settings first.
How repair works
To make the file play again, the missing index has to be rebuilt. A repair tool reads the helper clip to learn exactly how your camera writes video: the codec settings, the frame rate, how the sound sits between the frames. Then it walks through your broken file frame by frame, checking each one against that pattern, and writes a new index that points at the footage. The frames themselves aren’t changed or re-encoded.
Free tools like VLC and ffmpeg can’t do this, because they rely on the index that’s missing. You’ll see ffmpeg stop with moov atom not found. The MP4 repair guide explains those errors and the free fixes that do work for other kinds of damage.
VideoRescue does this on your Mac
Drop the video, and it finds a helper clip from the same camera by itself. Watch a 10-second preview for free, then save the whole video for $9 once.
What can’t be fixed
Repair brings back what’s in the file. It can’t bring back:
- The last moment before the power cut, if the camera hadn’t written it to the card yet. The last moments that were still in the camera’s memory when it lost power never reached the card, so no tool can bring them back.
- Footage that was never copied. If the copy to your computer stopped early, you only have what was copied. In our tests, an interrupted copy of a real Canon clip gave back about 6 seconds. Copy it again from the card to get the rest.
- A recording the camera never wrote. If the file is empty inside, no tool can help, and an honest one will tell you before you pay.
For the full set of free checks and fixes, see how to fix a corrupted video.
Questions
My camera shows the clip but it won't play. Is that the same problem?
Usually, yes. Many cameras list a file by its name and size even when its index is missing. The camera's own player, like QuickTime, needs the index to play it.
Should I let the camera repair the file?
Some cameras offer to repair an interrupted file when you put in a fresh battery. If yours offers, it's worth trying first, after you've copied the file to your computer, so you still have the original if it doesn't work.
Will formatting the card help?
No. Formatting can make the video much harder to get back. Copy everything off first.