VideoJuly 19, 2026· 8 min read

How to Fix Corrupted MP4 Files (And Why They Break in the First Place)

Your MP4 won't play? Here's why video files get corrupted, how to repair them, and what you can do to prevent it from happening again.

Few things are more frustrating than hitting play on an important video and watching your player throw an error. Or worse — it plays for three seconds, then freezes. The file size looks right, the filename's intact, but something's clearly broken.

If you've ever recorded a video only to find it unplayable later, you've met file corruption. And if you're lucky, it's fixable. Let's talk about what actually goes wrong, how you can repair corrupted MP4 files, and what you should do differently next time.

Why MP4 Files Get Corrupted

MP4 isn't just a video dump. It's a container format with a specific structure: a header (the "moov atom"), track indexes, and then all the actual video/audio data chunks. When everything's written correctly, players can quickly find what they need and start playback.

But here's the thing — that header? It's usually written at the end of the recording process. Which means if something interrupts the write (camera dies, app crashes, you yank the SD card), the file never gets finalized. You've got all the video data sitting there, but no map to read it.

Common culprits:

  • Interrupted recordings — Phone dies mid-video, dash cam loses power, you force-quit the app
  • Bad transfers — Unplugging a drive while copying, flaky Wi-Fi during upload
  • Failing storage — SD cards and hard drives don't last forever; sometimes they corrupt files on write
  • Software bugs — Rare, but recording apps sometimes mess up the file structure
  • Codec mismatches during editing — Re-encoding with bad settings can break streams

MP4 files are delicate. They're designed for efficiency, not for resilience. That's why a minor write error can make the whole file unplayable, even if 99% of the data is fine.

How to Tell If Your File Is Actually Corrupted

Before you start trying to fix it, make sure it's actually corrupted and not just a codec issue.

Try VLC first.

VLC plays almost everything. If VLC refuses to play it (or only plays partially), you likely have corruption. If VLC works but QuickTime or Windows Media Player doesn't, that's usually a codec problem, not corruption.

Check the file size.

If your 10-minute recording is only 2MB, something's definitely wrong. Compare it to similar videos from the same device. A massively smaller file size usually means the recording stopped way earlier than you thought.

Look for error messages.

"Cannot open file," "Unsupported format," "Invalid data," or just infinite loading — those are corruption red flags.

Method 1: Let VLC Try to Fix It

VLC isn't just a player. It has some built-in repair capabilities.

Open VLC, go to Media → Convert/Save, add your corrupted file, and choose Convert. Pick MP4 as the output format and let it process.

What's happening here? VLC tries to re-encode the file, skipping or reconstructing broken parts. Sometimes this rescues the playable portions. Sometimes it doesn't work at all. But it's free and fast, so worth a shot.

Method 2: Repair Tools (FFmpeg, Untrunc, and Friends)

If VLC doesn't cut it, you need dedicated repair tools.

FFmpeg (command line, free)

FFmpeg can sometimes salvage files by ignoring errors and extracting whatever's readable:

ffmpeg -i corrupted.mp4 -c copy fixed.mp4

The -c copy flag tells FFmpeg not to re-encode (which keeps quality intact). If the file is only partially broken, this can rescue the good parts.

For more aggressive recovery (when the header's completely missing), try:

ffmpeg -err_detect ignore_err -i corrupted.mp4 -c copy recovered.mp4

Untrunc (open-source, good for missing headers)

Untrunc is specifically built for MP4 files that are missing their header/index. You need a reference file — another MP4 from the same device/camera with the same settings.

The tool analyzes the reference file's structure, then tries to rebuild the corrupted file's index based on that template. It works surprisingly well for dash cam footage and interrupted phone recordings.

Downside: command-line only, needs some technical comfort. But if you've got a completely headerless file, it's one of the best free options.

Paid tools (if it's really important)

Stellar Repair, Remo Video Repair, Wondershare Repairit — these are GUI-based commercial tools that handle more complex corruption. They're pricey (usually $40–$70), but they have better success rates for badly damaged files.

Worth it? If the video is irreplaceable (wedding footage, once-in-a-lifetime moments), absolutely. For random screen recordings, probably not.

When Repair Won't Work

Let's be real — not every file is savable.

If the actual video data is gone (drive failure, accidental overwrite), no tool can invent it. Repair tools rebuild indexes and skip bad frames, but they can't recreate deleted information.

If you've got a 0-byte file, or the file was only partially written (like a 5-second clip instead of your expected 20-minute recording), that data simply doesn't exist.

Also, heavily encrypted or DRM-protected files can't be repaired with standard tools because you can't access the raw stream.

Preventing Corruption in the First Place

Okay, so you've learned the hard way. How do you avoid this next time?

  • Always safely eject drives. Yes, even in 2026. Yanking a USB stick or SD card mid-write is asking for trouble.
  • Don't force-quit recording apps. Let them finish writing the file. Those extra 2 seconds matter.
  • Use reliable storage. Cheap SD cards fail more often. If you're recording important stuff, invest in a name-brand card rated for video.
  • Keep your devices charged. Running out of battery mid-record is a classic corruption trigger.
  • Backup before editing. If you're compressing video files or making edits, work on a copy. Keep the original safe.

Some recording apps (especially professional ones) write backup headers during recording, so even if the final write fails, the file's still partially usable. If you're doing critical work (like event videography), look for apps with this feature.

What About Other Video Formats?

MOV, AVI, MKV — they all have similar corruption risks. MOV (Apple's format) is basically the same structure as MP4, so the same repair techniques apply.

AVI is older and more resilient in some ways (because it doesn't rely as heavily on a final header write), but it's also less efficient and not as widely supported.

MKV files can also get corrupted, but they tend to be more forgiving because the format allows for better error recovery. Still, interrupted writes cause problems.

If you're frequently dealing with corruption, consider converting your important files to a more robust format for archival. Not for everyday use, but for long-term storage where you want extra resilience.

When You Should Just Re-Record

Look, sometimes it's faster to just do it again. If you spent 30 minutes recording a tutorial and the file's toast, spending three hours trying to repair it doesn't make sense.

But if it's something unrepeatable — a live event, an interview, a moment you can't recreate — then yeah, throw everything at it. Try the free tools first (VLC, FFmpeg), then escalate to paid repair software if needed.

And next time? Set up a backup recording if it's that important. Two cameras, two phones, whatever. Redundancy isn't paranoia when the stakes are high.

Corrupted files are frustrating, but they're also a reminder that digital media isn't indestructible. Handle it with a little care, and you'll save yourself a lot of headaches.

Frequently Asked Questions

Can a corrupted MP4 file be recovered?
Yes, in many cases. If only the file header or index (moov atom) is damaged, repair tools can often rebuild it from the remaining video data. However, if the actual video frames are corrupted or missing, those parts are usually unrecoverable.
Why does my MP4 play video but no audio (or vice versa)?
This usually means one stream is corrupted while the other is fine. MP4 files contain separate video and audio tracks. If the audio track's index is broken, video players can't find it. Repair tools can sometimes rebuild the missing track's index.
What's the difference between a corrupted file and an unsupported codec?
A corrupted file has damaged data structure. An unsupported codec means the file is fine, but your player doesn't have the decoder. If VLC (which supports almost everything) won't play it, it's probably corrupted. If only your phone won't play it, it might be a codec issue.
How can I prevent MP4 corruption in the future?
Always safely eject drives before unplugging, avoid force-quitting recording apps, use stable storage (not failing SD cards), and keep backups of important videos. For critical recordings, consider using software that writes backup headers during recording.