Format:DiscJuggler CDI
| Magic | none at offset 0; descriptor located from the file tail |
|---|---|
| Extensions | .cdi |
| On this wiki | Facts · Code · Notes · Topics |
DiscJuggler disc image (.cdi): sector data first and a session/track descriptor at the end of the file, whose length is stored in the last 4 bytes.
Layout
The Aaru reader (LGPL-2.1 or later) seeks to the end of the file, reads a little-endian int32 from the last 4 bytes as the descriptor length, then reads that many bytes from the end as the descriptor. The first descriptor byte is the session count (1 to 99). Each session starts with a fixed byte pattern (Aaru notes generated, not dumped, images can have extra data between sessions). Track records give a track mode (0 audio, 1 mode 1, ...) and a read mode that selects the sector stride: 2 = raw 2352 bytes, 3 = 2352 plus 16 bytes of Q subchannel, 4 = 2352 plus 96 bytes of raw interleaved subchannel; for mode 1 tracks read mode 0 is 2048 bytes per sector. The first track's data is preceded by 150 sectors in the file (Aaru adds 150 sectors to the offset for the first track).
Unverified: a version number near the end of the file mentioned by other sources was not found in the Aaru code read; the 4 bytes at the end are the descriptor length as far as Aaru's Identify and Read are concerned.
See also Format:CD-ROM raw sector layouts.
Code & repositories
- https://github.com/aaru-dps/Aaru @
1eaee6f63254f85e8a1119f4fce1e55f276e0846· license: LGPL-2.1-or-later (declared by the contributor; GitHub's detector did not recognize LICENSE)
Aaru.Images plugins for Alcohol 120%, CloneCD and DiscJuggler (Identify.cs, Read.cs, Structs.cs).
Tested on: source read, not run: read only, no build · checked 2026-10-19; last activity 2026-10-18; Note: the latest release ships binaries; the wiki links only the source, never the binaries