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

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:
- Open Tools → Preferences.
- In the simple view, click Input / Codecs.
- Find Damaged or incomplete AVI file and choose Always fix.
- 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.
- RIFF AVIAVI signature
- moviAVI frames
- idx1AVI index
- ftypMP4 file type
- mdatMP4 frames
- moovMP4 index
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
| Symptom | Likely cause | Right tool |
|---|---|---|
| AVI plays but won’t seek, or VLC asks about a broken index | Damaged or missing AVI index | VLC’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 screen | Missing codec, often HEVC | VLC, 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 file | Bytevive or FFmpeg’s -movflags +faststart |
| MP4 or MOV won’t open anywhere after a recording was cut off | Index (moov) never written | A 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 sound | Damaged frames | VLC 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?
Does VLC's "Always fix" setting change my AVI file?
Should I rename an MP4 to .avi so VLC repairs it?
Why does a video play in VLC but not in Windows Media Player or Photos?
Does Bytevive upload my video, and what can it repair?
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.
- VideoLAN wiki: AVI module options (avi-index)
- VLC source code: AVI demuxer, 3.0 branch (signature check and index dialog)
- VLC source code: Input / Codecs preferences panel, 3.0 branch
- VLC source code: preference category names, 3.0 branch
- VideoLAN: VLC media player
- Microsoft Support: Codecs FAQ
- FFmpeg Formats Documentation: MOV/MP4 muxer


