How to uncorrupt a video file, step by step

To uncorrupt a video file, first work out what kind of damage it has, because the fix depends on it. Most "corrupted" MP4 and MOV files fall into three groups: healthy files with an unsupported codec (fix: another player or a conversion), files whose index was never written because recording was interrupted (fix: rebuild the index), and files with missing or overwritten data (fix: data recovery, sometimes impossible). The steps below go from free and fast to more involved. Always work on a copy of the file.

Step 1: make a copy and stop using the card

If the video is on an SD card, phone or drive, copy it to your computer and do not record anything else on the card. New recordings can overwrite the space where lost data still sits.

Step 2: test in VLC

Open the copy in VLC. VLC has its own decoders and tolerates a lot of damage.

  • It plays fine: the file is not corrupted. Your usual player lacks a codec (often HEVC) or the audio format. See file is not supported.
  • It plays but with glitches: some frames are damaged. Re-encoding the playable part can give you a clean file (Step 5).
  • It does not open, or shows 0:00: continue.

Step 3: check the structure

Run the free MP4 file checker on the file. It tells you in seconds whether:

  • the index (moov) is missing while the media data is present: the most common case and usually repairable;
  • the file was cut off partway: copy it again if the original still exists;
  • the file is empty or all zeros: no repair tool can help; go to Step 7.

Step 4: rebuild a missing index

When the index is missing, the frames are still there but players do not know where they are. Rebuilding it requires knowing exactly how the camera encoded the video, which is why repair tools ask for a reference file: a short, healthy clip recorded on the same device with the same resolution, frame rate and settings.

Options:

  • FixMP4: runs in your browser, nothing uploaded. Free diagnosis and a 15-second preview, so you can see the result before paying. Open the repair tool.
  • untrunc: free, open-source, command line; works well for many H.264 files. See untrunc online.
  • Desktop suites such as Stellar or Wondershare Repairit: see the comparisons in Stellar alternative and Repairit alternative.

Step 5: re-encode a file that plays with errors

If VLC or FFmpeg can read the file but playback breaks in places, re-encoding produces a fresh, consistent file. Damaged frames are dropped or concealed:

`` ffmpeg -err_detect ignore_err -i damaged.mp4 -c:v libx264 -crf 18 -c:a aac fixed.mp4 ``

HandBrake does the same with a graphical interface. You lose a little quality and the damaged moments stay imperfect, but the file becomes playable everywhere.

Step 6: try remuxing

Some files have a valid index with small inconsistencies (wrong timestamps, a broken edit list). Copying the streams into a new container often fixes playback without any quality loss:

`` ffmpeg -i input.mp4 -c copy -map 0 remuxed.mp4 ``

Step 7: recover data from the card

If the file is 0 bytes, all zeros, or much smaller than it should be, the video data is not in the file. It may still be on the card. Use a recovery tool such as PhotoRec (free) that scans the raw card for video data, then repair the recovered files, which usually lack an index. See recover videos from an SD card.

What does not work

  • Renaming the extension (e.g. .mp4 to .mov) only helps when the extension was wrong to begin with.
  • "Video repair" by converting with an online converter: converters need a readable file; they fail on a missing index.
  • Running chkdsk or Disk First Aid on the card can delete the clusters that recovery tools need. Recover first, repair the file system later.

Prevent the next one

Keep batteries charged, leave free space on the card, format cards in the camera rather than the computer, and replace cards that have produced errors before. For OBS, record to MKV or fragmented MP4, which survive crashes; see fix OBS recordings.

Which step fits your symptom

SymptomMost likely causeStart at
Plays in VLC, not in Windows or QuickTimeUnsupported codecStep 2
Will not open anywhere, large file sizeMissing indexStep 4
Opens, freezes or shows green blocksDamaged framesStep 5
Wrong duration or seeking jumpsBroken timestampsStep 6
0 bytes or a few KBData never writtenStep 7

Knowing the symptom saves time: rebuilding the index of a file that only lacks a codec changes nothing, and re-encoding a file without an index fails immediately.

FixMP4 compared with other options

FeatureFixMP4Desktop repair suitesuntrunc (CLI)VLC
Runs whereBrowser, on your deviceDesktop appCommand lineDesktop player
Keeps your file on your device✓✓✓✓
Nothing to install✓✕✕✕
Rebuilds a missing MP4/MOV index✓✓✓✕
Preview of your own repaired file before paying✓Trial (varies)Free tooln/a
Voice Memos / AAC without a referenceUsuallyVaries✕✕
Formats beyond MP4/MOV/M4A✕✓Many (FFmpeg)Plays many

Try it on your file

Free diagnosis and 15-second preview. Nothing is uploaded.

Open the repair tool

Frequently asked questions

Can every corrupted video be fixed?

No. If the audio and video data are still in the file, the index can usually be rebuilt. If the data was never written or was overwritten, nothing can bring it back.

What is the most common kind of video corruption?

A missing index (moov atom) after the recording was interrupted by a dead battery, full card or crash.

Does renaming the file fix corruption?

No. Renaming only helps when the extension is wrong for the real format.

Should I try VLC first?

Yes, it is free and plays many partly damaged files. It cannot rebuild a missing MP4 index, though.