Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Encrypted DVD plays only as root
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
bszente
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2005
Posts: 123
Location: Tirgu Mures, Romania

PostPosted: Tue Jan 22, 2008 11:45 pm    Post subject: [SOLVED] Encrypted DVD plays only as root Reply with quote

Hello,

I have a strange problem. I can't play encrypted DVDs as normal user. I set the DVD-ROM with regionset to region 2. I set in Xine also region 2 at the options. Xine gives me the following error message:
Quote:
The source seems encrypted, and can't be read.
Your DVD is probably crypted. According to your country laws,
you can or can't install/use libdvdcss to be able to read this
disc, which you bought. (Media stream scrambled/encrypted)

Device permissions:
Code:
# ls -al /dev/sr*
brw-rw---- 1 root cdrom 11, 0 2008-01-22 17:36 /dev/sr0
# ls -al /dev/sg*
crw-rw---- 1 root root  21, 0 2008-01-22 17:36 /dev/sg0
crw-rw---- 1 root cdrom 21, 1 2008-01-22 17:36 /dev/sg1
# ls -al /dev/cd*
lrwxrwxrwx 1 root root 3 2008-01-22 17:36 /dev/cdrom -> sr0
lrwxrwxrwx 1 root root 3 2008-01-22 17:36 /dev/cdrw -> sr0
# ls -al /dev/dvd*
lrwxrwxrwx 1 root root 3 2008-01-22 17:36 /dev/dvd -> sr0
lrwxrwxrwx 1 root root 3 2008-01-22 17:36 /dev/dvdrw -> sr0

The user is in the following groups:
Code:
# groups XXXX
wheel uucp audio cdrom dialout video cdrw usb users plugdev shutdown games XXXX

The DVD plays perfectly as root, so it is not a hardware/software issue. It seems rather a permission issue.
Did I overlook something? Did any of you encounter this problem?

Regards,
bszente


Last edited by bszente on Wed Apr 23, 2008 10:58 am; edited 1 time in total
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Wed Jan 23, 2008 2:56 am    Post subject: Reply with quote

As a test, try changing the group of /dev/sg0 to cdrom as well.
Back to top
View user's profile Send private message
bszente
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2005
Posts: 123
Location: Tirgu Mures, Romania

PostPosted: Wed Jan 23, 2008 11:59 am    Post subject: Reply with quote

Hello yabbadabbadont,

Thanks for your reply.
yabbadabbadont wrote:
As a test, try changing the group of /dev/sg0 to cdrom as well.

I already tried that, but without success. sg0 is associated with the harddisk.
Here is the relevant part of the kernel log:
Code:

ata_piix 0000:00:1f.2: version 2.12
ata_piix 0000:00:1f.2: MAP [ P0 P2 IDE IDE ]
Marking TSC unstable due to: possible TSC halt in C2.
Time: hpet clocksource has been installed.
ACPI: PCI Interrupt 0000:00:1f.2[B] -> GSI 19 (level, low) -> IRQ 20
PCI: Setting latency timer of device 0000:00:1f.2 to 64
scsi0 : ata_piix
scsi1 : ata_piix
ata1: SATA max UDMA/133 cmd 0x000101f0 ctl 0x000103f6 bmdma 0x000118b0 irq 14
ata2: PATA max UDMA/100 cmd 0x00010170 ctl 0x00010376 bmdma 0x000118b8 irq 15
ata1.00: ATA-7: ST980811AS, 3.ALD, max UDMA/133
ata1.00: 156301488 sectors, multi 16: LBA48 NCQ (depth 0/32)
ata1.00: configured for UDMA/133
Clocksource tsc unstable (delta = -200221807 ns)
ata2.00: ATAPI: MATSHITADVD-RAM UJ-850S, 1.61, max UDMA/33
ata2.00: configured for UDMA/33
scsi 0:0:0:0: Direct-Access     ATA      ST980811AS       3.AL PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 156301488 512-byte hardware sectors (80026 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 0:0:0:0: [sda] 156301488 512-byte hardware sectors (80026 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sda: sda1 sda2 sda3 sda4 < sda5 sda6 sda7 >
sd 0:0:0:0: [sda] Attached SCSI disk
sd 0:0:0:0: Attached scsi generic sg0 type 0
scsi 1:0:0:0: CD-ROM            MATSHITA DVD-RAM UJ-850S  1.61 PQ: 0 ANSI: 5
sr0: scsi3-mmc drive: 47x/47x writer dvd-ram cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
sr 1:0:0:0: Attached scsi generic sg1 type 5

It assume it should be related to libdvdcss somehow, but I don't find the problem.

I set DVDCSS_VERBOSE=2, and the xine log under user is:
Code:
This is xine (X11 gui) - a free video player v0.99.5.
(c) 2000-2007 The xine Team.
libdvdread: Using libdvdcss version 1.2.9 for DVD access
libdvdcss debug: opening target `/dev/dvd'
libdvdcss debug: using libc for access
libdvdcss debug: disc is scrambled
libdvdcss debug: requesting AGID
libdvdcss debug: drive authenticated, using variant 0
libdvdcss debug: authentication established
libdvdcss debug: GetASF authenticated, ASF=1
libdvdcss debug: decrypting disc key 93:62:65:4e:2c
libdvdcss debug: trying player key 01:af:e3:12:80
libdvdcss debug: decrypted disc key is 12:b9:9d:31:a9
libdvdcss debug: using CSS key cache dir: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
libdvdcss debug: cannot open /dev/rdvd (No such file or directory)
libdvdcss error: failed to open raw device, but continuing

libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient

libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x0000013a
libdvdcss debug: title key found in cache 00:00:00:00:00
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x000001d9
libdvdcss debug: title key found in cache 00:00:00:00:00
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x0000ac2b
libdvdcss debug: title key found in cache 00:00:00:00:00
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_0.VOB at 0x00234a9f
libdvdcss debug: title key found in cache 00:00:00:00:00
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x00234aa4
libdvdcss debug: title key found in cache d0:03:53:8e:42
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_0.VOB at 0x00236375
libdvdcss debug: title key found in cache 00:00:00:00:00
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x002390d5
libdvdcss debug: title key found in cache 00:00:00:00:00
libdvdread: Elapsed time 0
libdvdread: Found 3 VTS's
libdvdread: Elapsed time 0
No accelerated IMDCT transform found
libdvdcss error: no key but found encrypted block

As root the log looks as follows:
Code:
This is xine (X11 gui) - a free video player v0.99.5.
(c) 2000-2007 The xine Team.
libdvdread: Using libdvdcss version 1.2.9 for DVD access
libdvdcss debug: opening target `/dev/dvd'
libdvdcss debug: using libc for access
libdvdcss debug: disc is scrambled
libdvdcss debug: requesting AGID
libdvdcss debug: drive authenticated, using variant 0
libdvdcss debug: authentication established
libdvdcss debug: GetASF authenticated, ASF=1
libdvdcss debug: decrypting disc key 93:62:65:4e:2c
libdvdcss debug: trying player key 01:af:e3:12:80
libdvdcss debug: decrypted disc key is 12:b9:9d:31:a9
libdvdcss debug: using CSS key cache dir: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
libdvdcss debug: cannot open /dev/rdvd (No such file or directory)
libdvdcss error: failed to open raw device, but continuing

libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient

libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x0000013a
libdvdcss debug: title key found in cache 00:00:00:00:00
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x000001d9
libdvdcss debug: title key found in cache d3:42:41:5c:54
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x0000ac2b
libdvdcss debug: title key found in cache d3:42:41:5c:54
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_0.VOB at 0x00234a9f
libdvdcss debug: title key found in cache d0:03:53:8e:42
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x00234aa4
libdvdcss debug: title key found in cache d0:03:53:8e:42
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_0.VOB at 0x00236375
libdvdcss debug: title key found in cache c7:4f:04:61:e9
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x002390d5
libdvdcss debug: title key found in cache c7:4f:04:61:e9
libdvdread: Elapsed time 0
libdvdread: Found 3 VTS's
libdvdread: Elapsed time 0
No accelerated IMDCT transform found

The "libdvdcss error: no key but found encrypted block" line at the end is missing.
The title keys do not match. As user only one key is ok, the rest are 0.
Back to top
View user's profile Send private message
blscreen
Tux's lil' helper
Tux's lil' helper


Joined: 04 Mar 2003
Posts: 118
Location: Innsbruck

PostPosted: Sat Apr 19, 2008 11:36 am    Post subject: Reply with quote

Remove ~/.dvdcss, that should fix the problem. At least it did for me.
Back to top
View user's profile Send private message
bszente
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2005
Posts: 123
Location: Tirgu Mures, Romania

PostPosted: Wed Apr 23, 2008 10:58 am    Post subject: Reply with quote

blscreen wrote:
Remove ~/.dvdcss, that should fix the problem. At least it did for me.

Many thanks, it worked, this solved the problem!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum