Home / Repair guides / AVI file repair
AVI file repair: broken or missing AVI index
An AVI that won’t open, can’t be seeked or makes VLC ask about a broken index has usually lost its index: the list that tells players where every frame is. VLC can work around that for one playback. A repair writes a new, complete file. FrameRescue repairs Motion JPEG AVI files, the kind recorded by many older compact cameras and budget dashcams, and Xvid and DivX AVI files.
What “broken or missing AVI index” means
Inside an AVI file, the video frames and audio sit one after another in a block called movi. After it comes an optional index, idx1, which, in Microsoft’s words, “contains a list of the data chunks and their location in the file”. AVI files over 1 GB use the AVI 2.0 (OpenDML) extension, with its own index segments.
The index and the final sizes in the header are written when the camera closes the file. If the recording stops abruptly (battery dead, card removed, camera crashed), the frames are on the card but the index is missing or incomplete. Players then refuse the file, show no duration or can’t seek.
What VLC’s “Build index then play” does
When VLC finds a damaged index it asks “Broken or missing Index” and offers three buttons: Do not play, Build index then play and Play as is. The message is clear about the limit: “VLC won’t repair your file but can temporary fix this problem by building an index in memory.”
- The index is rebuilt every time you open the file, and only inside VLC.
- Windows, phones, TVs, editors and upload sites still get the damaged file.
- To stop the question, open Tools › Preferences › Input / Codecs and set Damaged or incomplete AVI file to Always fix, then save.
That is enough to watch the clip once. To keep it, edit it or share it, the file itself needs a new index.
Which AVI files FrameRescue can repair
AVI is a container: Microsoft lists DivX, Cinepak, Indeo, DV, Motion JPEG and uncompressed video among the codecs commonly found inside it. FrameRescue repairs Motion JPEG AVI files, and Xvid and DivX AVI files (MPEG-4 Part 2 video, which also includes FMP4 and 3ivx).
| AVI file | Repair |
|---|---|
| Motion JPEG, index missing or broken, header sizes left at zero, or file cut short | Yes: a new AVI with every frame copied unchanged and a new index, downloaded as name-repaired.avi |
| Motion JPEG over 1 GB | Yes, written back with AVI 2.0 indexes |
| Xvid or DivX (MPEG-4 Part 2, also FMP4 and 3ivx), index missing or broken, header sizes left at zero, or file cut short | Yes: a new AVI with the video and audio copied unchanged and a new index, downloaded as name-repaired.avi |
| Xvid or DivX over 1 GB (AVI 2.0) | Not at the moment: the repair stops and there is nothing to pay |
| DivX 3 (shown as MS MPEG-4 Video v3), H.264, DV or other codecs inside AVI | Not at the moment: the repair stops and there is nothing to pay |
| File made of zeros or of another file’s data, often after a failed recovery | No: there is no video left to rebuild |
Typical Motion JPEG AVI recorders are older compact cameras (for example Nikon COOLPIX L31, Canon PowerShot A800, Casio EX-Z65 and Ricoh PX, according to their manuals) and some budget dashcams.
How the repaired file is checked
The repaired AVI is decoded from the first frame to the last before it is offered.
- Motion JPEG: if any frame would have to be skipped or guessed, or the audio would need gaps filled with silence, the file is not delivered and you pay nothing.
- Xvid and DivX: if a few frames show decoding errors (some files do even when they were never damaged), the repair is offered with a note that it is not 100% verified, and you decide from the preview. If the check fails, there is nothing to pay.
When the check passes, you see a preview first and pay €5.00 only to download it.
Before you start
- Copy the AVI from the card to your computer and work on the copy.
- Don’t keep recording on the same card if other clips may also need recovery.
- Don’t run converters that overwrite the original: keep the file exactly as the camera wrote it.
Questions about AVI repair
Does VLC repair AVI files?
No. VLC’s own message says it “won’t repair your file”: it builds the index in memory for that playback only. The file on disk stays the same, so Windows, phones, TVs and editors still see it as broken.
How do I know which codec my AVI uses?
Play it in VLC, open Tools › Codec Information and read the video codec. Motion JPEG shows as Motion JPEG Video; Xvid and DivX show as Xvid MPEG-4 Video, DivX MPEG-4 Video or MPEG-4 Video. Old DivX 3 files show as MS MPEG-4 Video v3 and are not covered yet.
Can FrameRescue repair DivX or Xvid AVI files?
Yes. Xvid and DivX AVI files whose index is missing or that were cut short get a new index, with the video and audio copied unchanged. Files over 1 GB and old DivX 3 files are not covered yet: the repair stops and you are not asked to pay.
What about AVI files larger than 1 GB?
Large AVI files use the AVI 2.0 (OpenDML) index format. Motion JPEG files of that size are written back with AVI 2.0 indexes, so players can still seek through them. Xvid and DivX files over 1 GB are not covered yet.
Related repair guides
- Dashcams
Power cuts, loop and event clips, and dashcam files that won’t play.
- Video won’t play? Find the cause
Codec, player, incomplete copy or damaged file: quick checks for MP4 and MOV videos that won’t open.
- Recovered videos won’t play
Why recovery software returns broken MP4 and MOV files, what to try first and when repair helps.
- Video recovery or video repair?
Deleted files need recovery; files that exist but won’t play need repair. How to tell which one you need.
- Repair a corrupted MP4
Phones, action cameras, drones and dashcams: what “corrupted” usually means and what can be recovered.
- 3GP file repair
Old phone videos in 3GP or 3G2 that won’t play: which can be repaired, and how to check.
Repair your AVI
Upload the original damaged file. A healthy clip from the same device is optional. FrameRescue checks the result before offering it, and you pay €5.00 only if a repaired file is ready.