Differences between revisions 32 and 33
Revision 32 as of 2013-10-08 18:15:21
Size: 6566
Editor: Drahtseil
Comment: formatting libdvdcss2
Revision 33 as of 2013-10-09 00:55:39
Size: 5184
Editor: GeoffSimmons
Comment: Update translation header, replace nonexistent deb-multimedia.org mirror, w{32,64}codecs has nothing to do with DVD, s/cdrecord/wodim/g, remove/replace outdated details, formatting.
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
||<tablestyle="width: 100%;" style="border: 0px hidden">~-[[DebianWiki/EditorGuide#translation|Translation(s)]]: English - [[fr/CDDVD|Français]] - [[it/CDDVD|Italiano]]-~||<style="text-align: right;border: 0px hidden"> (!) [[/Discussion|Discussion]]|| ~-[[DebianWiki/EditorGuide#translation|Translation(s)]]: English - [[fr/CDDVD|Français]] - [[it/CDDVD|Italiano]]-~
Line 4: Line 4:
## If your page gets really long, uncomment this Table of Contents
Line 13: Line 12:
Older versions of Debian may have used device names like /dev/hdc or /dev/scd0 depending on the kernel version and which driver (PATA/SATA/SCSI) was being used for the device.
Line 16: Line 13:
You can use many video players on Debian to read video DVDs, including [[Xine]] (or players with a Xine backend, such as totem-xine) or [[MPlayer]]. Since most DVDs are protected by CSS (Content Scramble System) you will require the installation of DebianPkg:libdvdread4: You can use many video players on Debian to read video DVDs, including Xine (or players with a Xine backend, such as totem-xine) or [[MPlayer]]. Since most DVDs are protected by CSS (Content Scramble System) you will require the installation of DebianPkg:libdvdread4:
Line 22: Line 19:
libdvdcss2 is required for the decryption of CSS protected-DVDs. This cannot be obtained from the Debian repositories due to the licence restrictions in various countries. It can be downloaded from other sources, such as deb-multimedia.org. Please read this file {{{/usr/share/doc/libdvdread3/README.Debian}}} and [[#libdvdcss2]] below. libdvdcss2 is required for the decryption of CSS protected-DVDs. This cannot be obtained from the Debian repositories due to the licence restrictions in various countries. It can be downloaded from other sources, such as deb-multimedia.org. Please read the {{{/usr/share/doc/libdvdread4/README.css}}} file and [[#libdvdcss2]] below.
Line 36: Line 33:



   
Line 56: Line 48:
cdrecord speed=8 dev=/dev/hdc -eject -tao -data /scratch/iso/track_01.img wodim speed=8 dev=/dev/hdc -eject -tao -data /scratch/iso/track_01.img
Line 63: Line 55:
cdrecord -scanbus wodim -scanbus
Line 73: Line 65:

On older versions of Debian, you may have to manually set up group permissions on the optical device to allow some users to play music CDs on the CD-ROM drive; to accomplish this, do: 'chgrp cdrom /dev/hdc' ( If it is hdc) or if it is something else (i.e. /dev/scd0) do the corresponding thing. Then type 'addgroup USER_ID cdrom' to allow the user to play music CDs. Changing the group of /dev/hdc (or scd0 or whatever) is necessary, because otherwise you would need to add the user to group disk, which is bad for security.
Line 88: Line 78:
Writing _file_ larger than 4GB on an iso-9660 dvd is tricky (read [[WikiPedia:ISO_9660#The_2.2F4_GiB_file_size_limit|wikipedia]]). The easiest way might be to use UDF. Writing ''file'' larger than 4GB on an iso-9660 dvd is tricky (read [[WikiPedia:ISO_9660#The_2.2F4_GiB_file_size_limit|wikipedia]]). The easiest way might be to use UDF.
Line 100: Line 90:
 * Add the repository from http://www.deb-multimedia.org/debian-m.php to your:
{{{
/etc/apt/source.list
}}}
 * Add mirror like deb http://mirrors.ecology.uni-kiel.de/debian/deb-multimedia {stable,etch,testing,lenny,unstable,sid} main (for my version it would be:
{{{
deb http://enternix.physik.uni-kiel.de/deb-multimedia/ stable main
 * Add the unofficial [[http://www.deb-multimedia.org/|deb-multimedia.org repository]] to {{{/etc/apt/sources.list}}}. For example: {{{
deb http://www.deb-multimedia.org/ wheezy main
Line 109: Line 94:
Optionally add the [[http://www.deb-multimedia.org/faq.php#q1|GPG key]].
##{{{
##wget http://www.deb-multimedia.org/pool/main/d/deb-multimedia-keyring/deb-multimedia-keyring_2007.02.14_all.deb
##dpkg -i deb-multimedia-keyring_2007.02.14_all.deb
##}}}
 [[http://www.deb-multimedia.org/debian-m.php|Mirrors of this repository]] are also available. Optionally add the [[http://www.deb-multimedia.org/faq.php#q9|GPG key]].
Line 115: Line 96:
Note that with adding this repository, you will see further different versions (e.g. Audacity) from this site.
Alternatively, you can download the file ''libdvdcss'' directly from http://download.videolan.org/pub/libdvdcss/ .
 Note that with adding this repository, you will see further different versions (e.g. Audacity) from this site.
Line 118: Line 98:
 * Now install a dvd player called xine:
{{{
 Alternatively, you can download the file ''libdvdcss'' directly from http://download.videolan.org/pub/libdvdcss/ .

 * Now install a dvd player called xine: {{{
Line 123: Line 104:
 * Install library that helps programs read DVDs:
{{{
 * Install library that helps programs read DVDs: {{{
Line 127: Line 107:
 * Now install windows file format support:
{{{
aptitude install w32codecs
}}}
 * On amd64 (64 bit) architecture install:
{{{
aptitude install w64codecs
}}}
Line 136: Line 108:
== See also: == == See also ==
Line 139: Line 111:
----
== External links ==
Line 146: Line 119:
 * http://wiki.debian.org/DebianInstaller/SataAtapiHowto

Translation(s): English - Français - Italiano


Devices

CD/DVD units are generally detected as /dev/sr*, where * is a number starting at 0. So your first drive will be /dev/sr0, second drive /dev/sr1, etc.

Symlinks /dev/cdrom, /dev/cdrw, /dev/dvd, or /dev/dvdrw (pointing to /dev/sr0) may also be created depending on the detected capabilities of your device.

DVD

You can use many video players on Debian to read video DVDs, including Xine (or players with a Xine backend, such as totem-xine) or MPlayer. Since most DVDs are protected by CSS (Content Scramble System) you will require the installation of libdvdread4:

# apt-get install libdvdread4

libdvdcss2 is required for the decryption of CSS protected-DVDs. This cannot be obtained from the Debian repositories due to the licence restrictions in various countries. It can be downloaded from other sources, such as deb-multimedia.org. Please read the /usr/share/doc/libdvdread4/README.css file and #libdvdcss2 below.

libdvdcss2

You can download libdvdcss directly from the project's homepage:

Read the file INSTALL and follow the instructions, e.g.

  ./configure --prefix=/usr
  make
  sudo make install

Done. You should now be able to watch CSS-encrypted DVDs with your favourite Video-Player.

CD

CDROM

<!> Beware! Much of this is old information. In the age of devfs and udev (or kernel version 2.6), you may not even have an (eg.) /dev/hdc if your drive isn't in the machine when you boot. As of Sarge, they're intended to be used as so:

(1) infidel /home/keeling_ ls -al /media    
total 4
drwxr-xr-x   4 root root 1024 2005-11-08 15:49 .
drwxr-xr-x  23 root root 1024 2005-11-03 19:24 ..
lrwxrwxrwx   1 root root    6 2005-11-03 18:12 cdrom -> cdrom0
drwxr-xr-x   2 root root 1024 2005-11-03 18:12 cdrom0
lrwxrwxrwx   1 root root    6 2005-11-08 15:49 cdrom1 -> cdrom0
lrwxrwxrwx   1 root root    7 2005-11-03 18:12 floppy -> floppy0
drwxr-xr-x   2 root root 1024 2005-11-03 18:12 floppy0

Furthermore, use of SCSI emulation drivers for ATAPI interfaces is deprecated. Instead, you can (and should) use the correct device name directly:

wodim speed=8 dev=/dev/hdc -eject -tao -data /scratch/iso/track_01.img


Detecting and mounting

Use to detect your CD/DVD units:

wodim -scanbus

To check which special file /dev/cdrom is a symlink to (i.e. /dev/sr0, /dev/hdc or /dev/scd0), type:

ls -al /dev/cdrom*

Users need to be members of the "cdrom" group to use an optical device on Debian.

You can allow any user mount cdrom adding to fstab:

/dev/cdrom /mnt/auto/cdrom iso9660 noauto,users,ro 0 0

You can see if fstab points to the right device typing:

dmesg | grep ATAPI

FAQ

4GB per File limitation

Writing file larger than 4GB on an iso-9660 dvd is tricky (read wikipedia). The easiest way might be to use UDF.

  • Debian's mkisofs (genisoimage) might be limited to 4GB (read this).

Converting DVD

Reading encrypted DVDs

Some Video DVD are scrambled, and you need a library (libdvdcss2) to read them:

  • Add the unofficial deb-multimedia.org repository to /etc/apt/sources.list. For example:

    deb http://www.deb-multimedia.org/ wheezy main

    Mirrors of this repository are also available. Optionally add the GPG key. Note that with adding this repository, you will see further different versions (e.g. Audacity) from this site.

    Alternatively, you can download the file libdvdcss directly from http://download.videolan.org/pub/libdvdcss/ .

  • Now install a dvd player called xine:

    aptitude update
    aptitude install xine-ui
  • Install library that helps programs read DVDs:

    aptitude search libdvdcss2

See also