DivX vs Xvid: legacy MPEG-4 video codecs
Compare classic DivX and Xvid video, MPEG-4 Advanced Simple Profile, AVI files, FOURCC identifiers and decoding compatibility.
Codec families
| Property | Classic DivX | Xvid |
|---|---|---|
| Coding family | DivX 4/5/6: MPEG-4 Part 2 | MPEG-4 Part 2 ASP |
| Earlier variants | DivX 3: Microsoft MPEG-4-derived | Not a DivX 3 implementation |
| Common container | AVI / DIVX | AVI |
| Typical FOURCC | DIVX, DX50 | XVID |
Xvid is a community-developed implementation of MPEG-4 Advanced Simple Profile. DivX later also marketed products based on H.264 and HEVC. An old AVI marked DivX is not necessarily encoded with the same technology as a recent DivX-branded file.
Advanced Simple Profile
Features such as B-frames, quarter-pixel motion compensation and global motion compensation may be used by MPEG-4 ASP encoders. Older hardware often implements only a subset. Profile, settings and packed bitstream conventions can affect decoding even when the file extension is familiar.
Quality and interchange
Compression quality depends on the source, encoder implementation, bitrate and settings. The brands do not establish an intrinsic quality ordering. Transcoding a legacy file to H.264 or HEVC can improve delivery compatibility but cannot recreate detail lost during its original encoding.
Identifying legacy files
Use the media file inspector to distinguish the AVI container from the actual video and audio codecs. FOURCC values are useful hints but may be ambiguous; the stream itself is the stronger evidence.
Specifications and sources
Further reading
Windows playback
Media Player Codec Pack
- MPEG-4 Part 2 — LAV Video / legacy filters. Matrix explicitly lists ASP and common legacy variants. — format support. MPC-HC.
- AVI — LAV Splitter — format support. MPC-HC.
MPC-FFmpeg (Plus x64)
MPC-FFmpeg provides an alternative playback route for the following formats: