Free AVI sample, test and dummy files (.avi)
Classic Microsoft Resource Interchange File Format (RIFF) video containers with interleaved video and 16-bit PCM audio chunks. Use these samples to test legacy video ingestion pipelines, transcoding queues, and RIFF chunk parsers.
Quick facts: .avi format
| Extension | .avi |
|---|---|
| Full name | Audio Video Interleave (RIFF AVI Container) |
| MIME type | video/x-msvideo |
| Category | Video |
| Compression / Encoding | Container format (wraps MPEG-4 Part 2, MJPEG, or uncompressed video with PCM audio) |
| Magic bytes (signature) | 52 49 46 46 xx xx xx xx 41 56 49 20 ('RIFF....AVI ') |
| Specification | Microsoft RIFF AVI 1.0 Specification (1992) and Matrox OpenDML AVI 2.0 (1996) |
Download sample AVI files
Every file below is a spec-compliant .avi fixture generated deterministically for automated and manual testing. Verify the exact byte count and SHA-256 digest after downloading, or open the custom-size file generator to build additional fixtures in your browser.
| File | Size | Variant & contents | SHA-256 checksum | Download |
|---|---|---|---|---|
| sample-avi-320x180.avi | 226.02 KB231,444 bytes | 2-second 320x180 24fps SMPTE test pattern in RIFF AVI container | 2254057bbfedf8c39340569e5aae2e8ac099c966d0289b3c8e7da04630a5d1e1 |
Download AVI |
| sample-avi-640x360.avi | 372.81 KB381,760 bytes | 3-second 640x360 24fps SMPTE test pattern with PCM audio in RIFF AVI | e82917ba2066a8b88ce6c8ce70d67a4490a08a90f594643a11e05572c6dedda6 |
Download AVI |
What is a AVI file?
Audio Video Interleave (AVI) is Microsoft's multimedia container format introduced in November 1992 as part of Video for Windows. Structurally, an AVI file is a little-endian Resource Interchange File Format (RIFF) file whose top-level form type is AVI (hexadecimal 41 56 49 20 at byte offset 8). Internally, the container is organized into two mandatory LIST chunks: the hdrl (header list) chunk, which declares frame dimensions, frame rate, and stream FourCC codec identifiers (strh and strf), and the movi chunk, which interleaves compressed video frames (00dc) and audio blocks (01wb).
An optional idx1 chunk at the end of the file indexes the byte offset of every frame so media players can seek without scanning the entire movi payload. Because original AVI 1.0 used 32-bit signed offsets, files were historically capped at 2 GB until the OpenDML AVI 2.0 extension added hierarchical indx super-indexes.
How to open a .avi file on Windows, macOS, Linux, Android and iOS
- Windows: VLC Media Player, Windows Media Player Legacy, Movies & TV, and VirtualDub2 open AVI containers directly.
- macOS: VLC Media Player, IINA, and FFmpeg-based editors open AVI files (QuickTime Player dropped legacy AVI codec support in macOS Catalina).
- Linux: MPV, VLC, FFmpeg (
ffprobe/ffmpeg), and Totem parse both AVI 1.0 and OpenDML AVI 2.0 files. - Android and iOS: VLC for Mobile and MX Player decode AVI files in software when hardware decoders only accept MP4/WebM.
What to test with AVI sample files
- RIFF FourCC differentiation: WAV, AVI, and WebP files all begin with the exact same first four bytes:
52 49 46 46(RIFF). A naive magic-byte checker that inspects only the first 4 bytes will misclassify an AVI video as a WAV audio file or WebP image. Always inspect bytes 8–11 (AVIvs.WAVEvs.WEBP). - Transcoding worker queue validation: Because modern HTML5
<video>tags do not play.avinatively in Chrome, Safari, or Firefox, user-uploaded AVI files must be transcoded to MP4 or WebM. Use our 320×180 and 640×360 AVI samples to verify your background FFmpeg transcoding job. - Truncated index recovery: Test how your video inspector handles an AVI file whose trailing
idx1index chunk is missing or cut off.
Common problems when handling .avi files
Developers frequently encounter "codec not supported" errors when testing AVI files because AVI is only a container; two .avi files can contain completely different video bitstreams (such as DivX, Xvid, Motion JPEG, or uncompressed RGB). Our hosted samples use standards-compliant MPEG-4 Part 2 video and 16-bit little-endian linear PCM audio so every FFmpeg or Libav installation decodes them without proprietary codecs.
Need to convert or inspect a file right away? Use ConvertFerry Video Compressor & Converter or drop any local file into our in-browser Magic-Byte File Inspector.
Related formats and testing resources
Frequently asked questions
- Why do AVI, WAV, and WebP files share the same first four bytes?
- All three formats are built on the Resource Interchange File Format (RIFF), which starts with ASCII 'RIFF' (52 49 46 46) followed by a 4-byte little-endian file length. The specific format is identified by the 4-byte form type at offset 8: 'AVI ', 'WAVE', or 'WEBP'.
- Do browsers play .avi files inside an HTML5 <video> element?
- No. Current versions of Chrome, Firefox, Safari, and Edge do not support the AVI container in HTML5 video elements. Applications that accept .avi uploads transcode them to MP4 (H.264) or WebM (VP9/AV1) for playback.
- What MIME type is used for AVI files?
- The most widely recognized MIME type is video/x-msvideo, with video/avi and application/x-troff-msvideo seen in legacy systems.
- What video and audio codecs are inside these sample AVI files?
- They contain a 24 fps SMPTE color-bar test pattern encoded in MPEG-4 Part 2 video paired with 44.1 kHz 16-bit PCM audio.