Discussion:
libdvdcss is jacked
Andrew A. Gill
2006-03-02 04:48:59 UTC
Permalink
So here's the deal.

I try to play a DVD with libdvdcss, and I get garbled output.
I'm told that it looks like libdvdcss isn't working. So I
thought I'd come by here and start screaming at you guys until
you fix it.

Specifically, I tried csstest, and here's the info:

]$ libdvdcss-1.2.9/test/.libs/lt-csstest \
/mnt/cdrom/video_ts/vts_08_0.vob 1024

cool, I found libdvdcss version 1.2.9
read failed (no error)

That, y'know, isn't a very helpful error.

(I may be rather angry because I just fasted 24 hours for Ash
Wednesday, and the Chicken Divan that I just spent 2 hours
preparing and $20 buying the ingredients for came out
%("?%^%^%^(*^%(*^(%((^ RAW!)
--
| Andrew A. Gill To ensure continued quality of service, |
| this e-mail is being monitored by the NSA |
| <***@frontiernet.net> <http://www.needsfoodbadly.com> |
--
RAW!
--
This is the libdvdcss-devel mailing-list, see http://developers.videolan.org/
To unsubscribe, go to: http://developers.videolan.org/lists.html
Sam Hocevar
2006-03-02 19:20:44 UTC
Permalink
Post by Andrew A. Gill
I try to play a DVD with libdvdcss, and I get garbled output.
I'm told that it looks like libdvdcss isn't working. So I
thought I'd come by here and start screaming at you guys until
you fix it.
]$ libdvdcss-1.2.9/test/.libs/lt-csstest \
/mnt/cdrom/video_ts/vts_08_0.vob 1024
cool, I found libdvdcss version 1.2.9
read failed (no error)
csstest can only work on devices and on files that can be read. If
the file is on a mounted DVD, the drive will prevent the operating
system from reading it, so you need to access the device instead. Could
you please try again using the device name, eg. "csstest /dev/hdc 1024"?

Also, setting the environment variable DVDCSS_VERBOSE=2 will give you
debug information that can be helpful to us.
Post by Andrew A. Gill
That, y'know, isn't a very helpful error.
That's right. I'll see what can be done here.
--
Sam.
--
This is the libdvdcss-devel mailing-list, see http://developers.videolan.org/
To unsubscribe, go to: http://developers.videolan.org/lists.html
Andrew A. Gill
2006-03-02 23:51:46 UTC
Permalink
Post by Sam Hocevar
Post by Andrew A. Gill
I try to play a DVD with libdvdcss, and I get garbled output.
I'm told that it looks like libdvdcss isn't working. So I
thought I'd come by here and start screaming at you guys until
you fix it.
]$ libdvdcss-1.2.9/test/.libs/lt-csstest \
/mnt/cdrom/video_ts/vts_08_0.vob 1024
cool, I found libdvdcss version 1.2.9
read failed (no error)
csstest can only work on devices and on files that can be read. If
the file is on a mounted DVD, the drive will prevent the operating
system from reading it, so you need to access the device instead. Could
you please try again using the device name, eg. "csstest /dev/hdc 1024"?
Also, setting the environment variable DVDCSS_VERBOSE=2 will give you
debug information that can be helpful to us.
OK. I umounted the drive, and here's what I get:

---
]$ libdvdcss-1.2.9/test/csstest /dev/dvd 1024
cool, I found libdvdcss version 1.2.9
libdvdcss debug: opening target `/dev/dvd'
libdvdcss debug: using libc for access
libdvdcss error: css error: ioctl_ReadCopyright failed, make
sure there is a DVD in the drive, and that you have used the
correct device node.
libdvdcss debug: could not check whether the disc was scrambled
libdvdcss debug: using CSS key cache dir:
/home/superluser/.dvdcss/GUNDAM_WING_V2-1998060619582800-0000000000/
requested sector:
2105c540...00405b6b0500ba27502abd231000cca41000aaa4cfff...
libdvdcss debug: cracking title key at block 1024
libdvdcss debug: non MPEG block found at block 1024 (end of
title)
libdvdcss debug: end of title reached
libdvdcss debug: successful attempts 0/0, scrambled blocks 0/0
libdvdcss debug: title key is 00:00:00:00:00
libdvdcss error: fatal error in vts css key
seek failed (fatal error in vts css key)
---

Hmm. Let's try that again, just to make sure it wasn't a fluke.

---
]$ libdvdcss-1.2.9/test/csstest /dev/dvd 1024
cool, I found libdvdcss version 1.2.9
libdvdcss debug: opening target `/dev/dvd'
libdvdcss debug: using libc for access
libdvdcss error: css error: ioctl_ReadCopyright failed, make
sure there is a DVD in the drive, and that you have used the
correct device node.
libdvdcss debug: could not check whether the disc was scrambled
libdvdcss debug: using CSS key cache dir:
/home/superluser/.dvdcss/GUNDAM_WING_V2-1998060619582800-0000000000/
requested sector:
00000000...0000000000000000000000000000000000000000ffff...
sector is not scrambled
---

Yeah, it was a fluke. Again:

---
]$ libdvdcss-1.2.9/test/csstest /dev/dvd 1024
cool, I found libdvdcss version 1.2.9
libdvdcss debug: opening target `/dev/dvd'
libdvdcss debug: using libc for access
libdvdcss error: css error: ioctl_ReadCopyright failed, make
sure there is a DVD in the drive, and that you have used the
correct device node.
libdvdcss debug: could not check whether the disc was scrambled
libdvdcss debug: using CSS key cache dir:
/home/superluser/.dvdcss/GUNDAM_WING_V2-1998060619582800-0000000000/
requested sector:
00000000...00000000000000000000000000000000000000000000...
sector is not scrambled
---

The sector shouldn't be all zeros, right?

---
]$ libdvdcss-1.2.9/test/csstest /dev/dvd 1024
cool, I found libdvdcss version 1.2.9
libdvdcss debug: opening target `/dev/dvd'
libdvdcss debug: using libc for access
libdvdcss error: css error: ioctl_ReadCopyright failed, make
sure there is a DVD in the drive, and that you have used the
correct device node.
libdvdcss debug: could not check whether the disc was scrambled
libdvdcss debug: using CSS key cache dir:
/home/superluser/.dvdcss/GUNDAM_WING_V2-1998060619582800-0000000000/
requested sector:
01004121...200040e01004ef47689f7da7a9725b6b0600ba276c60...
libdvdcss debug: cracking title key at block 1024
libdvdcss debug: non MPEG block found at block 1024 (end of
title)
libdvdcss debug: end of title reached
libdvdcss debug: successful attempts 0/0, scrambled blocks 0/0
libdvdcss debug: title key is 00:00:00:00:00
libdvdcss error: fatal error in vts css key
seek failed (fatal error in vts css key)
---

Oh, good. The contents of the sector changed again.

---
]$ libdvdcss-1.2.9/test/csstest /dev/dvd 1024
cool, I found libdvdcss version 1.2.9
libdvdcss debug: opening target `/dev/dvd'
libdvdcss debug: using libc for access
libdvdcss error: css error: ioctl_ReadCopyright failed, make
sure there is a DVD in the drive, and that you have used the
correct device node.
libdvdcss debug: could not check whether the disc was scrambled
libdvdcss debug: using CSS key cache dir:
/home/superluser/.dvdcss/GUNDAM_WING_V2-1998060619582800-0000000000/
requested sector:
00570e80...000000001c000000e4190000986afffff4000000004f...
sector is not scrambled
---

Not scrambled? Good to know.

What the heck is going on here?
--
| Andrew A. Gill To ensure continued quality of service, |
| this e-mail is being monitored by the NSA |
| <***@frontiernet.net> <http://www.needsfoodbadly.com> |
--
Thank you kindly.
--
This is the libdvdcss-devel mailing-list, see http://developers.videolan.org/
To unsubscribe, go to: http://developers.videolan.org/lists.html
Wout Mertens
2006-04-04 18:31:20 UTC
Permalink
Looks like you have a RPC 2 drive that means it. These newfangled
drives won't let you read sectors that are protected unless the
region is the one that you set the drive to.

One way to make sure this is the case is to get a DVD that's the
proper region, and see if that plays ok.

If the region on this broken disk is the same as the one on your
drive, something else is wrong.

Wout.
Post by Andrew A. Gill
Post by Sam Hocevar
Post by Andrew A. Gill
I try to play a DVD with libdvdcss, and I get garbled output.
I'm told that it looks like libdvdcss isn't working. So I
thought I'd come by here and start screaming at you guys until
you fix it.
]$ libdvdcss-1.2.9/test/.libs/lt-csstest \
/mnt/cdrom/video_ts/vts_08_0.vob 1024
cool, I found libdvdcss version 1.2.9
read failed (no error)
csstest can only work on devices and on files that can be read. If
the file is on a mounted DVD, the drive will prevent the operating
system from reading it, so you need to access the device instead. Could
you please try again using the device name, eg. "csstest /dev/hdc 1024"?
Also, setting the environment variable DVDCSS_VERBOSE=2 will give you
debug information that can be helpful to us.
---
]$ libdvdcss-1.2.9/test/csstest /dev/dvd 1024
cool, I found libdvdcss version 1.2.9
libdvdcss debug: opening target `/dev/dvd'
libdvdcss debug: using libc for access
libdvdcss error: css error: ioctl_ReadCopyright failed, make sure
there is a DVD in the drive, and that you have used the correct
device node.
libdvdcss debug: could not check whether the disc was scrambled
libdvdcss debug: using CSS key cache dir: /home/superluser/.dvdcss/
GUNDAM_WING_V2-1998060619582800-0000000000/
2105c540...00405b6b0500ba27502abd231000cca41000aaa4cfff...
libdvdcss debug: cracking title key at block 1024
libdvdcss debug: non MPEG block found at block 1024 (end of title)
libdvdcss debug: end of title reached
libdvdcss debug: successful attempts 0/0, scrambled blocks 0/0
libdvdcss debug: title key is 00:00:00:00:00
libdvdcss error: fatal error in vts css key
seek failed (fatal error in vts css key) ---
Hmm. Let's try that again, just to make sure it wasn't a fluke.
---
]$ libdvdcss-1.2.9/test/csstest /dev/dvd 1024
cool, I found libdvdcss version 1.2.9
libdvdcss debug: opening target `/dev/dvd'
libdvdcss debug: using libc for access
libdvdcss error: css error: ioctl_ReadCopyright failed, make sure
there is a DVD in the drive, and that you have used the correct
device node.
libdvdcss debug: could not check whether the disc was scrambled
libdvdcss debug: using CSS key cache dir: /home/superluser/.dvdcss/
GUNDAM_WING_V2-1998060619582800-0000000000/
00000000...0000000000000000000000000000000000000000ffff...
sector is not scrambled ---
---
]$ libdvdcss-1.2.9/test/csstest /dev/dvd 1024
cool, I found libdvdcss version 1.2.9
libdvdcss debug: opening target `/dev/dvd'
libdvdcss debug: using libc for access
libdvdcss error: css error: ioctl_ReadCopyright failed, make sure
there is a DVD in the drive, and that you have used the correct
device node.
libdvdcss debug: could not check whether the disc was scrambled
libdvdcss debug: using CSS key cache dir: /home/superluser/.dvdcss/
GUNDAM_WING_V2-1998060619582800-0000000000/
00000000...00000000000000000000000000000000000000000000...
sector is not scrambled ---
The sector shouldn't be all zeros, right?
---
]$ libdvdcss-1.2.9/test/csstest /dev/dvd 1024
cool, I found libdvdcss version 1.2.9
libdvdcss debug: opening target `/dev/dvd'
libdvdcss debug: using libc for access
libdvdcss error: css error: ioctl_ReadCopyright failed, make sure
there is a DVD in the drive, and that you have used the correct
device node.
libdvdcss debug: could not check whether the disc was scrambled
libdvdcss debug: using CSS key cache dir: /home/superluser/.dvdcss/
GUNDAM_WING_V2-1998060619582800-0000000000/
01004121...200040e01004ef47689f7da7a9725b6b0600ba276c60...
libdvdcss debug: cracking title key at block 1024
libdvdcss debug: non MPEG block found at block 1024 (end of title)
libdvdcss debug: end of title reached
libdvdcss debug: successful attempts 0/0, scrambled blocks 0/0
libdvdcss debug: title key is 00:00:00:00:00
libdvdcss error: fatal error in vts css key
seek failed (fatal error in vts css key)
---
Oh, good. The contents of the sector changed again.
---
]$ libdvdcss-1.2.9/test/csstest /dev/dvd 1024
cool, I found libdvdcss version 1.2.9
libdvdcss debug: opening target `/dev/dvd'
libdvdcss debug: using libc for access
libdvdcss error: css error: ioctl_ReadCopyright failed, make sure
there is a DVD in the drive, and that you have used the correct
device node.
libdvdcss debug: could not check whether the disc was scrambled
libdvdcss debug: using CSS key cache dir: /home/superluser/.dvdcss/
GUNDAM_WING_V2-1998060619582800-0000000000/
00570e80...000000001c000000e4190000986afffff4000000004f...
sector is not scrambled
---
Not scrambled? Good to know.
What the heck is going on here?
--
| Andrew A. Gill To ensure continued quality of service, |
| this e-mail is being monitored by the NSA |
--
Thank you kindly.
--
This is the libdvdcss-devel mailing-list, see http://
developers.videolan.org/
To unsubscribe, go to: http://developers.videolan.org/lists.html
--
This is the libdvdcss-devel mailing-list, see http://developers.videolan.org/
To unsubscribe, go to: http://developers.videolan.org/lists.html
Andrew A. Gill
2006-04-04 20:39:12 UTC
Permalink
Looks like you have a RPC 2 drive that means it. These newfangled drives
won't let you read sectors that are protected unless the region is the one
that you set the drive to.
How do I set the region?
--
| Andrew A. Gill To ensure continued quality of service, |
| this e-mail is being monitored by the NSA |
| <***@frontiernet.net> <http://www.needsfoodbadly.com> |
--
--
This is the libdvdcss-devel mailing-list, see http://developers.videolan.org/
To unsubscribe, go to: http://developers.videolan.org/lists.html
Wout Mertens
2006-04-04 20:48:14 UTC
Permalink
http://www.linux.com/howtos/DVD-Playback-HOWTO/prep.shtml

Wout.
Post by Andrew A. Gill
Post by Wout Mertens
Looks like you have a RPC 2 drive that means it. These newfangled
drives won't let you read sectors that are protected unless the
region is the one that you set the drive to.
How do I set the region?
--
| Andrew A. Gill To ensure continued quality of service, |
| this e-mail is being monitored by the NSA |
--
--
This is the libdvdcss-devel mailing-list, see http://developers.videolan.org/
To unsubscribe, go to: http://developers.videolan.org/lists.html
Andrew A. Gill
2006-04-04 21:44:53 UTC
Permalink
Post by Wout Mertens
http://www.linux.com/howtos/DVD-Playback-HOWTO/prep.shtml
]$ sudo regionset
regionset version 0.1 -- reads/sets region code on DVD drives
ERROR: Could not retreive region code settings of the drive!
Would you like to change the region setting of your drive?
[y/n]:y
Enter the new region number for your drive [1..8]:1
New mask: 0xFFFFFFFE, correct? [y/n]:y
ERROR: Region code could not be set!
--
| Andrew A. Gill To ensure continued quality of service, |
| this e-mail is being monitored by the NSA |
| <***@frontiernet.net> <http://www.needsfoodbadly.com> |
--
--
This is the libdvdcss-devel mailing-list, see http://developers.videolan.org/
To unsubscribe, go to: http://developers.videolan.org/lists.html
Loading...