SafeVideoReviewed 2026-11-08

.avi

Identify an AVI by its RIFF header and check the stream formats when audio or video fails to play.

About this format

Audio Video Interleave (AVI) stores media in a RIFF container. Two AVI files can use different video and audio codecs, so a player may open one and fail to decode the other.

Identify an AVI from the first 12 bytes

Open a copy in a hex viewer and start at offset zero. Consider this illustrative header prefix:

52 49 46 46 | 24 00 00 00 | 41 56 49 20

The first four bytes spell RIFF. The middle four form a little-endian size field: 24 hex means 36 bytes, counted from offset 8. The last four spell AVI followed by a space. Together the fields identify the declared container. If the last four instead read 57 41 56 45, they spell WAVE, even if the filename ends in .avi. Neither prefix proves the rest of the file is intact.

Find out what a player needs to decode

In a RIFF chunk inspector, expand hdrl and look for one strl list per stream. Its strh chunk describes the stream and its strf chunk gives the format details. The media samples live separately under movi.

Suppose the inspector shows 00dc and 01wb inside movi. The first identifies a compressed video frame in stream 0, the second audio data in stream 1. Many different codecs can yield those same labels. Read the compression field of stream 0's video format and the format tag of stream 1's audio format before choosing a decoder.

If the picture plays silently, first check whether an audio stream exists. An AVI may contain video alone. If audio is present, compare its reported format with the player's supported audio codecs and check the selected track and mute setting. When making an MP4 copy, stream copying can preserve the encoded samples if the destination accepts both streams. Re-encoding a stream can change quality. Keep the AVI while checking the new file.

Safety guidance

A matching signature identifies the declared file type. It does not establish who made the file or whether the media data is safe to parse. Use an up-to-date viewer for files from unfamiliar sources.

Compatible software