When a camera's battery dies mid-recording, the video usually won't play because the camera never got to write the file's index, the part that tells a player where the picture and sound are. The footage itself is often still on the card. To fix it, stop using the card, copy the broken file to your PC, and repair it with software that can rebuild the missing structure using a working sample video recorded on the same camera with the same settings.
The same applies when a recording ends because the memory card filled up, the phone shut down, a drone lost power or a dashcam was switched off with the ignition. Here is what happened to your file and how to get it back.
Why the video won't play after the battery died
Most cameras record MP4 or MOV files in two parts. While you film, they stream the video and audio data onto the card. Only when you press stop do they write the index (the moov atom) that lists every frame, the length of the clip and the codecs used. If the power cuts out first, you are left with a file full of footage but no map to read it.
That is why the file can be hundreds of megabytes or more yet show a length of 0:00, an error such as "This file isn't playable", or nothing at all in your video player. It is also why the usual tricks, like renaming the file or trying another player, rarely help with this kind of damage.
What to do right now
- Stop recording on that card. New footage could overwrite parts of the broken clip.
- Don't format the card, even if the camera suggests it.
- Charge the battery and put the card back in the camera. Some cameras detect an unfinished recording when they start up and offer to recover it. If yours asks, let it try before doing anything else.
- Copy everything to your PC. Use a card reader and copy the whole folder, including any small extra files the camera created. Keep the card as it is until the repair is done.
- Check the file size. If the broken file is 0 KB, the camera saved nothing and repair cannot help. If it is a sensible size for the length you filmed, the footage is probably there.
If the file is missing from the card entirely, it was never saved or the folder entry was lost. That needs data recovery software to find it first. File Repairer repairs files you have; it does not recover deleted files or read cards your PC can't see.
Why the repair needs a sample file
Because the index was never written, there is nothing in the broken file that says exactly how this camera encodes its video and sound. A working clip from the same device fills that gap: it shows how the camera lays out frames, which codec settings it uses and how the audio is packed. Repair software reads that pattern and uses it to rebuild the missing structure for the broken file.
Pick your sample carefully:
| Setting | Should match the broken video? |
|---|---|
| Same camera, phone, drone or dashcam | Yes, essential |
| Resolution (for example 4K or 1080p) | Yes |
| Frame rate (for example 30 or 60 fps) | Yes |
| Codec (H.264 or H.265/HEVC) | Yes |
| Video mode such as HDR, log profile or slow motion | Yes, if you used one |
| Length of the sample | No, a short clip is fine |
If you have no working clip with the same settings, record a short new one now with the camera set exactly as it was. Another clip from the same day on the same card is ideal.
Avoid using a clip that has been edited, trimmed, compressed by a messaging app or exported from editing software. Those files have been rewritten by other software and no longer reflect how the camera itself writes its videos, so the original file straight from the card is always the best choice.
How to repair the cut-off video with File Repairer
File Repairer is Windows software that repairs MP4, MOV, AVI and MKV videos. Its sample-file repair is designed for exactly this case: recordings cut off by a dead battery or a full card on phones, cameras, GoPro-style action cams, drones and dashcams. It rebuilds the missing structure for H.264 and H.265/HEVC video, along with the picture and sound. It all runs on your PC, so nothing is uploaded.
- Drag the broken video into File Repairer and click Repair All.
- If the result is Needs a sample file, add a working video from the same device with matching settings.
- Run the repair again and preview the video frames to check the picture.
- Look at the "what was recovered" panel, then save. The repaired copy gets " (repaired)" in its name and the original is left untouched.
Checking, repairing and previewing are free. Saving the repaired copy needs an Installation Key. If you have a whole card of clips and don't know which are broken, drag in the folder and use Tools > Check Files for Damage first.
What you can expect to get back
- Usually most of the recording. Footage that reached the card can normally be rebuilt.
- Not the last moments. The final second or so before the power died may never have been written, so the repaired clip can end slightly early.
- Not what was never saved. When a card fills up, recording stops at that point. Anything after it was never written and cannot be restored.
- Sound included where it was recorded. If the camera recorded audio, it is rebuilt with the picture. If damaged sound is the problem, see repairing a video with no sound.
How to avoid losing the next recording
- Start long recordings with a full battery and carry a spare, or run from external power.
- Check free space on the card before you start, and format it in the camera after you have backed up.
- Use cards rated for video recording at your camera's resolution and bitrate.
- Wait for the camera to finish saving before opening the card door.
For device-specific tips, read repairing drone, dashcam and action camera video, or our general guide to repairing a corrupted MP4.
Frequently asked questions
Is my footage gone if the battery died while recording?
Usually not. The video data that reached the card is normally still there; what's missing is the index the camera writes when you press stop, and that can be rebuilt.
Can I use a clip from a different camera as the sample?
No. The sample needs to come from the same device, recorded with the same resolution, frame rate and codec, so the repair can match how the footage was written.
Does the same fix work when the memory card was full?
Yes. A full card stops recording before the index is written, just like a dead battery, so the same sample-file repair applies. Anything after the card filled up was never saved.
