This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: "CD-Text" – news · newspapers · books · scholar · JSTOR (September 2013) (Learn how and when to remove this template message)
Compact Disc Text
Compact Disc Text

CD-Text is an extension of the Red Book Compact Disc specifications standard for audio CDs. It allows for storage of additional information (e.g. album name, song name, and artist name) on a standards-compliant audio CD.

The specification for CD-Text was included in the Multi-Media Commands Set 3 R01 (MMC-3) standard, released in September 1996 and backed by Sony.[1] It was also added to new revisions of the Red Book.[2] The actual text is stored in a format compatible with Interactive Text Transmission System (ITTS), defined in the IEC 61866 standard.[3] The ITTS standard is also applied in the MiniDisc format, as well as in Digital Audio Broadcasting technology and Digital Compact Cassette.

Storage

The CD-Text information is stored in the subchannels R to W on the disc. This information is usually stored in the subchannels in the lead-in area of the disc, where there is roughly five kilobytes of space available. It can also be stored on the main program area of the disc (where the audio tracks are), which can store about 31 megabytes.[1] Since the R to W channels are not used in the Red Book specification of audio CDs, they are not read by all CD players, which prevents some devices from reading CD-Text information.[1]

Format

CD-text data is defined in a scattered manner between MMC-3 and Sony documentation. The below uses GNU libcdio's description.[4]

On the lowest level, CD-text is stored in 18-byte "pack" units; this part is defined in MMC-3 Annex J. Each pack consists of 4 bytes of header (type indicator, track number reference, sequential counter, Block Number and Character Position Indicator [BNCPI]), 12 bytes of payload, and 2 bytes of CRC. The type indicator ranges from 0x80 to 0x8f, the 13 defined values being:[5]

CD Text Keywords
Keyword Description Section Format
ARRANGER Name(s) of the arranger(s) Any Character
COMPOSER Name(s) of the composer(s) Any Character
DISK_ID Disc Identification information Any Binary
GENRE Genre Identification and Genre information Any Binary
ISRC International Standard Recording Code of each track Track Character
MESSAGE Message from the content provider and/or artist Any Character
PERFORMER Name(s) of the performer(s) Any Character
SONGWRITER Name(s) of the songwriter(s) Any Character
TITLE Title of album name or Track Titles Any Character
TOC_INFO Table of Content information Any Binary
TOC_INFO2 Second Table of Content information Any Binary
UPC_EAN UPC/EAN code of the album Disc Character
SIZE_INFO Size information of the Block Any Binary

The BNPCI is used to define information that does not fit in one pack. This can be text or binary data. The BNCPI also indicates whether the text is single-byte or double-byte data in the top bit. This determines how null-terminated strings are defined -- one or two bytes of 0x00.[4] (Note: the DBCS mode is rarely, if ever, used. Its special null handling is not necessary for computer DBCS code pages, as they are "hybrid" with ASCII and compatible in the NUL behavior. UTF-16 could be the intended use.)

For block types listed above as "Character" (per MMC-3), the payload is a simple null-terminated string. (MMC-3 is written confusingly here -- it describes the encoding as "ASCII" in the pack type table despite mentioning the BNCPI flag modifying its behavior later.) The descriptions of the binary fields are vague, but the developers of GNU libcdio has either matched them to sections of MMC-3 or written new descriptions based on Sony's sample.[4]

Another layer of encoding specification is found at this payload level, in the SIZE_INFO block. Here the first byte may be used to indicate the encoding, ASCII, Latin-1, or "MS-JIS". This is supported by the original Sony authoring tools.[4]

See also

References

This article includes a list of general references, but it lacks sufficient corresponding inline citations. Please help to improve this article by introducing more precise citations. (October 2009) (Learn how and when to remove this template message)