GoPro, drone, or dashcam video won't play after the battery died? What you can actually recover
Why a clip cut off by a dead battery won't open, what the camera's own repair does, how to tell a missing index from a misplaced one, and what's gone for good.
By the Bytevive team9 min read

The battery died halfway through the best run of the day, or the drone hit a tree, or the dashcam lost power at exactly the wrong moment. Now the clip is on the card, it’s a respectable size, and nothing will play it. Windows says it can’t open the file, VLC shows nothing, and FFmpeg says moov atom not found.
The footage is often still there. What’s usually missing is the small part of the file that tells a player how to read it. This guide goes through what to try, in order, so you don’t make things worse before you start.
Why a cut-off MP4 won’t play
MP4 and MOV files are built from blocks called atoms, which the Library of Congress describes as the format’s fundamental building blocks. Nearly all of a recording is one atom, mdat, holding the raw video and audio. A much smaller one, moov, is the index: it records the codec, the duration, and where every frame sits inside mdat (you can inspect both layouts in our interactive MP4 box walkthrough).
A camera can’t write that index until it knows where every frame landed, so it writes the frames as they come and adds the index when you press stop. The FFmpeg documentation puts it plainly: this metadata is “usually written at the end of the file”, and a normal MOV/MP4 “is undecodable if it is not properly finished”.
An MP4 recording cut off by a dead battery
The camera writes video and audio continuously, and the index only when recording stops. Lose power first and the index never arrives.
- ftypFile type
- mdatVideo and audio, written as you record
- moovIndex, written at stop
Power lost here: everything after about 72% of the file is missing, which takes out mdat, moov.
That’s the whole problem in one picture. Most of the bytes are fine, but without the index a player sees a long run of data with no map, and gives up.
Step 1: Let the camera repair it
GoPro cameras have a repair routine for exactly this. The HERO7 White manual says the camera “will automatically try to fix damaged files. Files can be damaged if your camera loses power while recording or if there’s a problem saving the file.” A File Repair icon appears while it works, and the camera tells you whether the file was fixed. On older models such as the HERO3+, the manual says to press any button when the icon appears.
- Put a charged battery in the camera, or connect it to USB power.
- Insert the same card, with nothing deleted or moved, and turn the camera on.
- If the File Repair icon appears, leave the camera alone until it finishes. Don’t pull the battery.
- Copy the clip to your computer and try it again.
If you have a card reader and want to be extra careful, copy the card (step 2) first and then put it back in the camera. Copying doesn’t change anything on the card, so the camera can still try its repair, and you keep an untouched copy whatever happens.
Drones and dashcams vary. Some may have a similar feature and some don’t, so check your model’s manual rather than assuming either way.
Step 2: Copy the whole card before anything else
- Use a card reader rather than a USB cable to the camera, so the camera can’t write to the card.
- Copy everything, not just the one file. If the index turns out to be missing, you’ll need a healthy clip from the same camera, and the easiest place to find one is the same card.
- Work on copies from now on. Keep the card and the first copy exactly as they are.
Step 3: Work out what you have
Before picking a tool, find out whether the index is missing or just in the wrong place.
- Compare the size with what you recorded. A 1.5 GB file that shows no duration, or 0:00, still has its data. A file of 0 bytes has nothing to repair; that clip’s data was never linked to the file, though card recovery software can sometimes find raw footage on the card, which is another reason to keep it untouched.
- Ask FFmpeg. If you have it installed, run
ffprobeon the file. If the output includesmoov atom not found, there is no index. That string comes straight from FFmpeg’s MP4 reader. - Or drop it into Bytevive. It reads the file’s structure in your browser without uploading it, and tells you whether the index is there.
ffprobe -hide_banner GX010045.MP4
# A cut-off recording typically prints something like:
# [mov,mp4,m4a,3gp,3g2,mj2 @ ...] moov atom not found
# GX010045.MP4: Invalid data found when processing input| What you see | What it usually means | What to do |
|---|---|---|
| Plays on your computer, but stalls online, won’t seek, or an upload site keeps “processing” | The index exists but sits at the end of the file | Step 4: move it to the front |
Won’t open anywhere; ffprobe says moov atom not found | The index was never written | Step 5: rebuild it from a reference clip |
| Plays, but freezes or turns to blocks near the end | The last frames were only partly written | Trim the end in any editor |
| File is 0 bytes | Nothing was saved under that name | Card recovery software, on an untouched card |
Step 4: The index exists but the video won’t stream or seek
If the camera’s repair worked, or the recording finished properly after all, the index will usually be at the end of the file. That plays fine from your own disk, but a browser or upload site has to receive the whole file before it can start. We explain why in why an MP4 won’t play until it’s fully downloaded.
- Open Bytevive’s video repair and sign in with a free account.
- Drop in the MP4, MOV, or M4V. There’s no general file-size cap (indexes up to 256 MB, within MP4’s 32-bit offset limits), and the file stays on your device.
- Bytevive moves the index to the front and rewrites the internal offsets that depend on its position. Nothing is re-encoded, so picture and sound are untouched.
- Preview the new copy and save it.
If the index was written but the recording stopped early, Bytevive keeps the frames that reached the disk and says how many seconds that is. If the index is missing instead, Bytevive tells you plainly (“The index was never written”): it can’t rebuild one that was never written and has no reference-file upload. It leaves your file untouched, and you move on to step 5.
Step 5: The index is missing, so rebuild it from a reference clip
A missing index has to be reconstructed by working out where each frame starts inside the raw data. That’s only practical if the tool knows exactly how your camera encodes video and audio, and the easiest way to teach it is to give it a healthy clip recorded on the same camera.
The free, open-source option is untrunc. Its README describes it as restoring “a damaged (truncated) mp4, m4v, mov, 3gp video. Provided you have a similar not broken video. And some luck.” This fork lists support for GoPro and Sony XAVC files and files over 2 GB, and offers ready-made Windows builds that include a simple GUI.
- Find a healthy clip from the same camera, ideally recorded with the same resolution, frame rate, and settings. If you don’t have one, record a few seconds now with the settings you used.
- Run untrunc with the healthy file first and the broken copy second:
untrunc healthy.mp4 broken.mp4, or pick the two files in the GUI. - It writes a new file with
_fixedadded to the name and leaves the original alone. Check the result from start to finish.
The README is candid that with a reference from a different camera, the chances are slim. If untrunc doesn’t work for you, several paid services and desktop apps do the same kind of reference-based rebuild, usually with a preview before you pay. Our comparison of online video repair tools covers which ones handle interrupted recordings and what they charge.
What’s gone for good
Even a perfect repair can only work with what reached the card. Be realistic about these:
- The last moments before the cut. A camera holds recent frames in memory before writing them to the card. Whatever was still in memory when the power went was never saved. How much that is varies by camera, and we can’t give you a reliable number.
- A partly written final stretch. The last frames that did reach the card may be incomplete. A repaired file can freeze, glitch, or lose sync for a moment at the end.
- Anything overwritten afterward. If the card was formatted or reused, the original data may be partly or wholly gone.
How to stop it happening again
- Know that chapters protect you. According to GoPro Labs, GoPro cameras split long recordings into chapters, traditionally 4 GB each (12 GB on newer models). Every finished chapter has its own index, so a power cut only puts the chapter being recorded at risk. Raising the chapter size means more footage rides on each one.
- Use fragmented MP4 or MKV where offered. FFmpeg’s documentation notes that a fragmented file “is decodable even if the writing is interrupted”, because the index is written in pieces as it goes. Many cameras don’t offer it, but some recording apps and software do.
- Mind the battery. GoPro’s manual says the camera saves the video and turns off when the charge runs out, so the real danger is power vanishing suddenly. Make sure the battery door is shut properly, stop recording before swapping batteries, and change batteries before they’re nearly flat.
- Give dashcams the right card. Dashcams rewrite their cards constantly. Cards sold as “high endurance” are marketed for that kind of continuous recording, and replacing an old card before it fails costs far less than losing the one clip you needed.
The bottom line
A video that won’t play after a dead battery usually has its footage intact and its index missing. Let the camera try its repair, copy the whole card, and then check whether the index exists. If it does, Bytevive can move it to the front for free in your browser. If it doesn’t, you need a reference-clip rebuild such as untrunc, and the final seconds before the cut won’t come back whatever you use. For other video failures, start with how to fix corrupted video files, or if QuickTime on a Mac is refusing a finished clip instead, see QuickTime’s compatibility error guide.
Frequently asked questions
Can a GoPro video be recovered after the battery died mid-recording?
What does "moov atom not found" mean?
Can Bytevive fix a video with a missing moov atom?
Does a GoPro always corrupt the file when the battery runs out?
Why does untrunc need a second video?
Sources
Every claim, error message, price, and limit cited above comes from these pages, checked on November 22, 2026. If one has changed, tell us at support@bytevive.com and we’ll update the article.
- FFmpeg Formats Documentation: MOV/MP4 muxer, fragmentation and faststart
- FFmpeg source code: the "moov atom not found" error (libavformat/mov.c)
- Library of Congress: QuickTime File Format
- GoPro HERO3+ Black user manual: File Repair icon
- GoPro HERO7 White user manual: File Repair (copy hosted by projectgo.pro)
- GoPro Labs: Larger Chapter Support
- untrunc (anthwlock fork) on GitHub


