AVI is an older Windows video container that can carry many different codecs.
Why AVI compatibility varies
The .avi extension does not identify the video format. Legacy DivX/Xvid, uncompressed video and various older codecs may appear inside AVI.
Open an AVI file
Right-click the .avi file, choose Show more options, then Open with MPC - Home Cinema if available.
When the picture or sound is missing
Use the Media File Inspector to identify the FourCC and audio codec. An AVI with a damaged index or unusual interleaving may need different handling from a genuinely missing decoder.
Legacy caveats
Avoid assuming that an AVI file is MPEG-4 video or that every historic codec can be decoded on modern Windows versions.