Skip to content
Bytevive

Can VLC repair a corrupted video? What it fixes and what it can't

VLC can rebuild a damaged AVI index and play files other players refuse, but it doesn't repair MP4s. What each VLC trick really does, and what to use instead.

By the Bytevive team7 min read

VLC asking whether to repair a broken AVI index on a laptop in a dim living room

Search for how to fix a broken video and VLC comes up again and again. Turn on its repair setting, the advice goes, or rename the file to .avi, or run it through Convert / Save. VLC is a superb player and it’s free, so it’s worth knowing exactly which of those tips do something and which don’t.

We read VLC’s documentation and its source code to check. Where we’re reasoning from how the formats work rather than from VideoLAN’s own words, we say so.

The short answer

VLC can make a damaged AVI file seekable while you watch it, and it can play plenty of files that Windows’ built-in apps reject. It does not repair MP4 or MOV files. If an MP4 won’t open because its index is missing, which is what usually happens when a recording is cut off, VLC can’t fix that and neither can its converter.

VLC’s one real repair feature: rebuilding an AVI index

An AVI file usually keeps an index of its frames near the end. If a download or recording stopped early, that index can be missing or incomplete, and the video won’t seek properly. VLC’s AVI module has a setting for this, documented on the VideoLAN wiki as: “Recreate a index for the AVI file. Use this if your AVI file is damaged or incomplete (not seekable).” It has four values: Ask for action (the default), Always fix, Never fix, and Fix when necessary.

To change it in VLC 3 on Windows:

  1. Open Tools → Preferences.
  2. In the simple view, click Input / Codecs.
  3. Find Damaged or incomplete AVI file and choose Always fix.
  4. Click Save, then open the AVI again.

If you leave it on Ask for action, VLC shows a “Broken or missing Index” prompt with three buttons: Do not play, Build index then play, and Play as is. The message in VLC’s source code is honest about what happens next: “VLC won’t repair your file but can temporary fix this problem by building an index in memory.”

That’s the catch most guides skip. The file on your disk stays exactly as it was. Other players will still have trouble with it, and VLC has to rebuild the index each time you open it, which can take a while on a large file. If you need a file that works everywhere, you need to write a new one, for example with Convert / Save (below).

Why “rename the MP4 to .avi” is doubtful

A popular tip says to rename a broken MP4 to .avi so that VLC’s AVI fix kicks in. We haven’t tested this on every kind of broken file, but VLC’s source code gives a clear reason to doubt it. Before the AVI module handles a file, it checks the first bytes for the RIFF … AVI signature that every AVI file starts with. The file name isn’t part of that check.

Two files, two different maps

An AVI starts with a RIFF header and keeps its index at the end. An MP4 starts with ftyp, and its index (moov) is usually at the end too, but it's a different structure entirely.

  1. RIFF AVIAVI signature
  2. moviAVI frames
  3. idx1AVI index
  4. ftypMP4 file type
  5. mdatMP4 frames
  6. moovMP4 index
First byteLast byte
Simplified and not to scale. Left: an AVI file. Right: an MP4. VLC's AVI repair only ever deals with the left-hand kind.

An MP4 begins with an ftyp box, not RIFF, so the AVI module shouldn’t accept it whatever it’s called, and VLC will read it with its MP4 reader as usual. Even if the AVI code did run, the thing it rebuilds is an AVI index. An MP4’s index is the moov atom, which the FFmpeg documentation notes is “usually written at the end of the file”. If it was never written, there’s nothing for an AVI routine to find. Renaming a copy is harmless, but don’t expect it to work.

Convert / Save: a new copy, not a repair

The other common tip is to open the broken video in Media → Convert / Save and convert it to a new file. This can be genuinely useful, with two limits worth understanding.

  • It re-encodes. VLC’s built-in conversion profiles compress the video again. That takes time and costs some quality, as every re-encode does. You’re trading the original for a copy that plays.
  • It can only convert what VLC can read. Conversion works by decoding the file the same way playback does. That’s our reasoning rather than a VideoLAN statement, but it follows: if VLC can’t play the file because the MP4 index is missing, there are no frames to hand to the encoder, and the output will be empty or the conversion will fail.

Where it helps is with a file VLC plays but other software won’t accept, such as an AVI with a broken index or a clip with a few damaged frames. Converting writes a fresh file with a clean structure, which an editor or another player may handle better.

What VLC is really good for

VideoLAN’s own pitch is that VLC “plays most codecs with no codec packs needed”. That matters because many “corrupted” videos aren’t damaged at all. The player just can’t decode them. The classic example is an iPhone video in HEVC on a Windows PC without the HEVC extension: a black screen or an error in Windows, perfect playback in VLC. We cover that case in iPhone video won’t play on Windows, the Mac equivalent in QuickTime’s “not compatible” message, and the error codes Windows shows for it in what errors 0xc00d36c4 and 0xc00d5212 mean.

So VLC is the right first test. If a file plays in VLC, it isn’t corrupted in any way that matters, and you should solve the player problem instead. Avoid bundled codec packs while you’re at it: Microsoft says it “strongly discourage[s]” installing them because of known compatibility problems.

Which tool for which symptom

SymptomLikely causeRight tool
AVI plays but won’t seek, or VLC asks about a broken indexDamaged or missing AVI indexVLC’s Damaged or incomplete AVI file setting; Convert / Save for a permanent copy
Plays in VLC, but Windows apps show an error or a black screenMissing codec, often HEVCVLC, or the codec extension from the Microsoft Store (see the iPhone guide)
MP4 or MOV plays from your disk but stalls online, won’t seek while loading, or an upload site keeps “processing”Index (moov) at the end of the fileBytevive or FFmpeg’s -movflags +faststart
MP4 or MOV won’t open anywhere after a recording was cut offIndex (moov) never writtenA tool that rebuilds the index from a healthy reference clip, such as untrunc (see the dead-battery guide)
Plays, but with green blocks, freezes, or broken soundDamaged framesVLC often plays through it; Convert / Save may give a cleaner copy

The honest limits

No player or converter can invent data that isn’t in the file. VLC’s AVI fix only works around a missing index during playback, and conversion only re-packages what VLC can decode. Our own tool has limits too. Bytevive works on MP4, MOV, and M4V files in your browser with a free account, and its job is narrow: when the index exists but sits at the end, it moves it to the front without re-encoding. It doesn’t open AVI files, doesn’t fix codec problems, and doesn’t rebuild a missing index. When the index is missing, it tells you so rather than pretending. For the full range of options, see how to fix corrupted video files, our comparison of online video repair tools, and how fast start works.

The bottom line

VLC is the best free first step when a video won’t play, because it tells you whether the file is readable at all. Its repair abilities are narrower than the internet suggests: an in-memory AVI index rebuild and a re-encoding converter. For an MP4 that plays locally but not online, Bytevive fixes it for free in your browser. For one whose index was never written, use a reference-clip tool. Renaming it to .avi won’t do it.

Frequently asked questions

Can VLC repair an MP4 file?
Not in the sense of fixing the file. VLC's only built-in repair option rebuilds the index of AVI files, and only while it plays them. It can often play MP4s that other players refuse, and Convert / Save can write a new, re-encoded copy of anything VLC can play, but it can't rebuild a missing MP4 index.
Does VLC's "Always fix" setting change my AVI file?
No. VLC's own message for a broken AVI index says it "won't repair your file" but can work around the problem by building an index in memory. The file on disk stays as it was, so other players will still struggle with it, and VLC rebuilds the index every time you open it.
Should I rename an MP4 to .avi so VLC repairs it?
It shouldn't help. VLC's AVI module decides whether a file is AVI by looking for the AVI signature in its first bytes, not at the extension, and an MP4 doesn't have that signature. Renaming is harmless if you work on a copy, but it won't rebuild an MP4's index.
Why does a video play in VLC but not in Windows Media Player or Photos?
Usually because VLC carries its own decoders and Windows needs an extension for some formats, HEVC being the most common. That's a codec problem, not damage, and nothing needs repairing. Microsoft strongly discourages third-party codec packs; install codecs from the Microsoft Store or the codec provider instead.
Does Bytevive upload my video, and what can it repair?
No, nothing is uploaded: Bytevive runs locally in your browser with a free account. It handles one specific job for MP4, MOV, and M4V files: moving an existing moov index from the end to the front without re-encoding. It doesn't repair AVI files, convert codecs, or rebuild a missing index.

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.

  1. VideoLAN wiki: AVI module options (avi-index)
  2. VLC source code: AVI demuxer, 3.0 branch (signature check and index dialog)
  3. VLC source code: Input / Codecs preferences panel, 3.0 branch
  4. VLC source code: preference category names, 3.0 branch
  5. VideoLAN: VLC media player
  6. Microsoft Support: Codecs FAQ
  7. FFmpeg Formats Documentation: MOV/MP4 muxer

Video stuck loading? Fix it in your browser.

Free account, no watermark. Moves a misplaced index to the front for MP4, MOV, and M4V, and your video is never uploaded.

Repair a video, free

Other free tools: video, PDF, photo, Office, ZIP, and audio repair.