<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://debianws.lexgopc.com/wiki143/index.php?action=history&amp;feed=atom&amp;title=Compact_Disc_subcode</id>
	<title>Compact Disc subcode - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://debianws.lexgopc.com/wiki143/index.php?action=history&amp;feed=atom&amp;title=Compact_Disc_subcode"/>
	<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=Compact_Disc_subcode&amp;action=history"/>
	<updated>2026-04-30T14:38:46Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://debianws.lexgopc.com/wiki143/index.php?title=Compact_Disc_subcode&amp;diff=2992239&amp;oldid=prev</id>
		<title>imported&gt;Danhash: /* See also */ create section with CD ripper</title>
		<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=Compact_Disc_subcode&amp;diff=2992239&amp;oldid=prev"/>
		<updated>2025-05-12T15:16:29Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;See also: &lt;/span&gt; create section with &lt;a href=&quot;/wiki143/index.php?title=CD_ripper&quot; title=&quot;CD ripper&quot;&gt;CD ripper&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Short description|Data contained in a compact disc in addition to digital audio or user data}}&lt;br /&gt;
{{Refimprove|date=September 2014}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Subcode&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;subchannel data&amp;#039;&amp;#039;&amp;#039; (called &amp;#039;&amp;#039;control bytes&amp;#039;&amp;#039; in the [[CD-ROM]] specification) is data contained in a [[compact disc]] (CD) in addition to digital audio or user data, which is used for control and playback of the CD. The original specification was defined in the [[Red Book (CD standard)|Red Book]] standard for [[Compact Disc Digital Audio]], though further specifications have extended their use (including the [[CD-ROM]], [[CD Text]] and [[CD+G]] specifications).&lt;br /&gt;
&lt;br /&gt;
== Structure ==&lt;br /&gt;
Subchannel data is multiplexed with the [[Compact Disc Digital Audio|digital audio]] or [[CD-ROM|user digital data]]. The data in a CD are arranged in frames. A frame comprises 33 bytes, of which 24 bytes are audio or user data, eight bytes are error correction ([[Cross-interleaved Reed-Solomon coding|CIRC]]-generated), and one byte is for subcode. Frames are arranged in sectors, which contain 98 frames each. The subcode bytes of the first two frames of a sector are used as two synchronization words. The subcode bytes of the remaining 96 frames of a sector are split into eight 96-bit long subcode channels (also called subchannels or simply channels) by putting together the nth bit of each subcode byte.&amp;lt;ref name=&amp;quot;ecma130&amp;quot;&amp;gt;{{cite web|url=http://www.ecma-international.org/publications/standards/Ecma-130.htm |title=Data Interchange on Read-only 120 mm Optical Data Disks (CD-ROM) |publisher=ECMA |date=June 1996 |accessdate=2009-04-26}}&amp;lt;/ref&amp;gt; Each channel has a bit rate of 7.35&amp;amp;nbsp;kbit/s.&lt;br /&gt;
&lt;br /&gt;
Each subcode bit/subchannel is designated by a letter from P to W. The following diagram illustrates how the channels are laid out:&amp;lt;ref name=&amp;quot;ecma130&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!colspan=9 |Subcode / control byte&lt;br /&gt;
|-&lt;br /&gt;
!Bit&lt;br /&gt;
|8 &lt;br /&gt;
|7 &lt;br /&gt;
|6 &lt;br /&gt;
|5 &lt;br /&gt;
|4 &lt;br /&gt;
|3 &lt;br /&gt;
|2 &lt;br /&gt;
|1&lt;br /&gt;
|-&lt;br /&gt;
!Channel&lt;br /&gt;
|P &lt;br /&gt;
|Q &lt;br /&gt;
|R &lt;br /&gt;
|S &lt;br /&gt;
|T &lt;br /&gt;
|U &lt;br /&gt;
|V &lt;br /&gt;
|W&lt;br /&gt;
|-&lt;br /&gt;
!Frame 1&lt;br /&gt;
| colspan=8 |Sync word 1&lt;br /&gt;
|-&lt;br /&gt;
!Frame 2&lt;br /&gt;
| colspan=8 |Sync word 2&lt;br /&gt;
|-&lt;br /&gt;
!Frame 3&lt;br /&gt;
| rowspan=5 |Channel&amp;lt;br/&amp;gt;data&lt;br /&gt;
| rowspan=5 |Channel&amp;lt;br/&amp;gt;data&lt;br /&gt;
| rowspan=5 |Channel&amp;lt;br/&amp;gt;data&lt;br /&gt;
| rowspan=5 |Channel&amp;lt;br/&amp;gt;data&lt;br /&gt;
| rowspan=5 |Channel&amp;lt;br/&amp;gt;data&lt;br /&gt;
| rowspan=5 |Channel&amp;lt;br/&amp;gt;data&lt;br /&gt;
| rowspan=5 |Channel&amp;lt;br/&amp;gt;data&lt;br /&gt;
| rowspan=5 |Channel&amp;lt;br/&amp;gt;data&lt;br /&gt;
|-&lt;br /&gt;
!Frame ..&lt;br /&gt;
|-&lt;br /&gt;
!Frame ..&lt;br /&gt;
|-&lt;br /&gt;
!Frame ..&lt;br /&gt;
|-&lt;br /&gt;
!Frame 98&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Channels ==&lt;br /&gt;
Both the P and Q channels on a regular audio CD are used for timing information. They assist the CD player in tracking the current location on the disc, and to provide the timing information for the time display on the CD player. The rest are not used in the Red Book specification.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Channel &amp;#039;&amp;#039;P&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; is a simple &amp;quot;pause music&amp;quot; flag, which can be used for low-cost search systems. Many players ignore it in favor of the &amp;#039;&amp;#039;Q&amp;#039;&amp;#039; Channel. It indicates a start of a new track by at least two consecutive seconds (150 sectors) of all 1s, and the last block with all 1s is the first block of the new track.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Channel &amp;#039;&amp;#039;Q&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; is used for control purposes of more sophisticated players. It has three different modes, but with a common structure for all of them.&amp;lt;ref name=&amp;quot;ecma130&amp;quot;/&amp;gt; &lt;br /&gt;
**&amp;#039;&amp;#039;Control bits&amp;#039;&amp;#039;: The first four bits are used for control, each being a flag for a different feature:&lt;br /&gt;
***&amp;#039;&amp;#039;&amp;#039;Four-channel Compact Disc digital audio flag&amp;#039;&amp;#039;&amp;#039;: indicates that the track uses [[Four-channel compact disc digital audio|four-channel audio]] (applies only to CD-DA). This feature was never used on Compact Discs.{{cn|date=May 2025}}&lt;br /&gt;
***&amp;#039;&amp;#039;&amp;#039;Data flag&amp;#039;&amp;#039;&amp;#039;: Indicates that this track contains data (rather than audio). Can be used for muting in audio CD players. Not used in the original CD-DA standard, added in the [[CD-ROM]] specifications.&lt;br /&gt;
***&amp;#039;&amp;#039;&amp;#039;Digital copy permission flag&amp;#039;&amp;#039;&amp;#039;: Used by the [[Serial Copy Management System]] to indicate permission to digitally copy the track.&lt;br /&gt;
***&amp;#039;&amp;#039;&amp;#039;Pre-emphasis flag&amp;#039;&amp;#039;&amp;#039;: The audio track was recorded with [[preemphasis|pre-emphasis]] (applies only to CD-DA). Used very rarely on Compact Discs.&lt;br /&gt;
**&amp;#039;&amp;#039;Mode bits&amp;#039;&amp;#039;: The next four bits indicate the mode of the Q channel, which can vary from 1 to 3, and define the structure and contents of the next bits.&lt;br /&gt;
**&amp;#039;&amp;#039;Data bits&amp;#039;&amp;#039;: The next 72 bits contain Q-channel data, and their structure depends on the mode defined in the previous bits.&lt;br /&gt;
***&amp;#039;&amp;#039;&amp;#039;Q Mode 1&amp;#039;&amp;#039;&amp;#039;: In this mode, the data bits contain the [[Compact Disc Digital Audio#Data structure|Table of Contents]] of the [[Session (CD)|session]] (if the Q channel is in the lead-in area), or timing information for the current track (if the Q channel is in the program and lead-out areas of a session).&lt;br /&gt;
***&amp;#039;&amp;#039;&amp;#039;Q Mode 2&amp;#039;&amp;#039;&amp;#039;: In this mode, the data bits contain the [[Media Catalog Number]] (MCN)&amp;lt;ref&amp;gt;{{Cite web |title= INFORMATION ON CD FORMATS |url=http://www.csun.edu/science/help/help_docs/CD.htm |access-date=2022-06-26 |website=www.csun.edu}}&amp;lt;/ref&amp;gt; of the disc.&lt;br /&gt;
***&amp;#039;&amp;#039;&amp;#039;Q Mode 3&amp;#039;&amp;#039;&amp;#039;: In this mode, the data bits contain an [[International Standard Recording Code]] (ISRC) for each track (applicable to CD-DA only). The ISRC is used by the media industry, and contains information about the country of origin, the year of publication, owner of the rights, as well as a serial number.&lt;br /&gt;
**&amp;#039;&amp;#039;[[Cyclic redundancy check]] bits&amp;#039;&amp;#039;: The last 16 bits contain an error detection code computed over the previous bits of the channel.&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;Channels &amp;#039;&amp;#039;R&amp;#039;&amp;#039; through &amp;#039;&amp;#039;W&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; are unused by Red Book compliant CDs and Yellow Book compliant CD-ROMs, and have been used for extensions to the standard:&lt;br /&gt;
** [[CD-Text]] is an extension to the [[Red Book (audio CD standard)|Red Book]] standard for audio CDs. It allows for storage of additional information (e.g. album name, song name, and artist) on the &amp;#039;&amp;#039;R&amp;#039;&amp;#039; through &amp;#039;&amp;#039;W&amp;#039;&amp;#039; subcode channels on the disc (either in the lead-in area or in the program or main area).&lt;br /&gt;
** The [[CD+G]] or &amp;quot;karaoke&amp;quot; extension also uses the &amp;#039;&amp;#039;R&amp;#039;&amp;#039; through &amp;#039;&amp;#039;W&amp;#039;&amp;#039; subcode channels to store low resolution graphics.&lt;br /&gt;
** Several [[Compact Disc and DVD copy protection|copy protection systems]] made use of the fact that some [[Ripping|disk copying utilities]] neglect to copy subcode data due to the obscurity of it. [[CloneCD]] can read subcode data and save it to a [[CloneCD Control File]].&lt;br /&gt;
&lt;br /&gt;
==Jack on CD players==&lt;br /&gt;
Some older CD players, such as the [[Pioneer Corporation|Pioneer]] PD-5010, have a socket for an [[Mini-DIN connector#8-pin|eight-pin mini-DIN connector]] on the back labeled &amp;quot;Subcode Out&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
[[File:CD Player Subcode Out Socket Pin-Out.svg]]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[CD ripper]]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Compact disc}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Compact disc]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Danhash</name></author>
	</entry>
</feed>