How to Fix Corrupted MP4 Files (When Your Video Won't Play)
Your MP4 file is corrupted and won't play. Here's what actually causes video corruption, how to repair it, and how to prevent it from happening again.

You record something important — a presentation, a family video, a dash cam clip — and when you try to play it back, nothing. The file won't open. Or it plays for two seconds and freezes. Or the audio works but the video is black.
This is video corruption, and it's frustrating as hell.
The good news? Sometimes you can fix it. The bad news? Sometimes you can't. But before you give up and delete the file, let's walk through what happened, why it happened, and what you can actually do about it.
What Actually Causes MP4 Corruption
MP4 files aren't just a blob of video data. They're containers with a very specific structure. Think of it like a filing cabinet: there's a header (the index card), video and audio streams (the actual files), and metadata (notes about what's inside).
When something goes wrong during recording, transferring, or editing, that structure gets messed up. Here are the most common culprits:
- Interrupted recording — Your phone died mid-video, the camera overheated, or you force-closed the app before it saved properly
- Bad storage media — Failing SD cards, corrupted hard drives, or USB sticks on their last legs
- Transfer errors — Copying files and unplugging the drive too soon, or network hiccups during cloud uploads
- Software crashes — Your video editor crashed while exporting, or your screen recorder died during processing
- File system issues — NTFS vs FAT32 compatibility problems, or disk errors that scramble file data
Most of the time, the actual video data is fine. What's broken is the structure — the file header, the index, or the metadata. That's why repair tools exist. They rebuild the filing cabinet so your video player can find everything again.
Signs Your MP4 File Is Corrupted
Before you start trying to fix things, make sure you're actually dealing with corruption. Here's what it looks like:
- Video won't open at all (error message or just crashes the player)
- Plays for a few seconds, then freezes or stutters
- Audio plays but video is black or green
- Video plays but audio is missing or out of sync
- File size looks right, but duration shows as 0:00
- Seeking (jumping to different timestamps) doesn't work
If you're seeing any of these, you've got corruption. Let's fix it.
Method 1: Try a Different Video Player First
Look, I know this sounds too simple. But sometimes what you think is a corrupted file is just a player that can't handle certain codecs or broken metadata.
Before you do anything else, try opening the file in VLC Media Player. VLC is notoriously good at playing damaged files because it doesn't care about perfect structure — it just tries to decode whatever video data it can find.
If VLC plays it (even partially), you're in luck. You can actually use VLC to re-export the file:
- Open the video in VLC
- Go to Media → Convert/Save
- Add your corrupted file, click Convert/Save
- Choose MP4 as the output format and pick a destination
- Let it process
VLC will essentially re-encode the video, rebuilding the structure as it goes. It won't fix missing data, but it can repair structural issues.
Method 2: Repair the File with FFmpeg
If VLC didn't work, it's time to bring out the big guns: FFmpeg. This is a command-line tool, which means it's not the prettiest, but it's incredibly powerful.
FFmpeg can attempt to fix MP4 files by re-encoding them or copying the streams into a new container. Here's the command:
ffmpeg -i corrupted.mp4 -c copy fixed.mp4
This tells FFmpeg to copy the video and audio streams (-c copy) without re-encoding, just rebuilding the container. It's fast and works for a lot of header/index issues.
If that doesn't work, try re-encoding:
ffmpeg -i corrupted.mp4 -c:v libx264 -c:a aac fixed.mp4
This takes longer because it's actually re-encoding the video, but it can recover more severely damaged files. You can also use KokoConvert's video compressor for a no-command-line option that does something similar.
Method 3: Use a Dedicated Repair Tool
If FFmpeg feels too technical, there are GUI-based repair tools. Some are free, some are paid. Here are a few that actually work:
- MP4Fix — Simple, free, and open-source. Good for basic header repairs.
- Stellar Repair for Video — Commercial tool with a free trial. Handles more severe corruption.
- VLC (again) — You can also try Tools → Preferences → Input/Codecs and set "Damaged or incomplete AVI file" to "Always fix." Then restart VLC and try again.
Most of these work by analyzing the video stream, reconstructing the index, and fixing the moov atom (the part of the MP4 file that tells players how to read it). If that sounds like gibberish, don't worry — the tools do it for you.
Method 4: Extract What You Can
Sometimes the file is too far gone. But that doesn't mean all the footage is lost.
You can use FFmpeg to extract whatever video and audio data is recoverable, even if the file structure is completely broken. Try this:
ffmpeg -i corrupted.mp4 -c copy -map 0 recovered.mp4
The -map 0 flag tells FFmpeg to grab every stream it can find, even if the file says they don't exist. You might end up with a choppy or incomplete video, but something is better than nothing.
When the File Is Actually Unrecoverable
Here's the hard truth: if the video data itself is missing or overwritten, no tool can bring it back. Repair tools can rebuild the structure, but they can't conjure data out of thin air.
If you've tried everything and the file still won't play, it's probably unrecoverable. At that point, your options are:
- Check if you have a backup (cloud storage, phone sync, camera SD card)
- Look for a temporary or cache file that might still exist
- Accept the loss and move on (painful, but sometimes necessary)
And that brings us to the most important part: prevention.
How to Prevent MP4 Corruption in the First Place
The best way to deal with corrupted videos is to not have them happen. Here's how:
- Always stop recording properly — Don't force-close apps or yank out SD cards mid-write
- Use reliable storage — Cheap SD cards fail all the time. Spend the extra $10 on a SanDisk or Samsung
- Keep your devices healthy — Run disk checks, update firmware, and don't ignore warning signs
- Transfer files carefully — Let transfers finish completely before unplugging drives
- Keep backups — Seriously. 3-2-1 rule: three copies, two different storage types, one offsite
If you're working with important footage, also consider converting it to a different format as a backup. Sometimes transcoding to a more robust codec (like H.265 or ProRes) can prevent issues down the line.
Final Thoughts
Video corruption sucks, but it's not always a death sentence. Most of the time, the data is still there — it's just the structure that's broken. VLC, FFmpeg, and repair tools can rebuild that structure and get your video playing again.
But prevention is always better than recovery. Use good storage, stop recordings properly, and keep backups. Future you will thank you.
And if you do end up with a corrupted file? Don't panic. Try the methods above, starting with the simplest (VLC) and working your way up to FFmpeg if needed. You'd be surprised how often it works.