libdvdcss 1.4.3
|
libdvdcss is a simple library designed for accessing DVDs like a block device without having to bother about the decryption. The important features are:
libdvdcss is free software, released under the GNU General Public License. This ensures that libdvdcss remains free and used only with free software.
The complete libdvdcss programming interface is documented in the dvdcss.h file.
Some environment variables can be used to change the behavior of libdvdcss without having to modify the program which uses it. These variables are:
0
outputs no messages at all.1
outputs error messages to stderr.2
outputs error messages and debug messages to stderr.title
, key
or disc
.key
is the default method. libdvdcss will use a set of calculated player keys to try and get the disc key. This can fail if the drive does not recognize any of the player keys.disc
is a fallback method when key
has failed. Instead of using player keys, libdvdcss will crack the disc key using a brute force algorithm. This process is CPU intensive and requires 64 MB of memory to store temporary data.title
is the fallback when all other methods have failed. It does not rely on a key exchange with the DVD drive, but rather uses a crypto attack to guess the title key. In rare cases this may fail because there is not enough encrypted data on the disc to perform a statistical attack, but on the other hand it is the only way to decrypt a DVD stored on a hard disc, or a DVD with the wrong region on an RPC2 drive.raw(8)
for instance. Please note that on most operating systems, using a raw device requires highly aligned buffers: Linux requires a 2048 bytes alignment (which is the size of a DVD sector).