# What is a DivX File?

A DivX file contains video encoded with a DivX codec, commonly MPEG-4 Part 2 or a later DivX variant. The encoded stream is often stored in an AVI or MKV container rather than a container unique to DivX.

<span aria-hidden="true" id="how-it-works"></span>

## How DivX Files work

DivX is a brand that covers several codec generations and device profiles, not one file structure. DivX 3 was based on Microsoft’s MPEG-4 v3 codec, which decoders treat as a codec separate from standard MPEG-4 Part 2; the DivX 5 encoder is documented as an MPEG-4 Part 2 implementation (Simple and Advanced Simple Profile); and DivX states that versions 3 through 6 used AVI as their container. DivX 6 introduced the DivX Media Format, which uses the `.divx` extension and adds XSUB subtitles, menus, chapter points, and alternate audio tracks. Later generations changed both layers: DivX describes DivX Plus video as based on H.264, and it uses MKV for DivX Plus and DivX HEVC video. The decoder a file needs therefore follows from its stream, while the container supplies timing and track layout.

<span aria-hidden="true" id="key-facts"></span>

## Key facts

1. DivX-labeled AVIs do not all need the same decoder. FFmpeg maps the FourCCs `DIVX` and `DX50` to its MPEG-4 Part 2 decoder but maps `DIV3`, `DIV4`, `DIV5`, and `DIV6` to `msmpeg4v3`, the Microsoft MPEG-4 v3 variant that DivX 3 was based on. The FourCC is only a tag in the stream header, and FFmpeg’s table includes entries for broken AVIs, so confirm the codec by decoding a sample, not by reading the tag alone.
2. Stream-copying DivX video out of AVI can produce a file that standard decoders reject. FFmpeg documents DivX-style packed B-frames as not valid MPEG-4 and warns that they cause trouble when copied into MP4 or MPEG-PS/TS. Its MPEG-4 decoder logs a message when it meets them and suggests the `mpeg4_unpack_bframes` bitstream filter “without encoding but stream copy”: the filter repairs the stream during a copy, and FFmpeg’s documented example copies from one AVI file to another. A re-encode does not need the filter, because the decoder handles packed B-frames itself.
3. Not every DivX-era stream can be stream-copied into MP4 with FFmpeg. Its MP4 muxer’s codec tag table has entries for MPEG-4 Part 2, H.264, and HEVC but none for `msmpeg4v3` or XSUB subtitles, and the muxer stops with an error when a stream’s codec has no tag. Video that decodes as `msmpeg4v3` therefore has to be re-encoded to go into an FFmpeg-written MP4, and XSUB subtitles cannot be copied across.
4. The extension does not identify the codec, and it suggests the container without confirming it. DivX describes `.divx` files as based on the AVI container and `.mkv` as the Matroska extension, and its profile table lists `.avi` and `.divx` for its MPEG-4-era profiles and `.mkv`, `.avi`, and `.divx` for DivX Plus HD. A `.divx` filter therefore misses DivX video stored as `.avi` or `.mkv`, and no extension settles which codec is inside.
5. Decoding in software does not mean a DivX Certified device will play the file. The profile table sets separate ceilings per device class for frame size, bitrate, B-frame count, and quantization method: the Home Theater profile, for example, lists H.263 quantization and one B-frame, while DivX HD 1080p lists two B-frames and H.263, MPEG, or custom quantization.

<span aria-hidden="true" id="when-it-matters"></span>

## When DivX Files matter

Support DivX when handling legacy video collections or converting them for newer playback environments. Detect both codec and container because an extension alone may not reveal the decoder or demuxer required.

<span aria-hidden="true" id="transloadit"></span>

## How Transloadit helps with DivX Files

Transloadit’s video codec reference, which covers its FFmpeg-based Robots such as /video/encode, lists `mpeg4` (MPEG-4 Part 2, with encoders that include `mpeg4` and `libxvid`) and `msmpeg4v3` as readable and writable. These are the two codecs that FFmpeg maps the FourCCs above to.

The reference lists codecs. It does not cover DivX Media Format features such as menus or XSUB subtitles, so test files that depend on them.

* [Supported video codecs→](/docs/supported-formats/video-codecs.md)
* [/video/encode Robot→](/docs/robots/video-encode.md)

[Explore Transloadit’s file formats & compression capabilities](/docs/supported-formats.md)

<span aria-hidden="true" id="references"></span>

## Sources

* [DivX: DivX Profiles Tech Specs (file extensions, codecs, and limits per profile)](https://www.divx.com/wp-content/uploads/2018/10/DivX-Profiles%5FTech-Specs.pdf)
* [DivX Technology Glossary: AVI (container for DivX video versions 3 through 6)](https://www.divx.com/en/software/technologies/avi/)
* [DivX Technology Glossary: MKV (container for DivX Plus and DivX HEVC video)](https://www.divx.com/en/software/technologies/mkv/)
* [DivX Technology Glossary: H.264 (basis of DivX Plus video)](https://www.divx.com/en/software/technologies/h264/)
* [DivX press release, June 15, 2005: DivX 6 introduces the DivX Media Format](https://www.divx.com/press/divx-6-product-suite-offers-new-digital-media-experience/)
* [DivX 10 User Guide (PDF): .divx files and the AVI container](https://support.divx.com/hc/en-us/article%5Fattachments/360004036814)
* [Library of Congress format description fdd000069: DivX Video Codec, Version 5](https://www.loc.gov/preservation/digital/formats/fdd/fdd000069.shtml)
* [FFmpeg source, libavformat/riff.c: FourCC to codec mapping](https://raw.githubusercontent.com/FFmpeg/FFmpeg/master/libavformat/riff.c)
* [FFmpeg Bitstream Filters Documentation: mpeg4\_unpack\_bframes](https://ffmpeg.org/ffmpeg-bitstream-filters.html)
* [FFmpeg source, libavcodec/mpeg4videodec.c: packed B-frames handling and message](https://raw.githubusercontent.com/FFmpeg/FFmpeg/master/libavcodec/mpeg4videodec.c)
* [FFmpeg source, libavformat/movenc.c: MP4 muxer codec tags](https://raw.githubusercontent.com/FFmpeg/FFmpeg/master/libavformat/movenc.c)

[← Dithering](/glossary/dithering.md)[DRM Encryption →](/glossary/drm-encryption.md)

More in file formats & compression

* [DAT File](/glossary/dat-file.md)
* [DDS File](/glossary/dds-file.md)
* [DIB File](/glossary/dib-file.md)
* [ECW File](/glossary/ecw-file.md)
* [Entropy Coding](/glossary/entropy-coding.md)
* [EXR File](/glossary/exr-file.md)

[All 505 terms](/glossary.md)

## Turn media knowledge into a working pipeline

Connect uploads, processing, AI, storage, and delivery through one declarative API — with the encoding stack, scaling, and format churn handled for you.

[Try Transloadit for free](/c/signup/)
