Difference between revisions of "CD"

From VideoLAN Wiki
Jump to navigation Jump to search
(→‎See also: Add CD, DVD, VCD/SVCD and divider)
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{wikipedia|Compact disc}}
 
{{wikipedia|Compact disc}}
 
A '''CD''' or '''Compact Disc''' is a circular disk with a silver look to it.
 
A '''CD''' or '''Compact Disc''' is a circular disk with a silver look to it.
 +
[[File:CD.png|100px|thumb|alt=|right|A CD]]
  
 
== Audio CDs ==
 
== Audio CDs ==
{{protocol|id=cdda|altid=cddasimple|info=Usage: cdda://device@track}}
+
{{protocol|CDDA|info=Usage: cdda://device@track}}
  
'''Audio CDs''' contain audio data, and can be read by a CD player. Any CD marked with the [[wikipedia:Image:Cdda.png|CDDA mark]] can be played in any player also marked with a CDDA mark.
+
'''Audio CDs''' contain audio data, and can be read by a CD player. Any CD marked with the CDDA mark can be played in any player also marked with a CDDA mark.
  
 
Audio CDs can be played with [[VLC media player]] if you have a CD drive on your PC. After inserting the CD, run VLC and select ''Open Disc'' from the ''File'' menu. Then click on the ''Audio CD'' option and press OK. If you prefer, you can use the [[command prompt]] to run an audio CD:
 
Audio CDs can be played with [[VLC media player]] if you have a CD drive on your PC. After inserting the CD, run VLC and select ''Open Disc'' from the ''File'' menu. Then click on the ''Audio CD'' option and press OK. If you prefer, you can use the [[command prompt]] to run an audio CD:
 
  vlc cdda://D:
 
  vlc cdda://D:
 
  vlc cdda:///dev/cdrom
 
  vlc cdda:///dev/cdrom
Where D: (windows) or /dev/cdrom (linux) is the location of your CD drive. To play a single track, append an @ followed by the track number. For example, to play track 3, type
+
Where <code>D:</code> (windows) or <code>/dev/cdrom</code> (Linux) is the location of your CD drive. To play a single track, append <kbd>@</kbd> followed by the track number. For example, to play track 3, type
 
  vlc cdda://D:@3
 
  vlc cdda://D:@3
  
Audio CDs contain [[uncompressed]] [[lossless]] audio, which takes up a lot of space on the disk but is ''very'' good quality. The format for this is [[stereo]] audio in 44100Hz 16-bit [[PCM]] [[WAV]] format.  
+
Audio CDs contain [[uncompress]]ed [[lossless]] audio, which takes up a lot of space on the disk but is ''very'' good quality. The format for this is stereo audio (has both left and right audio channels) in 44100Hz 16-bit [[PCM]] [[WAV]] format.  
  
 
=== Module options ===
 
=== Module options ===
* --cdda-caching ([[integer]])
+
:''See [[Documentation:Modules/cdda]]''
*: [[Caching]] value, in [[millisecond]]s
 
* --cdda-track ([[integer]])
 
*: The track to play. This is equivalent to appending "@track" to the URL. Default value is -1, for playing all tracks.
 
* --cdda-first-sector ([[integer]])
 
* --cdda-last-sector ([[integer]])
 
*: The first and last [[wikipedia:Disk sector|sectors]] of the CD to check.{{check}}
 
* --cddb-server ([[string]])
 
* --cddb-port ([[integer]])
 
*: Location of the CDDB server to use. Default is "freedb.freedb.org" on port 8880
 
  
 
== Data CDs ==
 
== Data CDs ==
'''Data CDs''' contain programs or files which can be read by your PC - you can only use these with your PC.
+
'''Data CDs''' contain programs or files which can be read by your PC&nbsp;&ndash; you can only use these with your PC.
  
CDs can also contain other data and program code. When you insert a CD in some versions of [[Windows]], programs on the CD may run without asking you first - you may wish to [http://www.annoyances.org/exec/show/article03-018 turn off autorun] or hold the shift key when inserting a CD to stop this happening.
+
CDs can also contain other data and program code. When you insert a CD in some versions of [[Windows]], programs on the CD may run without asking you first&nbsp;&ndash; you may wish to [https://www.howtogeek.com/236241/how-to-enable-disable-and-customize-autoplay-in-windows-10/ turn off autorun] or hold the <kbd>Shift</kbd> key when inserting a CD to prevent this from happening.
  
 
=== Playing media files on a data CD ===
 
=== Playing media files on a data CD ===
Line 40: Line 32:
 
'''Mixed CDs''' contain both audio and data, for example a CD may come with a music video as a "bonus feature". The data part (such as the music video) can only be used on your PC, but the audio is able to be played on your PC or CD player.
 
'''Mixed CDs''' contain both audio and data, for example a CD may come with a music video as a "bonus feature". The data part (such as the music video) can only be used on your PC, but the audio is able to be played on your PC or CD player.
  
Some mixed CDs come with programs which will try to install [[copy protection]] on your computer - see [[wikipedia:2005 Sony BMG CD copy protection scandal|2005 Sony BMG CD copy protection scandal]].
+
Some mixed CDs come with programs which will try to install [[copy protection]] on your computer&nbsp;&ndash; see [[wikipedia:2005 Sony BMG CD copy protection scandal|2005 Sony BMG CD copy protection scandal]].
  
 
To play the audio CD part, follow the [[#Audio CDs|instructions for an audio CD]]. To play files on the data CD part, follow the [[#Data CDs|instructions for a data CD]].
 
To play the audio CD part, follow the [[#Audio CDs|instructions for an audio CD]]. To play files on the data CD part, follow the [[#Data CDs|instructions for a data CD]].
  
 
==See also==
 
==See also==
* [[Image|Disk Image (.iso)]]
+
* [[CD]]
 +
* [[DVD]]
 +
* [[VCD]]/SVCD
 +
<hr style="width:8em;" />
 
* [[FLAC]]
 
* [[FLAC]]
 +
* [[wikipedia:ISO image]]: an obscure format that can store e.g. an operating system on a disc
  
 
== Source code ==
 
== Source code ==

Latest revision as of 06:33, 19 April 2019

A CD or Compact Disc is a circular disk with a silver look to it.

A CD

Audio CDs

CDDA
VLC uses this protocol (or access module) to read data from a device or network. Additional information: Usage: cdda://device@track
This protocol is handled by the cdda module.

Audio CDs contain audio data, and can be read by a CD player. Any CD marked with the CDDA mark can be played in any player also marked with a CDDA mark.

Audio CDs can be played with VLC media player if you have a CD drive on your PC. After inserting the CD, run VLC and select Open Disc from the File menu. Then click on the Audio CD option and press OK. If you prefer, you can use the command prompt to run an audio CD:

vlc cdda://D:
vlc cdda:///dev/cdrom

Where D: (windows) or /dev/cdrom (Linux) is the location of your CD drive. To play a single track, append @ followed by the track number. For example, to play track 3, type

vlc cdda://D:@3

Audio CDs contain uncompressed lossless audio, which takes up a lot of space on the disk but is very good quality. The format for this is stereo audio (has both left and right audio channels) in 44100Hz 16-bit PCM WAV format.

Module options

See Documentation:Modules/cdda

Data CDs

Data CDs contain programs or files which can be read by your PC – you can only use these with your PC.

CDs can also contain other data and program code. When you insert a CD in some versions of Windows, programs on the CD may run without asking you first – you may wish to turn off autorun or hold the Shift key when inserting a CD to prevent this from happening.

Playing media files on a data CD

You can play files from a data CD, in exactly the same way as playing them from your hard drive (note: Linux users will need to mount the CD drive first).

See the file access module for details of playing files from your computer.

CDs with both audio and data (Mixed CDs)

Mixed CDs contain both audio and data, for example a CD may come with a music video as a "bonus feature". The data part (such as the music video) can only be used on your PC, but the audio is able to be played on your PC or CD player.

Some mixed CDs come with programs which will try to install copy protection on your computer – see 2005 Sony BMG CD copy protection scandal.

To play the audio CD part, follow the instructions for an audio CD. To play files on the data CD part, follow the instructions for a data CD.

See also


Source code