Teletypes

Banks of switches were hardly the way to get big programs of hundreds or thousands of bytes into a computer. What engineers longed for was a device that could directly generate digital codes with a familiar interface, a familiar means for people to use it. Fortuitously, exactly what they needed was already widely used in the communications industry. The teletype machine traces its roots back to 1902 when researchers finally cracked one of the toughest problems plaguing the printing telegraph since Samuel Morse created the first one in 1845. With the creation of the start-stop code (which lives on today in the RS-232C port, see Chapter 11, “Ports”) in 1908, Charles and Howard Krum produced the first practical automatic printer connected to a telegraph line.

In 1919, the father-son duo created a keyboard-based transmitter, and the foundation for the teletype system was in place. In 1925, they merged their interests with those of a rival developer, Edward Kleinschmidt, and the company took the name Teletype Corporation in 1929 and was purchased by the Bell System a year later.

Although the printer was the most important side of the invention for its creators, computer designers eagerly adapted the transmitter to their machines. The transmitter became what is essentially the first computer keyboard—you typed into a typewriter-style keyboard and produced digital code (in the form of a five-bit international code invented by Emile Baudot in 1870 and named after him).

Keypresses on the teletype keyboard produced punched tape that, when fed into a reader, generated the Baudot code. Makers of tabulators, such as IBM, found the same technology could make the punch-cards they used. This punch-card technology became the input and output system of the first commercial computer, ENIAC. Two years later, the Binac computer used an electrically controlled typewriter keyboard to write magnetic code on tape.

By 1964, Bell Laboratories and General Electric created the first electronic computer terminal for the Multics computer system. With the introduction of this first video data terminal (VDT), all the intermediary steps between the keystrokes and final digital code disappeared. Each keypress produced a code in electronic form that could be immediately processed by the computer.

Regardless of whether punched tape serves as an intermediary or a terminal creates digital codes directly, all these technologies owe one particular bit of heritage to the teletype. You need to type in each letter the computer receives in exactly the same order you want the computer to receive it. The stream of characters is a serial sequence. Communication is reduced to a single, unidirectional stream, much like telling a story in a novel.

From the cyborg viewpoint, all this text comes from the language processing part of your brain. Your ideas must be fully digested and turned into words, and the words into text, before you communicate them with your computer.

This same technology survives today in all computers. The interface between man and machine in this process is your computer’s keyboard. The first major personal computer operating system used the keyboard as its primary (and only) input device. Your only means of control and data input was the keyboard. Even the longest, most intricate programs required that someone, somewhere, enter all the commands and data used in writing them through the keyboard.

Pointing Devices

To many people, the keyboard is the most formidable and forbidding aspect of a computer. The keys might as well be teeth ready to chomp down on their fingers as soon as they try to type. Typing just isn’t something that comes naturally to most people. Learning to type takes months or years of practice—practice that’s about as welcome as a piano lesson on a sunny afternoon when the rest of the neighborhood kids are playing in the pool outside.

Imagine trying to drive your car by typing in commands—turn right 15 degrees, increase speed to 55 miles per hour, stop before driving off that cliff—oh, well. Brace yourself for the landing. Although the keyboard provides an excellent way to move your properly formatted language-based thoughts into your computer, it is inefficient at more sophisticated means of control. Even if you could type with your fingers moving at the speed of light, control through the keyboard would still be slow because your brain needs to perform some heavy-duty processing of the data first, at biologic rather than electronic speeds.

Teletype-style input poses another problem. Control systems built from it are command driven. You have to type in individual commands, which in turn requires that you know which commands to type. If you don’t know the commands, you sit there with your fingers knotted and nothing happening.

One of Douglas C. Engelbart’s jobs at the Stanford Research Institute between 1957 and 1977 was to find ways of making computers more accessible and usable by ordinary people. One of his ideas was to put graphics on the computer screen and use a handheld device that would point at different places on the screen as you moved the device across your physical desktop. He made his first model of the device in 1964 and received a patent in 1970 for the first computer mouse. He called it that because it had a tail coming out the end, the interface wire.

Engelbart’s concept of combining the pointing device coupled with a graphical/menu-driven onscreen user interface was later developed at the Palo Alto Research Laboratory of Xerox Corporation in its Alto workstation in 1973. Xerox first commercially offered these concepts in its 1981 Star workstation, which inspired the Apple Lisa and Macintosh computers but was in itself not a marketing success.

The underlying concept was to allow you to indicate what function you want your computer to carry out by selecting from a list of commands presented as a menu. You point at the menu selection by physically moving the pointing device, which causes a corresponding onscreen movement of the cursor. One or more buttons atop the device enable you to indicate that you want to select a menu item—a process much easier to do than describe. The mouse was meant to be small enough to fit under the palm of a hand with the button under a fingertip. The whole process of moving the mouse and its onscreen representation is termed dragging the mouse.

Apple Computer, understanding the achievements made at SRI and Xerox with the mouse and graphical interface, incorporated both into its Macintosh computer in 1984. Although you could obtain a mouse and software to use it for Intel-architecture computers at about the same time, widespread use of a graphical interface did not become popular with Intel machines until the introduction of Windows 95.

Graphic Input Devices

A mouse is an indicator rather than a full-fledged input device. When you want to put graphic images into your computer, a mouse works only if you want to draw them anew. Capturing an existing image is more complex because your computer needs a way to represent it.

That need had already been filled by bitmapped display systems (see “Two-Dimensional Graphics,” later in the chapter), which break an image into visual units small enough that they blend together in the eye to form a single, solid image. The units used to represent the image are termed pixels, short for picture elements. The process of converting an image or the representation of an object into pixels is called pixelization.

The process is not easy because it must deal with two worlds, the optical and electronic, converting the optical representation of an image or object into an electronic signal with a recognizable digital format. Several devices can make this conversion, including the scanner and digital camera.

The scanner can convert anything you have on paper—or for that matter, anything reasonably flat—into computer-compatible electronic form. Dot by dot, a scanner can reproduce photos, line drawings, even collages in detail, sharper than your laser printer can duplicate. Better yet, equip your computer with optical character recognition software, and the images your scanner captures of typed or printed text can be converted into ASCII files for your word processor, database, or publishing system. Just as the computer opened a new world of information management to you, a scanner opens a new world of images and data to your computer.

The digital camera captures what you see in the real world. It grabs a view of not only three-dimensional objects but also entire scenes in their full splendor. As the name implies, the digital camera is the computer equivalent of that old Kodak, one that produces files instead of film. It captures images in a flash—or without one in bright daylight—and requires no processing other than what you do with your photo-editing software. It tops the list of most wanted computer peripherals because it’s not only a useful tool but also a neat toy that turns anyone into an artist and can add a good dose of fun to an otherwise drab day at the computer.

DVD Audio

Ever since the introduction of the CD-DA format, audio purists have insisted that it was not good enough. They could hear a definite digital sound (whatever that might be) that interfered with their enjoyment of music. They were quick to point out that tradeoffs made in the design of the CD-DA format slighted sound quality. The relatively low sampling rate required to pack enough information on a disc required high-order low-pass filtering to keep digital artifacts out of the audio, and even then the upper cutoff frequency must be too low to accommodate everything that old analog tape recorders could capture.

The huge capacity of the DVD system eliminates the need for the tradeoffs of the CD-DA system and unleashes the potential for superb audio quality—good enough to satisfy listeners with 24-karat ears. The audio-only implementation of DVD—termed DVD-Audio—isn’t just for purists, however. The system can use the multigigabyte storage of the medium for super-quality audio, additional channels, or both.

Whereas CDs are built around a 44.1KHz sampling rate, DVD supports both this rate (and the whole Red Book standard) as well as 48KHz, the same as professional audio systems, and a super-high quality 96KHz sampling rate. In addition to today’s 16-bit digital audio, DVD will also support 24-bit audio as well as several compressed multichannel formats to accompany video. The multichannel audio standards vary with the video standard used, with Dolby AC-3 (eight-channel audio) for NTSC video.

The options allowed the producer for linear PCM are wide. The systems support up to six channels with bit-depths of 16, 20, and 24. Recording may use either of two bit-rate families—the 44.1KHz of Red Book audio, supplemented by 88.2 and 176.4KHz multiples, or a 48KHz base rate supplemented by 96 and 192KHz multiples. The highest sampling rate and bit-depth (192KHz at 24 bits) allows response to nearly 96KHz, with a dynamic range approaching 144 dB. The maximum data rate of the system, 9.6Mbps, constrains the system to two channels of these highest-quality signals, and the storage capacity of the DVD system limits playing time (at this quality level) to about 67 minutes.

To extend playing time, the DVD-Audio standard allows for data compression of various sorts, including MPEG. Most intriguing is MLP, which stands for Meridian Lossless Packing. As the name implies, this system works like file compression and reduces data redundancies in the digital audio but allows the original signal to be perfectly reconstructed during decoding. Compression extends playing time enough to allow up to about 135 minutes of six-channel 24-bit audio sampled at the 96KHz rate.

To make six-channel audio compatible with two-channel stereo sound systems, DVD-Audio incorporates a special System-Managed Audio Resource Technique, or SMART (entirely different from the S.M.A.R.T. hard disk failure-prediction technology). This system allows the producer of an audio DVD to determine the optimum mix-down that combines the channels together for each selection on each disc. The mixdown information is stored as a table of coefficients—the level assigned to each channel in the mix—and each selection on the disc can have a particular table assigned to it. Each disc can accommodate up to 16 tables.

DVD-Audio discs also accommodate other kinds of data in addition to digital audio. The standard allows for including up to 16 still images in each track and for synchronizing a display of lyrics with the music. In addition, the DVD-Audio system provides for computer-style navigation through a screen-oriented menu system (or a simplified control system for audio players without computer displays).

Write-Once DVD Formats

The three write-once DVD systems are all based on the same technology as CD-R discs. They use an organic-dye medium that is essentially burnt by a high-power laser to create darkened pits on a disc.

DVD-R(A)

The A in the name stands for authoring. DVD-R(A) was the first rewritable DVD format, marketed by Pioneer in 1997. The initial drive stored only 3.95GB per disc and was priced at $17,000—hardly a mass-market item. The format was revised in 1999 to accommodate the full 4.7GB of other DVD systems. Both the 3.95GB and 4.7GB formats remain in use.

The DVD-R system is aimed at professional applications. It has been widely deployed to store images of documents used in commerce and for mastering DVDs, where it replaces the Digital Linear Tape systems once widely used for the purpose. Using the new Cutting Master Format on 4.7GB discs allows the use of part of the lead-in track to hold the Disc Description Protocol header information that was used on DLT tapes.

The DVD-R(A) system is centered around a 635-nanometer laser that’s used for writing discs. The dye media are tuned to this wavelength, so only discs designed for DVD-R(A) can be recorded in DVD-R(A) writers. The resulting discs can, however, be read by most DVD players, including both DVD-R(A) and DVD-R(G) drives.

The DVD-R(A) standard is sanctioned by the DVD Forum and is an official standard of ECMA International (which changed its name from the European Computer Manufacturers Association in 1994) titled ECMA-279.

DVD-R(G)

The G in the name stands for general purposes. DVD-R(G) is both an offshoot and refinement of the older DVD-R(A) technology. The chief change is the substitution of a less-expensive 650-nanometer laser for the shorter wavelength used in the DVD-R(A) system. This laser allows for less expensive drives and media but inhibits compatibility. DVD-R(G) discs can be written only in DVD-R(G) drives, although they can be read in almost any DVD player, including those designed for DVD-R(A) discs. The change in laser does not affect capacity. DVD-R(G) discs hold up to 4.7GB.

Because DVD-R(G) is a consumer-level medium, it incorporates content protection to the extent that a DVD-R(G) drive cannot make a copy of an ordinary DVD—for example, a motion picture—that uses CSS encryption. Moreover, the DVD-R(G) system does not support the CRF system used in mastering DVDs. The DVD-R(G) standard is sanctioned by the DVD Forum and is part of the DVD-Multi specification.

DVD+R

DVD+R is a relatively recent addition to the write-once repertory. An offshoot of DVD+RW technology (hence the use of the plus sign in the name), DVD+R discs can be created in any DVD+RW drive manufactured since the introduction of the format in April 2002.

As with CDs, the write-once DVD+R media are less expensive than the rewritable media, so DVD+R is a more affordable way of making permanent records. In addition, the dye-based medium is more reflective than the rewritable medium, making it more easily read in commercial DVD players. Whereas DVD+RW playback may be marginal in some early DVD players, DVD+R discs will likely work better.

The foremost consideration in developing the DVD+R format was compatibility with both DAT drives and video drives. As a consequence, the media hold the same 4.7GB as commercial DVDs, and there are no plans for alternate formats. The DVD+R specifications do allow for two-sided media, but the technology precludes the use of multilayer discs.

The DVD+R specification is sanctioned by the DVD+RW Alliance, and the official standard is published (along with DVD+RW) as ECMA-274.

Rewritable DVD Formats

The same phase-change technology that makes CD-RW possible has been applied to DVD to make a number of rewritable formats. The first of these came from the DVD Forum (and all were delivered months later than promised).

DVD-RAM

The first rewritable format, DVD-RAM, was aimed particularly at data applications. It uses a combination of phase-change and magneto-optical technologies to produce a long-life medium with the ruggedness further enhanced by putting each disc in its own cartridge/carrier, much like a floppy disk shell. As a result, the DVD-RAM system produces discs projected not only to be reliable data archives for more than 30 years, but also the medium itself should endure more than 100,000 write/rewrite cycles.

When DVD-RAM drives first appeared in June, 1998 each disc packed only 2.6GB per side. Two-sided discs doubled that capacity but added the need to flip the cartridge over to access the second side. By October 1999, the specification had been extended to a capacity of 4.7GB per disc side with the first drives arriving in June 2000. The revised specification also included cartridges using discs 80 millimeters in diameter, aimed particularly at high-end digital video camcorders.

The DVD-RAM system uses a wobbled groove to generate the clock used for synchronizing data writing with the spin of the disc. The wobble, a periodic side-to-side twist of the spiral track, is pressed into the blank disc along with fixed sector headers during manufacture. Initially all DVD-RAM discs were encased in cartridges, but the latest design makes the disc removable from the cartridge so you can use it in other formats of DVD drive. Drives can write only on discs encased in their cartridges. Most sources list the DVD-RAM system as incompatible with most other drive formats. DVD-RAM drives write only DVD-RAM discs, and reading the discs in other kinds of drives is chancy. DVD-RAM drives, on the other hand, readily read all other DVD formats.

DVD-RAM drives have built-in defect management, making them the best choice for computer data. In professional camcorders, DVD-RAM has proved impressive, and the defect-management system built in to the drives makes them a good choice for random-access use, their original design intent. The chief handicap of the DVD-RAM system is its inability to make discs that are playable on other kinds of DVD drives.

The DVD-RAM specification is maintained by the DVD Forum, and the standard is published by ECMA as ECMA-272 and ECMA-273.

DVD-RW

Developed originally as a companion to and offshoot of the DVD-R(A) format, DVD-RW is the DVD Forum’s choice for a sequential read/write DVD medium. It uses about the same track pitch, data length, and speed control (constant linear velocity) as both DVD-R formats and differs chiefly in medium. DVD-RW uses a phase-change medium, which has somewhat less reflectivity than do the write-once dyes, 18 to 30 percent for DVD-RW, compared to 45 to 80 percent for single-layer DVD-ROM. As a consequence, DVD-RW’s initial slow start was further impeded by incompatibilities. Ordinary DVD drives had difficulty reading DVD-RW discs, often mistaking the lower reflectivity as two-layer media in that the disc’s 18-to-30-percent reflectivity is the same as that of two-layer DVD-ROMs.

Blank DVD-RW discs actually have two kinds of data prewritten to them. To synchronize the spinning disc with data being written, the disc has address information written on the land area between the grooves of the spiral. In addition, each disc has a prewritten lead-in track that’s used by copy-protection systems to prevent the pirating of movies. This lead-in data takes three forms:

* Version 1.0 discs have it physically embossed on the disc during manufacturing

* Version 1.1 discs (the most common) have the data written normally (that is, by a special DVD-RW drive) on the lead-in

* Variation “B” of Version 1.1 discs also have a unique 64-bit disc identification barcode etched near the hub (in the burst cutting area) that’s required by some serial copy management systems.

The first DVD-RW systems were designed specifically for recording video. They operated as sequential media and supported only disc-at-once writing. Although editing was possible, it was cumbersome because the entire disc required rewriting for a single simple change. Initial drives operated only in real time—that is, 1x speed—although faster drives are now available. Discs must be formatted before use, although preformatted discs and a quick-format process help minimize the pain.

The expected lifetime of a DVD-RW disc is about 1000 write/rewrite cycles. DVD-RW is sanctioned by the DVD Forum and is part of the DVD-Multi specification.

DVD+RW

From the start, DVD+RW was designed to be a random-access data medium. At the same time, the system was designed to be capable of producing discs compatible with most DVD players. The DVD+RW format is compatible with standard DVDs, and the same 650-nanometer laser reads and writes the medium. The only significant difference is the medium itself, a phase-change compound with somewhat lower reflectivity than standard DVD discs, comparable to that of DVD-RW. As a result, some older DVD players may mistake DVD+RW media for two-layer discs.

Although DVD+RW discs are compatible during reading, the system incorporates a number of enhancements to make DVD+RW useful in data storage. The standard allows drives to use constant linear velocity recording (as with DVD-RW) as well as constant angular velocity recording (constant spin rate) for faster random access. Discs made with either spin-control method are playable on standard DVD players (which use CLV).

For synchronizing disc spin and writing speed, DVD+RW uses wobble tracks—a periodic radial shift to the spiral groove. The wobble produces a frequency of 817KHz during 1x recording, correspondingly higher at faster write speeds. The wobble clock provides four addresses for each 32KB block of data on the disc, allowing the drive to accurately locate any 2KB data cluster. This addressability allows for lossless linking, a term used by the DVD+RW promoters to describe the ability of a DVD+RW drive to resume writing within one micron of the place it left off whenever it is interrupted for whatever reason.

This ability to locate accurately any 2KB block of data makes the DVD+RW system truly random access. It can change any data cluster independently of the others without the need to rewrite the entire disc. This ability fits with the Mount Rainier drag-and-drop writing process, so making Mount Rainier DVD+RW drives requires little more than new firmware and certification.

Initially DVD+RW allowed for only one kind of disc, a 12-centimeter disc holding 4.7GB. The same disc can be used both in computer drives for storing data and in dedicated DVD recorders for motion pictures. In August, 2002, the DVD+RW alliance approved 8-centimeter discs holding 1.46GB for applications such as digital camcorders.

DVD+RW discs require formatting before use, but the DVD+RW system supports automatic background formatting. As soon as you insert a new disc into a drive, it starts formatting the lead-in. This way, the drive is immediately ready to use the disc. If you interrupt the formatting process (for example, by removing a partially formatted disc), the drive will resume formatting the disc the next time you insert it. DVD+RW drives support automatic defect management, hiding bad storage areas from your computer and operating system.

The DVD+RW system allows for standalone DVD video recorders. In such applications, it supports four writing modes or quality levels, differing chiefly by bit-rate and playing time. Table 18.6 summarizes these speeds.

computer

Initial DVD+RW drives for computers operated at up to 2.4x normal DVD speed and allowed writing at their highest speeds. In August 2002, the DVD+RW Alliance announced the approval of 4x drives.

Although not supported by the DVD Forum, the DVD+RW format is standardized at ECMA-247.

Blu-ray

In February 2002, a consortium of nine electronics firms (none American—the list includes Hitachi, LG Electronics, Matsushita, Philips Electronics, Pioneer, Samsung, Sharp, Sony, and Thomson Multimedia) announced it had agreed on the specifications for the successor to the DVD. Called the Blu-ray Disc, the innovation resembles nothing more than a DVD—it’s the same size and color and uses the same basic technology. The disc spins in a drive and a laser reads tiny digital spots to play back movies or music. The difference is capacity. The initial Blu-ray discs will be able to store up to 27GB of data, about 5.75 times more than today’s DVDs. Moreover, plans include more than doubling that capacity with two-layer discs (a technology already used by DVDs). The specification also allows for discs holding 25 or 23.3GB with relaxed pit-length requirements.

Although initial products will likely only play commercially recorded material, Blu-ray technology allows for erasing and rewriting discs, much as computers already do with CDs. Existing DVD drives will not be able to play Blu-ray media, although Blu-ray drives should be backward compatible with current formats.

The Blu-ray name explains the secret to the new technology. The laser that reads the disc uses shorter wavelengths (at 405 nanometers, it’s closer to violet than blue) that can pick out digital dots that are closer together than can the yellowish laser used by DVDs or the red laser used by CDs. The tracking pitch—the distance between adjacent grooves in the single-track spiral—is only 0.32 micrometers, and the shortest data pits are only 0.138 micrometers long.

All Blu-ray discs use a phase-change medium coated with a 0.1 millimeter optical transmittance protection layer. To further “ruggedize” the discs, they are housed in a tough plastic cartridge that measures 5.1 by 5.2 inches and about one-quarter-inch thick. (Exact dimensions: 129 by 131 by 7 millimeters.)

Blu-ray is specifically aimed at putting high-definition television onto DVD-style discs. The system encodes video into MPEG-2 data streams and writes data at 36Mbps. A single disc can hold over two hours of HDTV or 13 hours of VHS-quality video at a 3.8Mbps rate.

As of this writing, Blu-ray is not yet an official standard. The optical community is currently exploring an alternate blue-laser system that uses a 0.8-millimeter protective layer.

Optical Storage Standards

Because both the Compact Disc and Digital Versatile Disc were conceived as distribution media for software—in this case, software meaning audio for the CD and video for the DVD—standardization has been of the utmost importance. Without hard and fast standards, you cannot be sure that the disc you buy will play back in your drive. Consequently, every format of disc has an official standard that guides both drive- and disc-makers so their products can be compatible.

The Sony-Philips standards are published in books that are commonly referred to by the colors of their covers. This small rainbow covers all currently recognized CD standards and was enlarged to embrace the new Super Audio CD. The DVD standards, promulgated by the DVD Forum and published by Toshiba, wear more prosaic identifying names based on a simple letter designation. The five standards recognized at the time of this writing include those for audio, video, read-only data, write-once data, and read/write data. Table 18.4 summarizes these standards.

computer

The primary DVD standard is maintained by Toshiba Corporation. It is freely available but hardly free. Anyone can obtain a copy from the DVD Forum at www.dvdforum.org after paying a $5,000 fee and signing a nondisclosure agreement.

Each of the most widely used of the CD and DVD standards is separately discussed in the following sections.

Note that the original format for CDs was audio. The data format, CD-ROM, was separately developed around the audio parameters. In DVD, the original format was DVD-ROM, with the first application, DVD-Video, being a subset of the DVD-ROM format.

CD-DA

CD-DA, which stands for Compact Disc, Digital Audio, is standardized in the Red Book. It was the original Compact Disc application, storing audio information in digital form. The name Red Book refers to the international standard (ISO 10149), which was published as a book with a red cover and specifies the digitization and sampling rate details, including the data-transfer rate and the exact type of pulse code modulation used.

Under the standard, a CD-DA disc holds up to 74 minutes of stereo music with a range equivalent to today’s FM radio station—the high end goes just beyond 15KHz (depending on the filtering in the playback device); at the low frequency end, nearly to DC, zero hertz. The system stores audio data with a resolution of 16 bits, so each analog audio level is quantified as one of 65,536 levels. With linear encoding, that’s sufficient for a dynamic range of 96 decibels. To accommodate an upper frequency limit of 15KHz with adequate roll-off for practical antialiasing filters, the system uses a sampling rate of 44.1KHz.

Under the Red Book standard, this digital data is restructured into 24-byte blocks, arranged as six samples, each of a pair of stereophonic channels (each of which has a depth of 16 bits). These 24 bytes are encoded along with control and subchannel information into the 588 optical bits of a small frame, each of which stores about 136 microseconds of music. Ninety-eight of these small frames are grouped together in a large frame, and 75 large frames make one second of recorded sound.

In CD-DA systems, the large frame lacks the sync field, header, and error-correction code used in CD-ROM storage, discussed later. Instead, the error-correction and control information is encoded in the small frames. The necessary information to identify each large frame is spread through all 98 bits of subchannel Q in a given large frame. One bit of the subchannel Q data is drawn from each small frame.

From the subchannel Q data, a sector is identified by its ordinary playing time location (in minutes, seconds, and frame from the beginning of the disc). The 98 bits of the subchannel Q signal spread across the large frame is structured into nine separate parts: a two-bit synchronization field; a four-bit address field to identify the format of the subchannel Q data; a four-bit control field with more data about the format; an eight-bit track number; an eight-bit index number; a 24-bit address, counting up from the beginning of the track (counting down from the beginning of the track in the pre-gap area); eight reserved bits; a 24-bit absolute address from the start of the disc; and 16 bits of error-correction code. At least nine of ten consecutive large frames must have their subchannel Q signals in this format.

In the remaining large sectors, two more subchannel Q formats are optional. If used, they must occur in at least 1 out of 100 consecutive large frames. One is a disc catalog number that remains unchanged for the duration of the disc; the other is a special recording code that is specific and unchanging to each track.

Super Audio CD

The Scarlet Book covers the Super Audio CD, the DVD/CD hybrid developed jointly by Philips and Sony to compete with DVD-Audio. The format specifications were first released in March 1999.

The standard allows for three forms—a single-layer disc that only supports Super Audio, a disc with two Super Audio layers, and a hybrid disc that mates a Super Audio layer with a conventional CD-A layer for compatibility with old equipment. A hybrid disc works and sounds like a conventional CD in a conventional CD drive but plays back Super Audio in an SA drive.

To store all the data necessary for Super Audio, all Super Audio layers use basic DVD technology. The data on these layers takes the form of Sony’s proprietary Direct Stream Digital (DSD) encoding technology (discussed later). The CD layer uses conventional CD technology (16-bit audio sampled at 44.1KHz).

The DSD encoding system provides frequency response to 100KHz and a dynamic range in excess of 120 dB. Although few people can hear anything beyond 20KHz, the highest quality analog master tapes recorded at a speed of 30 inches per second often have information out to 50KHz. The high-frequency range of DSD will finally put to rest complaints that digital doesn’t sound as good as analog.

The DSD system uses one-bit sampling at a 2.8224MHz rate, the same as used in a high-quality pulse-code modulation (PCM) encoding system that uses 64x oversampling. Instead of converting the resulting code to PCM, the DSD system records the one-bit sample values. Delta sigma modulation determines the one-bit value for each sample—that is, the sample represents the sum (sigma) of the changes (delta) of the signal. The system maintains a running total of the bits representing the strength of the analog waveform. At each sampling interval, it compares the present value with the previous value. If the new value is higher than the previous value, the system adds a logical “1″ to the code stream. If the current value is lower than the previous value, the system adds a logical “0″ to the code stream. If a value does not change, it is nevertheless evaluated and will produce an alternating pattern of 1’s and 0’s that correct one another.

The overall result is that a rising (positive) waveform will be a dense string of 1’s, and a full falling (negative) waveform will be a dense string of 0’s. Consequently, this form of modulation is often termed Pulse Density Modulation (PDM). As with all digital signals, the PDM output is resistant to noise and distortion—and alteration to the signal smaller than an entire pulse will be ignored in processing and excluded from the reconstructed signal. Unlike coded digital signals, however, PDM signals (and the signals of a similar digital modulation system, called Pulse Width Modulation) are closely allied to their analog equivalent. The pulses in the signal mimic the analog signal in strength and frequency. In fact, a simple low-pass filter can convert the digital signals into analog form.

In the case of Sony’s DSD, the simple analog conversion isn’t very good. Digital artifacts make the simple conversion noisy. The Sony system uses high-order filtering to move the noise out of the audio band.

The CD-compatible layer of a Super Audio CD is created during mastering through a process Sony calls super bit mapping direct downstream conversion. It is essentially the same process used in mastering ordinary audio CDs from 64x oversampled masters.

Although the standard Super Audio CD format uses two audio channels of DSD signals, the specification allows for up to six such channels for future applications. In addition, storage space on the outside of the audio signal area is reserved for text, graphics, or videos—for example, to accompany the audio presentation.

The Super Audio CD also includes provisions for watermarking (invisibly indicating the origin of the media) discs through coding embedded in the wobble of the track. This feature can be used for tracking the origins of a particular disc (for example, for controlling disc piracy) or in copy-protection schemes.

According to Sony, a hybrid Super Audio CD will play in any drive—CD, DVD, or SA-CD. In a CD drive, it will deliver better than CD quality thanks to the super bit mapping downstream conversion. Current DVD drives will also play the discs with CD quality. The true beauty of the disc will come out only on special SA-CD players or a future generation of DVD drives that have the proper playback algorithms.

CD-ROM

The Yellow Book, first introduced in 1984, describes the data format standards for CD-ROM discs and includes CD-XA, which adds compressed audio information to other CD-ROM data. The Yellow Book divides CD-ROM operation into two modes. Mode 1 is meant for ordinary computer data. Mode 2 handles compressed audio and video data. Because Yellow Book discs can contain audio, video, and data in their two modes, they are often termed mixed mode discs. Yellow Book is the standard that first enabled multimedia CDs. It is now an internationally recognized standard as ISO 10149:1989 (E).

As the full name implies, Compact Disc Read-Only Memory is fundamentally an adaptation of the Compact Disc for storing digital information—Rock and Roll comes to computer storage. Contrary to the implications of the name, however, you can write to CD-ROM discs with your computer, providing you buy the right (which means expensive) equipment. For most applications, however, the CD-ROM is true to its designation—it delivers data from elsewhere into your computer. Once a CD-ROM disc is pressed, the data it holds cannot be altered. Its pits are present for eternity.

In the beginning, CD-ROM was an entity into itself, a storage medium that mimicked other mass storage devices. It used its own storage format. The kind of data that the CD-ROM lent itself to was unlike that of other storage systems, however. The CD-ROM supplied an excellent means for distributing sounds and images for multimedia systems, consequently engineers adapted its storage format to better suit a mixture of data types. The original CD-ROM format was extended to cover these additional kinds of data with its Extended Architecture. The result was the Yellow Book standard.

Logical Format

As with other disc media, the CD’s capacity is divided into short segments called sectors. In the CD-ROM realm, however, these sectors are also called large frames and are the basic unit of addressing. Because of the long spiral track, the number of sectors or large frames per track is meaningless—it’s simply the total number of sectors on the drive. The number varies but can reach about 315,000 (for example, for 74 minutes of music) or about 340,000 for newer, 80-minute discs.

Large frames define the physical format of a Compact Disc and are defined by the CD-ROM media standards to contain 2352 bytes. (Other configurations can put 2048, 2052, 2056, 2324, 2332, 2340, or 2352 bytes in a large frame.) The CD-ROM media standards allow for several data formats within each large frame, dependent on the application for which the CD-ROM is meant. In simple data-storage applications, Data Mode 1, 2048 bytes in a 2352-byte large frame actually store data. The remaining 304 bytes are divided among a synchronization field (12 bytes), a sector address tag field (4 bytes), and an auxiliary field (288 bytes). In Data Mode 2, which was designed for less critical applications not requiring heavy-duty error correction, some of the bytes in the auxiliary field may also be used for data storage, providing 2336 bytes of useful storage in each large frame. Other storage systems allocate storage bytes differently but in the same large-frame structure.

The four bytes of the sector address tag field identify each large frame unambiguously. The identification method hints at the musical origins of the CD-ROM system—each large frame bears an identification by minute, second, and frame, which corresponds to the playing time of a musical disc. One byte each is provided for storing the minute count, second count, and frame count in binary coded decimal (BCD) form. BCD storage allows up to 100 values per byte, more than enough to encode 75 frames per second, 60 seconds per minute, and the 74 minute maximum playing time of a Compact Disc (as audio storage). The fourth byte is a flag that indicates the data storage mode of the frame.

In Data Mode 1, the auxiliary field is used for error detection and correction. The first four bytes of the field store a primary error-detection code and are followed by eight bytes of zeros. The last 276 hold a layered error-correction code. This layered code is sufficient for detecting and repairing multiple-bit errors in the data field.

Extended architecture rearranges the byte assignment of these data modes to suit multisession applications. In XA Mode 2 Form 1, the 12 bytes of sync and four of header are followed by an eight-byte subheader that helps identify the contents of the data bytes, 2048 of which follow. The frame ends with an auxiliary field storing four bytes of error-detection code and 276 bytes of error-correction code. In XA Mode 2 Form 2, the auxiliary field shrinks to four bytes; the leftover bytes extending the data contents to 2324 bytes.

Data Coding

The bytes of the large frame do not directly correspond to the bit-pattern of pits that are blasted into the surface of the CD-ROM. Much as hard discs use different forms of modulation to optimize both the capacity and integrity of their storage, the Compact Disc uses a special data-to-optical translation code. Circuitry inside the Compact Disc system converts the data stream of a large frame into a bit-pattern made from 98 small frames.

Each small frame stores 24 bytes of data (thus 98 of them equal a 2352-byte large frame) but consists of 588 optical bits. Besides the main data channel, each small frame includes an invisible data byte called the subchannel and its own error-correction code. Each byte of this information is translated into 14 bits of optical code. To these 14 bits, the signal-processing circuitry adds three merging bits, the values of which are chosen to minimize the low-frequency content of the signal and optimize the performance of the phase-lock loop circuit used in recovering data from the disc.

The optical bits of a small frame are functionally divided into four sections. The first 27 bits comprise a synchronization pattern. They are followed by the byte of subchannel data, which is translated into 17 bits (14-bit data code plus three merging bits). Next comes the 24 data bytes (translated in 408 bits), followed by eight bytes of error-correction code (translated into 136 bits).

The subchannel byte actually encodes eight separate subchannels, designated with letters P through W. Each bit has its own function. For example, the P subchannel is a flag used to control audio muting. The Q subchannel is used to identify large frames in audio recording.

As with a hard disk, this deep structure is hidden from your normal application software. The only concern of your application is to determine how the 2048 (or so) bytes of active storage in each large frame are divided up and used. The CD-ROM drive translates the block requests made by the SCSI interface (or other interface) into the correct values in the synchronization field to find data.

Sessions

A session is a single recorded segment on a CD and may comprise multiple tracks. The session is normally recorded all at once in a single session, hence the name. Under the Orange Book standard, a session can contain data, audio, or images.

On the disc, each session begins with a lead-in, which provides space for a table of contents for the session. The lead-in length is fixed at 4500 sectors, equivalent to one minute of audio or 9MB of data. When you start writing a session, the lead-in is left blank and is filled in only when you close the session.

At the end of the session on the disc is a lead-out, which contains no data but signals to the CD player that it has reached the end of the active data area. The first lead-in on a disc measures 6750 sectors long, the equivalent of 1.5 minutes of audio or 13MB of data. Any subsequent lead-outs on a single disc last for 2250 sectors (half a minute, or about 4MB of data).

Addressing

The basic addressing scheme of the Compact Disc is the track, but CD tracks are not the same as hard disk tracks. Instead of indicating a head position or cylinder, the track on a CD is a logical structure akin to the individual tracks or cuts on a phonograph record.

A single Compact Disc is organized as one of up to 99 tracks. Although a single CD can accommodate a mix of audio, video, and digital data, each track must be purely one of the three. Consequently, a disc mixing audio, video, and data would need to have at least three tracks.

The tracks on a disc are contiguous and sequentially numbered, although the first track containing information may have a value greater than one. Each track consists of at least 300 large frames (that’s four seconds of audio playing time). Part of each track is a transition area called pre-gap and post-gap areas (for data discs) or pause areas (for audio discs).

Each disc has a lead-in area and a lead-out area corresponding to the lead-in and lead-out of phonograph records. The lead-in area is designated track zero, and the lead-out area is track 0AA(hex). Neither is reported as part of the capacity of the disc, although the subchannel of the lead-in contains the table of contents of the disc. The table of contents lists every track and its address (given in the format of minutes, seconds, and frames).

Tracks are subdivided into up to 99 indices by values encoded in the subchannel byte of nine out of ten small frames. An index is a point of reference that’s internal to the track. The number and location of each index is not stored in the table of contents. The pre-gap area is assigned an index value of zero.

Capacity

The nominal maximum capacity of a CD amounts to 74 minutes of music recording time or about 650MB when used for storing data. With 80-minute discs, the data capacity extends to about 700MB. These capacities are only approximate, however. A number of factors control the total capacity of a given disc. For example, mass-produced audio CDs sometimes contain more than 74 minutes of sound because disc-makers can cram more onto each disc by squeezing the track on the glass master disc into a tighter, longer spiral. This technique is the secret to extending the playing time 80-minute discs.

The special CDs that you can write on with your computer cannot benefit from this tighter-track strategy because their spiral is put in place when the discs are manufactured. The standard formats yield four capacity levels on two different sizes of disc, as discussed in the upcoming CD-R section. In any case, these numbers represent the maximum storage capacity of a recordable CD. Nearly anything you do when making a CD cuts into that capacity.

Format

The Yellow Book describes how to put information on a CD-ROM disc. It does not, however, define how to organize that data into files. In the DOS world, two file standards have been popular. The first was called High Sierra format. Later this format was upgraded to the current standard, the ISO 9660 specification.

The only practical difference between these two standards is that the driver software supplied with some CD-ROM players, particularly older ones, meant for use with High Sierra–formatted discs may not recognize ISO 9660 discs. You’re likely to get an error message that says something like “Disc not High Sierra.” The problem is that the old version of the Microsoft CD-ROM extensions—the driver that adapts your CD-ROM player to work with DOS—cannot recognize ISO 9660 discs.

To meld CD-ROM technology with DOS, Microsoft Corporation created a standard bit of operating code to add onto DOS to make the players work. These are called the DOS CD-ROM extensions, and several versions have been written. The CD-ROM extensions before Version 2.0 exhibit the incompatibility problem between High Sierra and ISO 9660, noted earlier. The solution is to buy a software upgrade to the CD-ROM extensions that came with your CD-ROM player from the vendor who sold you the equipment. A better solution is to avoid the problem and ensure any CD-ROM player you purchase comes with Version 2.0 or later of the Microsoft CD-ROM extensions.

ISO 9660 embraces all forms of data you’re likely to use with your computer. Compatible discs can hold files for data as well as audio and video information.

For Windows 95, Microsoft created another set of extensions to ISO 9660. Called the Joliet CD ROM Recording Specification, these extensions add support for longer file names—but to 128 characters instead of the 255-character maximum of Windows 95—as well as nesting of directories beyond eight levels, allowing directory names to use extensions, and broadening the character set. To maintain compatibility with ISO 9660, the extra Joliet data must fit in a 240-character limit, foreclosing on the possibility of encoding all Windows 95 directory data.

CD-Recordable

The Orange Book is the official tome that describes the needs and standards for Compact Disc-Recordable (CD-R) systems. It turns the otherwise read-only medium into a write-once medium so that you can make your own CDs. Introduced in 1992, the Orange Book standard introduced multisession technology. A multisession disc can contain blocks of data written at different times (sessions). Each session has its own lead-in track and table of contents.

Developed jointly by Philips and Sony (sound familiar?), the Orange Book defines both the physical structure of recordable CDs and how various parts of the data area on the disc must be used. These include the program area, which holds the actual data the disc is meant to store; the program memory area, which records the track information for the whole disc and all the sessions it contains; the lead-in and lead-out areas; and a power calibration area that’s used to calibrate the power of the record laser.

The nature of the CD-ROM medium and the operation of CD recorders make the creation and writing of a CD-ROM a more complex operation than simply copying files to a hard disk drive. Because CD-ROMs are essentially sequentially recorded media, the CD recorder wants to receive data and write it to disc as a continuous stream. In most CD recorders, the stream of data cannot be interrupted once it starts. An interruption in the data flow can result in an error in recording. Moreover, to obtain the highest capacity possible from a given CD, you want to limit the number of sessions into which you divide the disc. As noted earlier, each session steals at least 13MB from disc capacity for the overhead of the session’s lead-in and lead-out.

If your system cannot supply information to your CD recorder fast enough, the result is a buffer underrun error. When you see such an error message on your screen, it means your CD recorder has exhausted the software buffer and run out of data to write to the disc. You can prevent this error by increasing the size of the buffer if your software allows it. Or you can better prepare your files for transfer to CD. In particular, build a CD image on a hard disk that can be copied on the fly to the CD.

The best strategy is to give over your computer to the CD-writing process, unloading any TSR programs, background processes, or additional tasks in a multitasking system. Screensavers, pop-up reminders, and in-coming communications (your modem answering the phone for data or a fax) can interrupt your CD session and cause you to waste your time, a session, or an entire disc.

Your system needs to be able to find the files it needs to copy to your CD-ROM as efficiently as possible. Copying multiple short files can be a challenge, particularly if your hard disk is older and slower or fragmented. CD recorder–makers recommend discs with access times faster than about 19 milliseconds. An AV-style hard disk is preferable because such drives are designed for the smooth, continuous transfer of data and don’t interrupt the flow with housekeeping functions, such a thermal calibration. You’ll also want to be sure your files are not fragmented before transferring them to CD. Run your defrag utility before writing to your CD.

Depending on the manufacturer of your CD recorder and the software accompanying it, you may have a choice of more than one mode for copying data to CD. In general, you have two choices: building a CD image on your hard disk and copying that image intact to your CD. Some manufacturers call this process “writing on the fly.” From a hardware standpoint, this is the easiest for your system and CD recorder to cope with because the disc image is already in the form of a single huge file with all the directory structures needed for the final CD in their proper places. Your system needs to only ready your hard disk and send a steady stream of data to the CD recorder.

The alternative method is to create the CD structure in its final form on the CD itself. Some manufacturers call this “writing a virtual image.” In making a CD by this method, your CD recorder’s software must follow a script or database to find which files it should include on the disc and locate the files on your hard disk. The program must allocate the space on your CD, dividing it into sectors and tracks, while at the same time reading the hard disk and transferring the data to the CD.

Capacity Issues

With a read-only medium, you normally don’t have to concern yourself with the issue of storage capacity. That’s for the disc-maker to worry about—the publisher has to be sure everything fits. With about 650 megabytes of room on the typical CD and many products requiring only a few megabytes for code, the big problem for publishers is finding enough stuff to put on the disc so that you think you’re getting your money’s worth.

The advent of recordable CDs changes things entirely. With CDs offering convenient long-term storage for important files such as graphic archives, you’ll be sorely tempted to fill your CDs to the brim. You’ll need to plan ahead to make all your files fit.

CD-ROMs have substantial overhead that cuts into their available capacity. If you don’t plan for this overhead, you may be surprised when your files don’t fit.

Raw Capacity

CD-ROM capacities are measured in minutes, seconds, and sectors, based on the audio format from which engineers derived the medium. Recordable CDs come in five capacities: 18- and 21-minute discs are 80 millimeters in diameter; 63-, 74-, and 80-minute discs are 120 millimeters in diameter.

Two kinds of file overhead affect the number of bytes available on a given recordable CD, which can actually be used for storage. One is familiar from other mass storage devices, resulting from the need to allocate data in fixed-size blocks. The other results from the format structure required by the CD standards.

Logical Block Padding

As with most hard and floppy discs, CD-ROMs allocate their storage in increments called logical blocks. Although logical block sizes of 512, 1024, and 2048 bytes are possible with today’s CD drives, only the 2048-byte logical block format is in wide use. If a file is smaller than a logical block, it is padded out to fill a logical block. If a file is larger than one logical block, it fills all its logical blocks except the last, which is then padded out to be completely filled. As a result of this allocation method, all files except those that are an exact multiple of the logical block size require more disc space than their actual size. In addition, all directories on a CD require at least one logical block of storage.

Format Overhead

In addition to the block-based overhead shared with most mass storage devices, CD-ROMs have their own format overhead that is unique to the CD system. These are remnants of the audio origins of the CD medium.

Because audio CDs require lead-in and lead-out tracks, the Yellow Book standard for CD-ROM makes a similar allowance. The specifications require that data on a CD-ROM begin after a two-second pause, followed by a lead-in track 6500-sectors long. Consequently, the first two seconds of storage space and the lead-in area on a CD are not usable for data. These two seconds comprise a total of 150 sectors, each holding 2048 bytes, which trims the capacity of the disc by 307,200 bytes. The 6500-sector lead-in consumes another 13,312,000 bytes. The lead-out gap at the end of a storage session and the pre-gap that allows for a subsequent session consume another 4650 sectors or 9,523,200 bytes.

The ISO 9660 file structure also eats away at the total disc capacity. The standard reserved the first 16 sectors of the data area—that’s 32,768 bytes—for system use. Various elements of the disc format also swallow up space. The root file, primary volume descriptor, and volume descriptor set terminator each require a minimum of one sector. The path tables require at least two sectors. The required elements consequently take another five sectors or 10,120 bytes of space. Discs with complex file structures may exceed these minima and lose further storage space.

The more sessions you divide a given CD into, the less space that will be available for your data. Each session on a multisession CD requires its own lead-in. Consequently, each session requires at least 13MB of space in addition to the file structure overhead.

Operation

Creating a CD is a complete process. The drive doesn’t just copy down data blocks as your computer pushes them out. Every disc, even every session, requires its own control areas to be written to the disc. Your CD-R drive doesn’t know enough to handle these processes automatically because the disc data structure depends on your data and your intentions. Your CD-R drive cannot fathom either of these. The job falls to the software you use to create your CD-R discs.

Your CD-creation software organizes the data for your disc. As it sends the information to your CD-R drive, it also adds the control information required for making the proper disc format. After you’ve completed writing to your disc, the software fixates the disc so that it can be played. The last job is left to you—labeling the disc so you can identify the one you need from a stack more chaotic than the pot of an all-night poker game.

Speed

As with ordinary CD-ROM, the speed of CD-R drives is the transfer rate of the drive measured in multiples of the basic audio CD speed, 150KBps. The very first CD recorders operated at 1x speed, and each new generation has doubled that speed. The fastest drives currently operate at 4x, although technical innovation can increase that just as it has improved basic CD speed.

Most CD recorders have two speed ratings—one for writing and one for reading. The writing speed is invariably the same or less than the reading speed. Advertisements usually describe drives using two numbers, the writing speed (lower number) first. The most common speed combinations are 1×1, single-speed read and write; 1×2, single-speed write and double-speed read; 2×2 double-speed writing and reading; 2×4 double-speed writing and quadruple-speed reading; and 4×4 quadruple-speed in both writing and reading.

How fast a CD recorder writes is only one factor in determining how long making one or more CDs will take. Other variables include your system, writing mode (whether you try to put files together for a CD session on the fly or try to write a disc image as one interrupted file), and the number of drives.

Your system and writing mode go hand in hand. As noted later in this section, a CD recorder requires a constant, uninterrupted stream of data to make a disc. The speed at which your computer can maintain that data flow can constrain the maximum writing speed of a CD-R drive. Factors that determine the rate of data flow include the speed of the source of the data (your hard disk), the fragmentation of the data, and the interfaces between the source disc and your CD recorder.

Most CD recorders have built-in buffers to bridge across temporary slowdowns in the data supply, such as may be involved when your hard disk’s read/write head repeatedly moves from track to track to gather a highly fragmented file or when an older, non-A/V drive performs a thermal calibration. Even with this bridge action, however, such hard disk slowdowns reduce the net flow of data to the CD recorder. If you try to create a CD by gathering together hundreds of short hard disk files on the fly, your hard disk may not be able to keep up with the data needs of a 4x CD recorder. In fact, if the files are many and small, the hard disk may not even be able to maintain 1x speed, forcing you to resort to making an image file before writing to the disc.

On the other hand, one manufacturer (Mitsumi) reports that higher writing speeds produce more reliable CDs. At the 1x writing speed, the laser remains focused on a given disc area longer, possibly overheating it. In other words, you may want to avoid 1x speed unless the performance of your system and its software requires it. Although early software, drives, and computers often could not keep up with speeds in excess of 1x, most current products do not have difficulties at higher speeds.

When you have to produce a large number of CDs quickly, one of the best strategies is to use multiple drives. Five drives writing simultaneously cuts the net creation time of an individual CD by 80 percent. For moderate-volume applications, stacks of CD writers can make a lot of sense—and CDs. For large-volume applications (generally more than a few hundred), pressing CDs is the most cost-effective means of duplication, albeit one that requires waiting a few days for mastering and pressing.

Disc-Writing Modes

Depending on your CD-R drive and your CD-creation software, you may have your choice of the mode you use for writing to your CD. The mode determines what you can write to your discs and when. Typically you don’t have to worry about the writing mode because your software takes care of the details automatically. However, some drives and software may be limited to the modes under which they can operate.

The basic CD-writing modes are four: track-at-once, multisession, disc-at-once, and incremental writing. Each has its own requirements, limitations, and applications. A new standard, Mount Rainier, discussed separately, ensures compatible on incrementally written discs.

Track-at-Once

The most basic writing method for CDs is the creation of a single track. A track can be in any format that your CD-R drive can write (for example, a CD-ROM compatible disc or a CD-DA disc for your stereo system). The track-at-once process writes an entire track in a single operation. A track must be larger than 300 blocks and smaller than the total capacity of the disc minus its overhead.

Writing track-at-once requires only that you designate what files you want to put on a CD. Your CD-creation software takes over and handles the entire writing process.

Originally the big limitation of track-at-once writing was that you could write only one track on a disc in a single session. Consequently, unless you had a lot to write to your disc already prepared beforehand, this process was wasteful of disc space. Some modern CD systems can add one track at a time to a disc within a single session, even allowing you to remove the disc from the drive and try it in another in the middle of the process.

Each track has overhead totaling 150 blocks for run-in, run-out, pre-gap and linking. CD standards allow 99 tracks per disc. Consequently, if your tracks are small, you may waste substantial capacity. Writing the maximum number of blocks of minimal size (300 blocks plus 150 blocks of overhead each) will only about half-fill the smallest, 18-minute CD disc (44,550 blocks on a 81,000 block disc).

Track Multisession

Sometimes called track incremental mode, track multisession mode is the most common means of allowing you to take advantage of the full capacity of CDs. Track multisession writing allows you to add to CDs as you have the need for it by dividing the capacity of the disc into multiple sessions, up to about 50 of them. Each session has many of the characteristics of a complete CD, including its own lead-in and lead-out areas as well as a table of contents.

In fact, the need for these special formatting areas for each session is what limits the number of sessions on the disc. The lead-in and lead-out areas together require about 13.5MB of disc space. Consequently, CDs with a total capacity of 680MB can hold no more than about 50 sessions.

When the CD standards were first created, engineers didn’t even consider the possibility that individual consumers would ever be able to write their own discs. Consequently, they assumed that all discs would be factory mastered in a single session. They designed early CD drives to recognize only one session on a disc. Many older CD-ROM drives (particularly those with 1x and 2x speed ratings) were single-session models and cannot handle multisession discs written in track multisession mode. Single-session drives generally read only the first session on a disc and ignore the rest.

Another problem that may arise with multisession discs is the mixing of formats. Many CD players are incapable of handling discs on which CD-ROM Mode 1 or 2 sessions are mixed with XA sessions. The dangerous aspect of this problem is that some CD-mastering software (and CD drives) allow you to freely mix formats in different sessions. You may create a disc that works when you read it on your CD drive that cannot function in other CD drives. The moral is not to mix formats on a disc. (Don’t confuse format with data type. You can freely mix audio, video, and pure data as long as they are written in the same format, providing the one you choose is compatible with all three data types.)

Most modern CD-R machines allow you to write more than one track in a given session. The advantage of this technique is the elimination of most of the 13.5MB session overhead. Instead of lead-in and lead-out tracks, each pair of tracks is separated by 150 blocks (two seconds) of pre-gap—overhead of only about 300KB. The entire session must, of course, be framed by its own lead-in, table of contents, and lead-out areas.

In multisession discs, the drive writes to the lead-in area after it finishes with the data on the disc. The lead-in contains the table of contents for the session as well as an indication of the remaining writable area on the disc. The lead-in of the last session on the disc indicates that no more sessions are present, closing the disc.

Disc-at-Once

Old-fashioned vinyl phonograph records were cut as a single, continuous process. From the moment the cutting stylus plunked down on the master disc until it finished the disc, spinning around in the capture track, the mastering process had to be free of interruptions. After all, any gap in the spiral track of the phonograph record would stall your record player. To cut a master record, the engineers prepared a master tape that was complete in every detail of everything that was to go on the final disc, including blank tape for the gaps between cuts on the final disc.

The CD equivalent to making such a master disc is the disc-at-once process. As with cutting a master record, the disc-at-once process must be completely free from interruption from the beginning of the lead-in area to the completion of the lead-out area. The table of contents, all tracks, and the Q channel must all be prepared before the writing process begins. The entire disc will be written in one swoop so that the formatting data will appear on the disc (for example, the lead-in will be written before the data). Typically, to make a CD using disc-at-once writing, you’ll prepare an exact image of the CD and store it on a hard disc. The hard disc must be A/V rated so that it does not interrupt the data stream for thermal calibration or other housekeeping and thus cause buffer underrun (see the section titled “Underrun,” later in the chapter).

In effect, disc-at-once is a combination of track-at-once and multisession writing that simply extends across the entire CD (or as much of it as will ever be used).

Disc-at-once is the recording method that must be used when you prepare a disc to serve as the master for making mass-produced CDs. Because the laser never turns off, a disc recorded using the disc-at-once mode contains no link blocks.

Packet Writing

If you could make a CD-R work like a conventional hard disc, it would be capable of incremental writing. That is, you could add data to your disc whenever you needed to simply by saving a file. In CD terminology, this is called packet writing. With appropriate software drivers, you can drag and drop files to your CD recorder as if it were a hard disk drive.

In this context, a packet is a block of data smaller than a track. Your drive accepts the packet and writes it to the disc, identifying it with four blocks of run-in information, two of run-out information, and a link block. Each packet thus suffers seven blocks or about 15KB of overhead in addition to that required for directory information.

The ISO 9660 file system comes up short in packet writing. It requires that all the file information be written in the table of contents when you create a session. Multisession discs sidestep this problem by creating a new file system every time you write a new session, with all the overhead of a complete file system (whoops, there goes another 13.5MB). Packet writing therefore requires drives and software that follow the Universal Data Format (UDF) system, discussed under “DVD-ROM,” later in the chapter.

Mount Rainier

Whereas packet writing requires software added as an application on top of an operating system, the Mount Rainier standard incorporates the same functionality (and more) within the operating system. Jointly developed by Compaq (now Hewlett-Packard), Microsoft, Philips Electronics, and Sony, the Mount Rainier specification obsoletes packet writing with a similar drag-and-drop interface to allow random writing to CD and DVD drives. In addition, the specification requires that drives be able to access data in 2KB allocation units, like those used on magnetic disks.

One of the most important parts of the Mount Rainier specification is shifting responsibility for managing disc defects from the packet-writing software to the disc drive itself. The drive maintains a map of bad sections of the disc in a special table carved from the user data area of the disc. Using the table, the drive can skip over bad areas of the disc when writing data without any intervention from the operating system—without the operating system even knowing the bad areas exist.

This feature alone requires new drive designs. Conventional CD and DVD drives cannot be upgraded to Mount Rainier technology. On the other hand, conventional media work with Mount Rainier drives, and Mount Rainier drives can read discs written under earlier standards.

Mount Rainier eliminates much of the hassle of formatting CDs by moving the process to the background. Although you can use preformatted discs with a Mount Rainier drive, using unformatted discs imposes no penalty. Slide a new disc in the drive, and the drive automatically starts formatting it even as you write data.

Discs created using Mount Rainier technology cannot be read by conventional drives without special software drivers. Make a Mount Rainier disc in one computer, and you won’t be able to read it on another machine that does not have a driver that supports the technology. You can enable an older system to read (but not write) Mount Rainier discs by installing new driver software (when it becomes available).

The common name for Mount Rainier is EasyWrite technology. The promoters of the new format have developed a certification program and a logo that lets you quickly identify drives that correctly implement the technology.

The Mount Rainier specification was first published on July 30, 2002. The Web site www.mt-rainier.org provides access to the full specification.

Underrun

No matter the mode, the CD-writing process is continuous, start to finish. The laser switches on at the beginning of a session and remains in continuous operation until that session is finished. The CD format requires the interleaving of data between blocks during the writing process to help ensure data integrity. To properly sort the interleaved data, the drive needs an overview of the data. To gain this overview, the drive has a data buffer from which it draws the data to write.

For the laser in a CD-R drive to operate continuously, it must have a continuous supply of data to keep its buffer filled with enough information to properly perform the interleaving. If at any time it runs out of data to write, the writing process is interrupted. Unlike hard disks, the CD drive can’t pick up where it left off on the next spin of the disc. The error resulting from the interruption of the data flow is termed buffer underrun.

CD players see the interrupted session as an error (which it is) that may render the disc unplayable. In other words, buffer underrun ruins a disc. Better CD-R drives allow you to close the interrupted session and recover the remaining space on the disc for other sessions.

Testing

To prevent you from wasting discs with inadvertent data underruns, most CD-R mastering software makes a trial run or test of the recording session before actually committing your data to disc. The test involves performing exactly the same steps as the actual write operation—including operating the laser in the drive in its write mode—but keeps the power of the laser at read level. The CD-R drive runs through the entire write operation, but the lower power of the laser prevents it from affecting (and potentially ruining) a disc.

If the recording software discovers a problem during recording that would cause an underrun or other problem, it will advise you how to sidestep the problem, typically by stepping down to a lower writing speed on your CD-R drive or, as a last resort, defragmenting your hard disk.

The only problem with pre-write testing is that the trial run takes as long as writing everything to your disc, essentially doubling the write time of every disc you make. Most CD-mastering programs allow you to switch off this pre-write testing. Although you do this at your own peril (and the expense of ruined CDs), if you’re making a batch of discs it is a viable timesaving option. In general, if you can write the first disc successfully, you can run through dozens of additional copies without worry.

Fixation

Before a CD that you write can be read by a CD-ROM drive or the audio CD player in your stereo system, it must have an overall table of contents that follows the ISO 9660 standard. The process of finishing the disc for reading is termed fixation. In the process of fixation, the disc is finalized when your CD-R drive writes an overall absolute lead-in area and absolute lead-out area for the entire disc.

Multisession drives also can create discs that are fixated for appending. The individual sessions each have their own table of contents that reflects the sessions actually written on the disc, but the disc lacks the overall lead-in and lead-out areas. When you’ve added the last session to the disc, the finalization process writes an indication on the disc that no further sessions are present, then writes the overall disc lead-in and lead-out areas, completing a table of contents compatible with the ISO 9660 standard. Most CD-mastering programs refer to this finalization process as closing the disc.

Software that performs packet writing—for example, Sony’s Compact Disc Recordable File System (CDRFS)—may require a process termed freezing the disc before you can use packet-written discs in ordinary CD players. The freezing process writes lead-in and lead-out areas on the disc. After a disc has been frozen, you can still write additional sessions onto it, providing, of course, additional capacity is available. The freeze process only subtracts from the available capacity, draining away the 13MB of overhead required by any single session.

CD-Rewritable

CD-RW stands for CD-Rewritable, meaning that these drives can create new CDs that you can erase and use again. In fact, you can treat a rewritable CD as if it were a big floppy disk drive or slow hard disk drive. All CD-RW drives also function as CD-R drives, and they are standardized under the Orange Book just as are CD-R drives.

The difference between CD-R and CD-RW is in the media. Put a blank CD-R disc in a CD-RW drive, and you make a permanent record that you cannot change. With a CD-RW disc, you can rewrite and reuse disc space thanks to its phase-change medium.

CD-RW drives are actually the third incarnation of phase-change technology. The first drives, under the Phase Change Recordable banner (or PCR), were made by Toray Industries. It used a medium slightly larger than CDs, 130 millimeters in diameter as opposed to the CD’s 120 mm, that was consequently physically incompatible with CD drives. Both sides of the disc had a recordable surface, allowing for a total capacity of 1.5GB per disc. Panasonic’s PD discs reduced the size of the disc to the same as CDs and modified the storage format. The actual writing format uses sectors of 512 bytes versus the 2048 byte or larger sectors used by CD, so PD discs are also logically incompatible with CDs. You cannot duplicate a CD on the PD medium. Moreover, the logical format of the PD system limits its capacity to 650MB per disc, as opposed to the 680MB total of CDs. Further, the phase-change material used by the Panasonic PD drives is not compatible with the optical heads and electronics of CD drives. Although the electronics of the Panasonic drives adapted to handle either phase-change or conventional CD media, PD discs work only in PD drives.

Because of the lower reflectivity of CD-RW media, phase-change discs often are unreadable in early (pre-1998) CD-ROM and CD-R drives. Newer drives have compensatory circuitry built in called automatic gain control.

In operation, a CD-RW drive can function more like a conventional hard disk than a CD-R. The drive can update the disc table of contents at any time, so you can add files and tracks without additional session overhead. Under Windows, you typically drag and drop files to your CD-RW drive just like you would with any other disk. The Mount Rainier standard, discussed earlier, formalizes a system with this capability and more.

Discs written by CD-RW drives made before the Mount Rainier standard are not entirely compatible with all CD drives. The format used during CD-RW operation in pre–Mount Rainier drives is usually different from that of conventional CDs. To read a CD-RW disc in a CD-ROM or CD-R drive, the disc must be closed, an operation that effectively reorganizes its format. In the typical implementation, the reorganization process requires blank space on the disc, so you cannot fill one of these CD-RW discs with data and expect to later use it in another drive.

DVD-ROM

To your computer, the storage on a DVD looks much like that of any disk system. Information is organized into 2KB blocks that correspond to the clusters on disk systems. The file structure takes the form of the Micro UDF/ISO Bridge format. In effect it bridges two storage formats.

Universal Data Format (UDF) was designed by the Optical Storage Technology Association (OSTA), a group of companies involved in optical data storage, to make data stored on optical discs independent of any operating system (hence, universal). The goal was to allow you to write an optical disc on your computer and read it on any other computer in the world, regardless of operating system, microprocessor, or even whether it was powered by electricity or steam. UDF defines the data structures (partitions, files, sectors), error correction, character sets, and read/write method of the DVD system. ISO 9660 defines the tree-oriented directory structure (the same as on computer CDs) compatible with Windows and other popular operating systems. The overall structure of the disc fits the UDF format with the ISO 9660 structure on top, the intent being to eventually eliminate ISO 9660 support.

The UDF specification has incremented up to version 2.01, the level that OSTA recommends DVD-ROM publishers follow. DVD-Video discs and players are locked to the UDF version 1.02 specifications. You can download both versions of the specification in their entirety from www.osta.org.

The Micro UDF/ISO Bridge format imposes some limits on DVDs. One oft-quoted limit is a maximum file size of 1GB. This constraint applied only to DVD-Video discs. Although it seems incompatible with two hours of continuous video playback, the DVD system was designed to agglomerate multiple small files (including video, audio, and control information), process them together, and output a single continuous video stream.

On the disc itself, the block is chopped and scattered to help in error recovery. The tiny size of the pits on the disc means that a splotch or scratch will likely span a considerable storage area. Spreading the data out scatters potential read errors into small pieces in different storage units so that they can be more readily detected and corrected.

Each 2KB block is translated into a 2064-byte physical sector for storage on the disc. The sector gets further subdivided into 12 rows of 172 bytes each. The central ten rows store only data. The first starts with a 12-byte sector header to identify the storage unit. Four bytes provide the actual ID information with two additional bytes used for error correction dedicated to the ID data. The remaining six bytes in the header are reserved. The following 160 bytes in the first row contain data. The last row of each sector ends with four bytes of error-detection and error-correction information for the data area of the sector.

Sixteen sectors are then interleaved together to form a larger storage unit, the block. Ten bytes of error-correction code are added to each row in the block, and the resulting overall block gains another 16 rows of error-correction code. The result is a block that’s 37,856 bytes, with about 15 percent of its contents devoted to error-correction information. These blocks are then written sequentially to the disc.

The DVD-ROM format allows for both constant linear velocity and constant angular velocity recording. The former favors capacity in sequential access applications (audio and video). The latter improves random access speed for data applications but reduces the capacity of each layer. Although it is an inherent part of the DVD-ROM specification, the chief application of CAV recording in DVD has been the various rewritable formats.

The required support to read UDF-based DVD-ROM discs is built in to Windows 98 and later Windows versions. Earlier Windows versions will require add-on drivers, which are usually included with DVD drives. In addition to decoder software, playback of DVD-Video requires DirectShow 5.2 or newer, which is included with Windows 98. More recent versions can be downloaded from Microsoft’s Web site at www.microsoft.com. Again, DVD drives usually include the necessary decoder (as software or as a separate hardware MPEG-decoder board) as well as DirectShow.

DVD-Video

The DVD-Video system devotes one track to video information that may use either MPEG-1 or MPEG-2 encoding. All commercial discs use MPEG-2 because it simply looks (and works) better. A dedicated DVD player can render either into video for your television or monitor. With current technologies, a DVD-ROM player in a computer works best with a separate hardware-based MPEG-2 decoder. Only the fastest computer processor can decode MPEG-2 in real time, and even these don’t work as well as dedicated hardware decoders. Moreover, because your computer must devote nearly all its power to decoding the video, there’s little left for doing other work at the same time.

DVD-Video would not be possible without compression (nor would any other digital video system be practical). DVD-Video data originates with a bit-rate of 124Mbps, and it must be compressed down to the maximum rate permitted under the DVD standard, 9.6Mbps. The average bit rate is about 3.5Mbps. Despite the heavy-duty compression, DVD still delivers about twice the resolution of VHS videocassettes. A typical DVD-Video system produces horizontal resolution of about 500 lines, compared to less than 240 lines for a VHS tape.

DVD-Video goes far beyond today’s VHS and CD-Video systems. It allows both conventional-style images with the 4:3 aspect ratio as well as those with the 16:9 ratio favored by High-Definition Television systems. DVD players are required to have built-in filters to translate 16:9 images into the full-width of a 4:3 aspect ratio screen—in other words, built-in letterbox format translation. The DVD players will also allow you to zoom in to fill the screen height with a 16:9 image and pan to either side of the picture. The MPEG-2 encoding delivers about four times the spatial resolution as MPEG-1 (used by some CD systems) and allows a high-quality display with 480 lines of 720 pixels, each to fit into a 4MBps data stream. As with any video-compression technique, the exact data rate depends on the complexity of the image. Typically a high-quality image requires less data than a low-quality one plagued by noise. The onscreen resolution produced by a DVD system is in the range of 480–500 horizontal lines. Unlike other video systems—VCRs and laserdisc systems—DVD stores video images in component format (separate red, green, and blue images). Other consumer formats use composite video.

DVD-Video also introduces the concept of subpictures, which are additional images of limited color depth that can be multiplexed with the main audio and video data. The DVD standard allows for up to 32 subpictures, which typically will be menus for control systems, subtitles for foreign language films, or production credits. Each subpicture can measure as large as 720 by 480 pixels in four colors.

Note that DVD-Video is not High-Definition Television (HDTV). About the only thing in common between the two is the 16:9 aspect ratio supported by both. DVD-Video is more closely aligned with standard NTSC video, offering quality similar to that in the television studio. An HDTV image has about five times the number of pixels as the DVD-Video format. Its compressed format requires about twice the data rate (about 19.4Mbps). Certainly the DVD-18 medium has enough capacity to store HDTV, but it will require a new storage and playback format to cope with the HDTV data rate.

DVD mimics HDTV by offering a wide aspect ratio format. The DVD standard allows for both the old television and video aspect ratio of 4:3 and the HDTV aspect ratio of 16:9. The wide aspect ratio images have the same number of pixels as 4:3 images. The image is compressed anamorphically to fit. On playback the ostensibly square pixels get stretched horizontally to the wider aspect ratio. The standard allows the display of wide aspect ratio images in three different ways, which you can select when playing back a disc. These include the following:

* Letterbox mode. This mode fills the width of the screen with the full width of the image, leaving bands 60 lines high at the top and bottom of the screen black.

* Pan and Scan mode. This mode fills the full narrow screen with a window into the wide image. The window is dynamic. The disc stores cues determined by the director of the film or producer of the DVD that guide the window to follow the action in the image.

* Widescreen mode. This mode provides a full-width image on a 16:9 aspect ratio screen.

The audio accompanying DVD-Video can take any of many forms. The most common (used on nearly all releases of theatrical movies) is Dolby Digital. Although the Dolby Digital system can accommodate up to 5.1 channels of PCM audio, the standard embraces lesser configurations as well—including simple monophonic and stereophonic recordings. In other words, a label proclaiming “Dolby Digital” on a movie box does not guarantee anything in the way of true multichannel sound.

The required audio support depends on the standard followed by the recorded video. Discs containing NTSC video (the standard in North America and Japan) are required to use Dolby Digital. Discs containing PAL video (Europe and most of the rest of the world) must use MPEG-2 audio. Other audio formats may optionally accompany either video standard.

The DVD-Video standard accommodates eight tracks of audio, each track being a single data stream that may comprise one or more audio channels. Each of these channels may use any of five encoding systems. In addition to Dolby Digital (with up to 5.1 channels per track), all DVD drives must also be able to decode PCM audio, up to eight channels per track (potentially 64 channels per disc, but real data rates ordain the channel count be lower), and MPEG audio (up to 7.1 channels per track). Optional decoding systems—which may or may not be included within the circuitry of a given DVD drive but can be attached as an accessory—include Digital Theater Sound (DTS) and Sony Dynamic Digital Sound (SDDS). Chapter 25, “Audio Systems,” discusses these systems in more detail.

Video DVDs are burdened with several layers of copy protection that are entwined both with hardware and operating system software. Copy-protection occurs at three levels:

* Analog copy protection. Alters the video output so that the signal appears corrupted to VCRs when you attempt to record it. The current Analog Protection System (APS) adds a rapid modulation to the colorburst signal (called a colorstripe) and pulses in the vertical blanking signal (termed AGC because it is meant to confuse the automatic gain control of VCRs). Computer video boards with conventional analog video outputs (composite or S-video) must incorporate APS. DVD-Video discs themselves control whether the APS system is used on playback by signaling to the disc player to switch APS on or off.

* Serial copy protection. Protects by encoding control information in the signal that determines whether it can be copied. The copy generation management system adds information to line 21 of the NTSC video signal to tell equipment whether copying is permitted. Although DVD-Video encodes line 21 differently, the information is regenerated into the analog video output of DVD players and computer video boards.

* Digital encoding. Encrypts the digital form of media files requiring the video player to know the key necessary for decrypting the code. The DIVX licensing system (abandoned as a DVD format on June 16, 1999) works through digital encoding.

In addition, DVDs are marked with a regional code, a number that specifies the part of the world in which playback of the DVD’s content is permitted. The DVD player checks to see whether a region code on the software matches that encoded into its hardware. If the two don’t match, the disc won’t play. DVD media boxes are marked with the region code as a number on a globe icon, the number corresponding to one of six regions, as listed in Table 18.5.

computer

Optical Storage Drives

The hundreds or thousands of megabytes on your CDs and DVDs would do you no good without a means for reading them. That means is the optical disc drive. A CD drive or CD-ROM reader gives you access only to CDs, be they audio or data discs. All DVD drives can read both CD and DVD discs, although early drives often cannot read discs written with CD-R and CD-RW drives.

With the price difference between CD and DVD drives disappearing, there’s less reason than ever to consider a CD drive. A DVD drive will do everything the CD drive does (but likely better). Performance and compatibility are no longer issues. Consequently, in any new computer, a DVD drive is the preferred option.

All optical disc drives in computers can play back audio CDs. The multimedia standards require that CD-ROM drives on multimedia computers have both a front panel headphone jack and volume control. Of course, the multimedia PC standards date back to a time when decent speakers connected to a computer were as rare as bagpipes in a symphony. Today’s drives get around needing the extra jacks because all drives have an audio connector on their rear panels for linking to your computer’s sound system. This connector provides analog audio—that is, the sound from a disc that has already been decoded from its original digital format. Drives also have standard mass storage interface jacks (typically AT Attachment or SCSI) to send digital data to your computer.

In theory, you can recover digital audio through this connection. Drives differ in their ability to deliver usable audio in digital form, however, a feature called digital audio extraction (DAE). For example, if you wanted to capture a track from an audio CD to convert into an MP3 file, you would need a drive that supports digital audio extraction. All current drives support DAE. Older CD drives with the AT Attachment interface often had difficulty with DAE (if they supported the feature at all). You may encounter problems if you try to use one of these older drives to capture audio.

Dedicated home DVD players have video jacks but the DVD drives in computers do not. At one time, decent video playback in your computer required that the DVD reader plug into an MPEG decoder that slid into an expansion slot and directly linked to your computer’s video system. As the microprocessors and video systems in computers gained speed, however, the complex decoding job was readily assumed by software, a special MPEG video codec.

Speed

When Philips and Sony originally propounded the Compact Disc system, memory was expensive and computers were only for hobbyists. Players had to read audio data from each disc at the same rate as it was to be played. Higher speeds were irrelevant. Once computers adopted the CD, however, audio speed became a horrendous holdup. Audio CD speed was lower than a modern floppy disk, and floppy disks were too slow.

Data, unlike music, need not abide by the constraints of real-time playback. It wasn’t long before computer engineers took advantage of a simple expedient to speed up the CD drives connected to computers. They made the discs spin faster…and faster…and faster. From humble beginnings of only twice as fast as ordinary audio CDs, they have revved up to as high as 50 times faster.

Drive-makers describe the speed of their products using the x-factor. The base speed of an audio CD drive is 1x. A 2x drive spins twice as fast. A 12x drive spins 12 times faster, and so on.

After about 12x, the rotation rates for CDs become awesome. When reading from the inside of the disk, a 12x rate amounts to about 3600 RPM. At the outer edge, the disc spins at half that rate. Higher speed factors (for example, 20x, 36x, or 50x) are comparably faster. Not only is spinning the disc at these rates a challenge, altering the spin speed from the inner to outer reaches of the disc is tricky and time consuming. The need to change speeds can really slow down random access.

In data applications, a constant data rate is unnecessary. With that gem of wisdom in mind, drive-makers developed CD players with a constant spin rate that, with a logic peculiar to the computer market, are known as variable-speed drives. Although the spin rate is constant, the data rate the drives deliver is not. It is twice as high at the outer edge of the disc as it is at the inner edge. The x-factor of the drive varies with the data rate.

As any cynic would expect, drive manufacturers invariably quote the fastest speed that variable-speed drives can possibly deliver. In practical use, drives almost never achieve this rate. Because these “multispeed” drives actually spin their discs at a constant rate (that is, at a constant angular velocity), at smaller diameters, the data rate (and the x-factor) is lower than at larger diameters near the outside edge of the disc. But the data on optical discs starts at the inside of the track spiral and continues to the outside. Consequently, variable-speed drives read (or write) at their top speed only at the very end of a completely full disc. Most discs aren’t filled to capacity, so the highest speed areas of the disc aren’t often used—and variable speed drives rarely achieve the high speed at which they are rated. A few more reputable computer-makers describe variable-speed drives by listing both their slowest and fastest speed, such as 12/24x.

On the other hand, variable-speed drives have an advantage in random access. Because they spin your discs at a constant rate, you don’t have to wait for the drive to alter its speed to match the rate required at a particular place on the disc.

Note, too, that high-speed drives impose an access penalty. Drives with faster speed ratings require more time to spin your discs up to the proper speed. That means you have to wait longer after you slide a disc into the drive before you can read it. The problem is particularly severe with portable computers, which stop their discs from spinning after a minute or so to conserve power. Each time the drive powers down, you have to wait for it to spin the disc back up to speed before you can read from it.

The x-factor for DVD drives is not the same as for CD drives. As with the CD, the DVD speed ratings are pegged to the base data rate of the original video-only DVD system. The linear velocity of the DVD system is about 2.98 times faster than the linear velocity of the CD. But drive electronics don’t care about linear speed. They lock onto the data rate. The data format of the CD has larger features than those of DVDs. The minimum pit length, for example, is 0.83 microns for CDs and only 0.4 for DVDs. For a given data rate, the CD must spin about twice as fast as a DVD to produce the same data rate, the 26.16Mbps basic read rate of DVDs. Add the increased linear velocity to the change required by feature size and read rate, and the result is that a 1x DVD drive best reads data at about six times the base CD rate. Consequently, every DVD “x” is worth about six “x” from a CD drive. Table 18.3 gives a comparison of some common CD and DVD speeds (assuming a constant data rate).

computer

Because the coding system used by DVDs is more efficient than that used by CDs, a DVD drive extracts more information at a given raw data rate. The user data rate from a 1x DVD drive reading a DVD is about nine times that of a 1x CD drive reading a CD.

In general, a faster drive is a better drive—providing you can put up with the extended spin-up times of really quick disc drives. Some software makes particular speed demands from CD drives. The minimum speed requirement usually is in the range of 4x to 6x. All CD drives in new computers deliver at least 12x, so you should encounter no problem with software speed compatibility. Similarly, the base DVD rate is fast enough for most applications, although you may prefer the quicker load times afforded by a 4x or faster DVD drive.

When you play audio from CDs or movies from DVDs, high drive speeds and x-factors make no difference. A faster drive will not produce a higher-quality signal from these isosynchronous sources. Only when you read computer data from disc do the x-factors matter. For example, play a CD so you can listen to it, and your drive will operate at 1x. When you attempt to extract digital data from the same audio CD to create an MP3 file, however, the drive may shift to a higher speed—if your computer can process the data fast enough. Extraction need not occur in real time.

Access Time

Compared to magnetic hard disks, all optical disc readers are laggardly beasts. Mass is the reason. The read head of an optical drive is substantially more massive than the flyweight mechanisms used in hard disks. Instead of a delicate read/write head, the CD or DVD drive has a large optical assembly that typically moves on a track. The assembly has more mass to move, which translates into a longer wait for the head to settle into place. Optical drives consequently have hefty access times—where the typical hard disk drive now has an average access time of 9 milliseconds or less, a quick optical drive is about one-tenth the speed (with an average access time about 90 to 100 milliseconds).

As noted earlier, the constant linear velocity system used by some drives also slows the access speed. Because the spin rate of the disc platter varies depending on how far the read/write head is located from the center of the disc, as the head moves from track to track, the spin rate of the disc changes. With music, which is normally played sequentially, that’s no problem. The speed difference between tracks is tiny, and the drive can quickly adjust for it. Make the optical drive into a random-access mechanism, and suddenly speed changes become a big issue. The drive might have to move its head from the innermost to outermost track, requiring a drastic speed change. The inertia of the disc spin guarantees a wait while the disc spins up or down.

Controls

Nearly all optical disc drives have an eject button on the front panel. Pressing this button causes the drive to spin down the disc inside the drive (if there is one) and then slide out the tray or pop out the caddy should one be used. Pressing the button again slides the tray back in. Usually pressing on the tray open will also trigger the drive to slide it all the way in.

The various Multimedia PC (MPC) specifications require a volume control on the front panel of any CD-ROM drive you have in your multimedia computer. This control is useful if you decide to use your drive for playing back music while you work. You can plug headphones into the jack on the front of the drive (also required by the MPC standards) and use the volume control to adjust the loudness of the playback independent of the CD control software you run on your computer. The front panel volume control usually does not control the output on the audio connector on the rear of the drive.

Some CD and DVD drives have extended control panels, usually with the standard motion controls as found on dedicated disc players: stop, play, fast forward, rewind, track forward, and track back. Although these controls are not required, they can be handy when you use the DVD player in your computer for playing video through an external monitor.

With the exception of the volume control, all the front panel control functions (including eject) can be operated through suitable software.

Compatibility

DVD drives are required to be able to play back audio CDs made under the Red Book standard. Although as a digital system that can read CD-ROM data, DVD could be compatible with any CD, this is not always the case. Most DVD systems cannot handle interactive Green Book CDs. The dye used in many CD-R media is invisible to DVD wavelengths, so early DVD drives may be unable to read the CD-R discs you make. Drive-makers have adopted a number of strategies to enable their newer DVD drives to read CD-Rs properly. Of course, different CD-R media use different dyes, so you might find your DVD drive works with some CD-Rs and not with others. CD-RW media complicate matters because the medium is not as reflective as that used by prerecorded CDs and DVDs. Manufacturers have developed a “MultiRead” label to assure you that the drive will read CD-ROM, CD-R, and CD-RW media. DVD drives are not required to be able to read CD-Video disc (White Book), but most can—it takes no great technical feat because the DVD drive can read the CD medium, and the MPEG-2 circuitry in the DVD drive also handles the MPEG-1 of CD-Video. DVD players can read data from Enhanced CDs made under the Blue Book standard, including music CDs.

Optical Storage History

Developed by the joint efforts of Philips and Sony Corporation in the early 1980s, when the digital age was taking over the stereo industry, the Compact Disc was first and foremost a high-fidelity delivery medium. The CD was initially released in the United States in 1983 (in Japan the CD got a one-year head start, officially released in 1982 according to Sony), and within five years it had replaced the vinyl phonograph record as the premiere stereophonic medium because of its wide range, lack of noise, near invulnerability to damage, and long projected life.

The CD was designed chiefly for capacity and real-time playback of music. Engineers set many of the practical aspects of the CD around the requirements of music recording. For example, they selected the 70 or so minutes of music capacity as one of the core specifications in designing the system, because a primary design goal was to fit the entire Beethoven’s Ninth Symphony, without interruption, on a single disc. As originally conceived, its storage was not reliable enough for computers. And computers had little use for it. At the time, they were choking when confronted with a few megabytes. CDs wielded hundreds of them.

But as the CD rose to prominence as the primary distribution medium for prerecorded music, computer engineers began to look at the shiny medium with a covetous gleam in their eyes. They saw the digital storage provided by the disc as a repository for more megabytes than anyone had reason to use. After all, data is data (okay, data are data) regardless of whether the bytes encode a symphony or an operating system. When someone got the idea that a plastic puck that cost a buck to make and retailed for $16.99 could be filled with last year’s statistics and marketed for $249, the rush was on. The Compact Disc became the CD-ROM (which stands for Compact Disc, Read-Only Memory), and megabytes came to the masses.

Soon sound became only one of the applications of the Compact Disc medium. The original name had to be extended to distinguish musical CDs from all the others. To computer people, the CD of the stereo system became the CD-DA, Compact Disc, Digital Audio.

Engineers tinkered with the storage format of the CD to stuff the discs with other kinds of data. Philips optimized the medium for interactive applications—multimedia presentations and games—to create CD-I, which stands for Compact Disc Interactive. Some even thought that compression—a lot of it—could fit video on the discs. Compact Disc-Video succeeded in squeezing video on the little discs, but not very much and not very well. Viewable video had to await another string of developments and the new generation of optical storage.

DVD was the needed innovation. The initials stand for Digital Versatile Disc, although the system was first termed the Digital Video Disc before the adoption of the current technical standards.

The roots of DVD go back to two competing proposals, both of which had the primary intent of storing video on a disc the same size as a CD. The original developers of the Compact Disc, Philips and Sony, backed a format they called MMCD for Multimedia Compact Disc (they owned the CD name so they took advantage of it). The other camp, led by Matsushita, Time Warner, and Toshiba, developed their own, incompatible format they called SD.

For a while, the industry appeared poised for a repeat of the Beta/VHS debacle that put two mutually incompatible videotape cassette formats on the market for nearly a decade. In September, 1995, the industry appeared to come to its senses, hammering out a single standard agreeable to both camps. To distinguish it from the earlier efforts and reflect the expanded range of possibilities afforded by the new medium, the format was rechristened with Versatile replacing the Video of the earlier proposals. Credit for developing the initial standard is generally given to an industry consortium that included Hitachi, JVC, Matsushita, Mitsubishi, Philips, Sony, Thompson, Time Warner, and Toshiba.

As with CDs, each application format for the DVD has its own subdesignation. These include DVD-Video for video applications, such as the distribution of motion pictures; DVD-Audio, as a high-quality audio disc with capabilities far beyond today’s 16-bit discs; and DVD-ROM for the distribution of computer software and other data.

When it came to developing a recordable format for DVD, however, the consensus fell apart. As this is written, promoters advocate three read-only formats under the names DVD-R(A), DVD-R(G), and DVD+R. Read/write systems are equally confused with four competing standards, including DVD-Multi, DVD-RAM, DVD-RW, and DVD+RW.

Although the differences between these recordable standards is blurring—each one now boasts a full 4.7 gigabytes-per-disc capacity as well as some degree of compatibility with home DVD players—the animosity is not fading. The industry is split into two camps, the “plus” camp and the “hyphen” camp. The former, the promoters of the “plus” systems of DVD+R and DVD+RW, include Dell, Hewlett-Packard, Mitsubishi, Philips, Ricoh, Sony, and Thomson. The “hyphen” camp promotes the DVD-Multi format, which brings together DVD-R(A) and DVD-R(G) as well as DVD-RAM and DVD-RW. The DVD Forum, an organization that includes nearly all consumer electronics manufacturers (with the notable exceptions of Dell and Hewlett-Packard but including the other “plus” camp members), maintains the official standards.

Despite the wide variety of formats now used in computer optical storage systems, the underlying technology for all remains the same—a spinning disc is the target for the laser beam.

Medium

The heart of both the Compact Disc and Digital Versatile Disc systems is the disc medium itself. Its design, based on a pattern of dots that can be read optically but mass-produced mechanically, makes optical storage the fastest and least expensive medium for duplicating hundreds of megabytes of data.

The flat disc shape also offers a distinct advantage. Machines can mold copies of discs by stamping them between dies instead of filling a three-dimensional mold with a casting liquid. This stamping process has a long history. It has been used for over a century in duplicating recorded music—first with shellac and clay to copy Emil Berliner’s first phonograph records, then with vinyl for old-fashioned record albums. Duplicating CDs and DVDs requires extra precision and a few extra steps, but it remains essentially the same stamping process.

The disc-duplicating process begins with a disc master. A mastering machine equipped with a high-powered laser blasts the pits in a blank disc—the recording master—to make an original mechanical recording. Then the master is made into a mold called a stamper. A negative copy is electroplated onto the master, then separated from it, leaving the master unscathed. One master can make many duplicate molds, each of which is then mounted in a stamping machine. The machine heats the mold and injects a glob of plastic into it. After giving the plastic a chance to cool, the stamping machine ejects the disc and takes another gulp of plastic.

In making a CD or DVD, another machine takes the newly stamped disc and aluminizes it so that it has a shiny, mirror-like finish. To protect the shine, the disc is laminated with a clear plastic cover that guards the mechanical pattern from chemical and physical abuse (oxidation and scratches). Finally, another machine silk-screens a label on the disc. It is packaged, shrink-wrapped, and sent off to a warehouse or store.

The DVD process differs in that a disc can have multiple layers. In the current process, a separate master is made for each layer. The layers are stamped out separately, each only half as thick as a complete disc. The two complete layers are then fastened together with a special transparent glue.

In theory, a disc could be any size, and setting a standard is essentially an exercise in pragmatism. Size is related to playing time. The bigger the disc, the more data it holds, all else being equal. If you want to store a lot of data, a big disc has its allure. On the other hand, a platter the size of a wading pool would win favor with no one but plastics manufacturers. You can also increase the capacity of a disk by shrinking the size of every stored bit of digital code, but the practical capabilities of technology limit how small you can make a bit. In trying to craft a standard, engineers have to balance the convenience of small size, the maximum practical storage density, and a target for the amount of information they need to store.

In the late 1970s when Philips and Sony were developing the CD, the maximum practical storage density of the then-current technology was about 150 megabytes per square inch. The arbitrary design goal of about 70 minutes per disc side (enough room for Beethoven’s Ninth) dictated about 650MB at the data rate selected (which itself was a tradeoff between data requirements and sound quality). The result was that the design engineers found a 120-millimeter (that’s about 4.6 inches) platter to be their ideal compromise. A nice, round 100 millimeters was just too small for Beethoven.

For portable applications, the engineers came up with a smaller form factor for discs, 80 mm (about 3.1 inches). Once plated and given its protective plastic coating, either size of CD is about 1.2 mm (about 0.05 inch) thick.

For DVDs, the same sizes have been retained. This expedient allows the same equipment used to make CDs with only minor modification to stamp out DVDs. In addition, the same drives that read and write can also use CDs, whether in your home entertainment system or inside your computer.

The DVD medium differs from conventional CDs in that discs can use both sides for recording data and have multiple layers on each side. (Although two-sided CDs are possible, they have been commercially produced only rarely.) As noted earlier, current technology fabricates each DVD in two pieces, each 0.6 mm thick, which are later cemented together. Cemented back-to-back, the disc gains two sides. Cemented so the face of one butts the back of the other, the disc gains two layers. The latter configuration allows you to play both recorded surfaces without flipping the disc over. To shift between layers, the DVD player needs only to refocus its laser beam. The process is fast—it takes only milliseconds—and, with adequate buffering, can be completely invisible to your computer and its software. There’s no pause in the data streaming from the drive.

Under the DVD standards, eight possible types of disc are currently defined, depending on the size, number of sides, and number of layers. Table 18.1 summarizes the various DVD disc types and their storage capacities.

computer

Almost all discs made thus far conform to the DVD-5 standard. This format was tailored to the needs of the motion picture and videocassette industry. It allows a standard Hollywood-style movie to fit on a single disc. Unlike videocassettes, however, the movie will have digital quality images and sound—and not just stereo sound but full eight-channel surround. In that the cost of duplicating DVDs is a fraction of that of videocassettes, the software industry will be urging you into the new medium as fast as it can. In that you should easily be able to see and hear the difference, you shouldn’t need too much encouragement.

The DVD format allows your disc drive to read the two layers in either of two ways, determined when the disc is recorded. Parallel tracking path (