Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Now I've spent a few hours trying to make DVD playback work with no success. Does anyone have some fresh ideas? It seems to be a classical decryption problem. I find tons of hits related to this on the web but no solutions that work for me :-(.
I'm trying to play DVDs using xine. Some DVDs work (both commercial and home made) and some (commercial) dont. For the not working DVDs I get the error message: "The source can't be read. Maybe you don't have enough rights for this, or source doesn (sic!) contain data (e.g not disc in drive) Error opening vtsN=-1, domain=2.".
All the tested DVDs (both working and non working) have the region 2.
I'm running fedora 4 on an Acer Aspire 5024WLMi
Code:
uname -a
Linux wasp 2.6.12-1.1456_FC4 #1 Thu Sep 22 02:11:36 EDT 2005 x86_64 x86_64 x86_64 GNU/Linux
I have installed xine and libdvdcss from the livna repository
First I tried to use the default gstreamer version of totem, but it didn't worked well at all. So I changed to totem-xine.
I enable verbose output from libdvdcss with :
Code:
export DVDCSS_VERBOSE=2
Then I start xine. libdvdcss takes some time to decrypt but eventually seems to fail. Does anyone have a clue how to fix this?
Code:
[daniel@wasp xine]$ xine dvd:/
This is xine (X11 gui) - a free video player v0.99.4.
(c) 2000-2004 The xine Team.
libdvdread: Using libdvdcss version 1.2.8 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 with player keys
libdvdcss debug: decrypted disc key is 2e:97:32:1f:22
libdvdcss debug: using CSS key cache dir: /home/daniel/.dvdcss//BREAKFAST_AT_TIFFANYS#2000072116542800/
libdvdcss error: failed opening raw device, 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 0x00000134
libdvdcss debug: getting title key the classic way
libdvdcss debug: requesting AGID
libdvdcss debug: drive authenticated, using variant 0
libdvdcss debug: authentication established
libdvdcss debug: ioctl ReadTitleKey failed (region mismatch?)
libdvdcss debug: GetASF not authenticated, ASF=0
libdvdcss debug: lost ASF requesting title key
libdvdcss debug: resetting drive and cracking title key
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 with player keys
libdvdcss debug: decrypted disc key is 2e:97:32:1f:22
libdvdcss debug: cracking title key
libdvdcss debug: non MPEG block found (end of title)
libdvdcss debug: end of title reached
libdvdcss debug: 0 of 0 attempts successful, 0 of 87 blocks scrambled
libdvdcss debug: file was unscrambled
libdvdcss debug: title key is 00:00:00:00:00
libdvdcss debug: unencrypted title
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x000001d4
libdvdcss debug: getting title key the classic way
libdvdcss debug: requesting AGID
libdvdcss debug: drive authenticated, using variant 0
libdvdcss debug: authentication established
libdvdcss debug: ioctl ReadTitleKey failed (region mismatch?)
libdvdcss debug: GetASF not authenticated, ASF=0
libdvdcss debug: lost ASF requesting title key
libdvdcss debug: resetting drive and cracking title key
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 with player keys
libdvdcss debug: decrypted disc key is 2e:97:32:1f:22
libdvdcss debug: cracking title key
libdvdcss error: read error
libdvdcss debug: read error, resorting to secret arcanes to recover
libdvdcss debug: opening target `/dev/dvd'
libdvdcss debug: using libc for access
libdvdcss error: read error
libdvdcss debug: end of title reached
libdvdcss debug: 0 of 0 attempts successful, 0 of 0 blocks scrambled
libdvdcss debug: title key is 00:00:00:00:00
libdvdcss error: fatal error in vts css key
libdvdread: Error cracking CSS key for /VIDEO_TS/VTS_01_0.VOB (0x000001d4)
libdvdread: Elapsed time 1
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x00001449
libdvdcss debug: getting title key the classic way
libdvdcss debug: requesting AGID
libdvdcss debug: drive authenticated, using variant 0
libdvdcss debug: authentication established
libdvdcss debug: ioctl ReadTitleKey failed (region mismatch?)
libdvdcss debug: GetASF not authenticated, ASF=0
libdvdcss debug: lost ASF requesting title key
libdvdcss debug: resetting drive and cracking title key
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 with player keys
libdvdcss debug: decrypted disc key is 2e:97:32:1f:22
libdvdcss debug: cracking title key
libdvdcss error: read error
libdvdcss debug: read error, resorting to secret arcanes to recover
libdvdcss debug: opening target `/dev/dvd'
libdvdcss debug: using libc for access
libdvdcss error: read error
libdvdcss debug: end of title reached
libdvdcss debug: 0 of 0 attempts successful, 0 of 1 blocks scrambled
libdvdcss debug: file was unscrambled
libdvdcss debug: title key is 00:00:00:00:00
libdvdcss debug: unencrypted title
libdvdread: Elapsed time 4
libdvdread: Get key for /VIDEO_TS/VTS_02_0.VOB at 0x0032ab71
libdvdcss debug: getting title key the classic way
libdvdcss debug: requesting AGID
libdvdcss debug: drive authenticated, using variant 0
libdvdcss debug: authentication established
libdvdcss debug: ioctl ReadTitleKey failed (region mismatch?)
libdvdcss debug: GetASF not authenticated, ASF=0
libdvdcss debug: lost ASF requesting title key
libdvdcss debug: resetting drive and cracking title key
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 with player keys
libdvdcss debug: decrypted disc key is 2e:97:32:1f:22
libdvdcss debug: cracking title key
libdvdcss error: read error
libdvdcss debug: read error, resorting to secret arcanes to recover
libdvdcss debug: opening target `/dev/dvd'
libdvdcss debug: using libc for access
libdvdcss error: read error
libdvdcss debug: end of title reached
libdvdcss debug: 0 of 0 attempts successful, 0 of 1 blocks scrambled
libdvdcss debug: file was unscrambled
libdvdcss debug: title key is 00:00:00:00:00
libdvdcss debug: unencrypted title
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x0032abc8
libdvdcss debug: getting title key the classic way
libdvdcss debug: requesting AGID
libdvdcss debug: drive authenticated, using variant 0
libdvdcss debug: authentication established
libdvdcss debug: ioctl ReadTitleKey failed (region mismatch?)
libdvdcss debug: GetASF not authenticated, ASF=0
libdvdcss debug: lost ASF requesting title key
libdvdcss debug: resetting drive and cracking title key
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 with player keys
libdvdcss debug: decrypted disc key is 2e:97:32:1f:22
libdvdcss debug: cracking title key
libdvdcss error: read error
libdvdcss debug: read error, resorting to secret arcanes to recover
libdvdcss debug: opening target `/dev/dvd'
libdvdcss debug: using libc for access
libdvdcss error: read error
libdvdcss debug: end of title reached
libdvdcss debug: 0 of 0 attempts successful, 0 of 2 blocks scrambled
libdvdcss debug: file was unscrambled
libdvdcss debug: title key is 00:00:00:00:00
libdvdcss debug: unencrypted title
libdvdread: Elapsed time 0
libdvdread: Found 2 VTS's
libdvdread: Elapsed time 5
I was using version 1.2.8 (The rpm version is 1.2.8-0.lvn.5.4 from livna). I tried upgrading to version 1.2.9 building a new rpm from the source rpm downloaded from videolan.org. Still no success with decryption. Now I got some additional lines in the log:
Code:
libdvdcss debug: cannot open /dev/rdvd (No such file or directory)
libdvdcss error: failed to open raw device, but continuing
Are they significant? Here's the full output:
Code:
This is xine (X11 gui) - a free video player v0.99.4.
(c) 2000-2004 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 7f:25:47:70:5b
libdvdcss debug: trying player key 01:af:e3:12:80
libdvdcss debug: decrypted disc key is 2e:97:32:1f:22
libdvdcss debug: using CSS key cache dir: /home/daniel/.dvdcss//BREAKFAST_AT_TIFFANYS-2000072116542800-2e97321f22/
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 0x00000134
libdvdcss debug: getting title key at block 308 the classic way
libdvdcss debug: requesting AGID
libdvdcss debug: drive authenticated, using variant 0
libdvdcss debug: authentication established
libdvdcss debug: ioctl ReadTitleKey failed (region mismatch?)
libdvdcss debug: GetASF not authenticated, ASF=0
libdvdcss debug: lost ASF requesting title key
libdvdcss debug: resetting drive and cracking title key
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 7f:25:47:70:5b
libdvdcss debug: trying player key 01:af:e3:12:80
libdvdcss debug: decrypted disc key is 2e:97:32:1f:22
libdvdcss debug: cracking title key at block 308
libdvdcss debug: non MPEG block found at block 395 (end of title)
libdvdcss debug: end of title reached
libdvdcss debug: successful attempts 0/0, scrambled blocks 0/87
libdvdcss debug: no scrambled sectors found
libdvdcss debug: title key is 00:00:00:00:00
libdvdcss debug: unencrypted title
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x000001d4
libdvdcss debug: getting title key at block 468 the classic way
libdvdcss debug: requesting AGID
libdvdcss debug: drive authenticated, using variant 0
libdvdcss debug: authentication established
libdvdcss debug: ioctl ReadTitleKey failed (region mismatch?)
libdvdcss debug: GetASF not authenticated, ASF=0
libdvdcss debug: lost ASF requesting title key
libdvdcss debug: resetting drive and cracking title key
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 7f:25:47:70:5b
libdvdcss debug: trying player key 01:af:e3:12:80
libdvdcss debug: decrypted disc key is 2e:97:32:1f:22
libdvdcss debug: cracking title key at block 468
libdvdcss error: read error
libdvdcss debug: read error at block 470, resorting to secret arcanes to recoverlibdvdcss debug: opening target `/dev/dvd'
libdvdcss debug: using libc for access
libdvdcss error: read error
libdvdcss debug: end of title reached
libdvdcss debug: successful attempts 0/0, scrambled blocks 0/2
libdvdcss debug: no scrambled sectors found
libdvdcss debug: title key is 00:00:00:00:00
libdvdcss debug: unencrypted title
libdvdread: Elapsed time 4
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x00001449
libdvdcss debug: getting title key at block 5193 the classic way
libdvdcss debug: requesting AGID
libdvdcss debug: drive authenticated, using variant 0
libdvdcss debug: authentication established
libdvdcss debug: ioctl ReadTitleKey failed (region mismatch?)
libdvdcss debug: GetASF not authenticated, ASF=0
libdvdcss debug: lost ASF requesting title key
libdvdcss debug: resetting drive and cracking title key
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 7f:25:47:70:5b
libdvdcss debug: trying player key 01:af:e3:12:80
libdvdcss debug: decrypted disc key is 2e:97:32:1f:22
libdvdcss debug: cracking title key at block 5193
libdvdcss error: read error
libdvdcss debug: read error at block 5194, resorting to secret arcanes to recover
libdvdcss debug: opening target `/dev/dvd'
libdvdcss debug: using libc for access
libdvdcss error: read error
libdvdcss debug: end of title reached
libdvdcss debug: successful attempts 0/0, scrambled blocks 0/1
libdvdcss debug: no scrambled sectors found
libdvdcss debug: title key is 00:00:00:00:00
libdvdcss debug: unencrypted title
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_0.VOB at 0x0032ab71
libdvdcss debug: getting title key at block 3320689 the classic way
libdvdcss debug: requesting AGID
libdvdcss debug: drive authenticated, using variant 0
libdvdcss debug: authentication established
libdvdcss debug: ioctl ReadTitleKey failed (region mismatch?)
libdvdcss debug: GetASF not authenticated, ASF=0
libdvdcss debug: lost ASF requesting title key
libdvdcss debug: resetting drive and cracking title key
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 7f:25:47:70:5b
libdvdcss debug: trying player key 01:af:e3:12:80
libdvdcss debug: decrypted disc key is 2e:97:32:1f:22
libdvdcss debug: cracking title key at block 3320689
libdvdcss error: read error
libdvdcss debug: read error at block 3320690, resorting to secret arcanes to recover
libdvdcss debug: opening target `/dev/dvd'
libdvdcss debug: using libc for access
libdvdcss error: read error
libdvdcss debug: end of title reached
libdvdcss debug: successful attempts 0/0, scrambled blocks 0/1
libdvdcss debug: no scrambled sectors found
libdvdcss debug: title key is 00:00:00:00:00
libdvdcss debug: unencrypted title
libdvdread: Elapsed time 1
libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x0032abc8
libdvdcss debug: getting title key at block 3320776 the classic way
libdvdcss debug: requesting AGID
libdvdcss debug: drive authenticated, using variant 0
libdvdcss debug: authentication established
libdvdcss debug: ioctl ReadTitleKey failed (region mismatch?)
libdvdcss debug: GetASF not authenticated, ASF=0
libdvdcss debug: lost ASF requesting title key
libdvdcss debug: resetting drive and cracking title key
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 7f:25:47:70:5b
libdvdcss debug: trying player key 01:af:e3:12:80
libdvdcss debug: decrypted disc key is 2e:97:32:1f:22
libdvdcss debug: cracking title key at block 3320776
libdvdcss error: read error
libdvdcss debug: read error at block 3320778, resorting to secret arcanes to recover
libdvdcss debug: opening target `/dev/dvd'
libdvdcss debug: using libc for access
libdvdcss error: read error
libdvdcss debug: end of title reached
libdvdcss debug: successful attempts 0/0, scrambled blocks 0/2
libdvdcss debug: no scrambled sectors found
libdvdcss debug: title key is 00:00:00:00:00
libdvdcss debug: unencrypted title
libdvdread: Elapsed time 0
libdvdread: Found 2 VTS's
libdvdread: Elapsed time 5
libdvdcss error: read error
libdvdcss error: read error
My default packages also didn't work that came with install eventhough I installed through HTTP.
I updated then from custom repositories: xine and kaffeine and installed the latest divx, xvid, w32codecs,
and libdvdcss2 from videolan.org. Logout, login and now I play everything. Sorry, above that can't help
Now after I tried it in windows it magically seems to work. I guess starting windows media player automatically sets the region code to 2 in the hardware. After I removed all cached keys
Code:
rm -R ~/.dvdcss/
it worked to play my region 2 DVDs.
When I ran regionset after starting windows media player I got the following output:
Code:
[root@wasp regionset-0.1]# ./regionset
regionset version 0.1 -- reads/sets region code on DVD drives
Current Region Code settings:
RPC Phase: II
type: SET
vendor resets available: 4
user controlled changes resets available: 4
drive plays discs from region(s): 2, mask=0xFD
I didn't log the result of running regionset before starting media player, but I'm pretty sure the two last lines showed:
Code:
user controlled changes resets available: 5
drive plays discs from region(s): , mask=0xFF
Does all this mean that I still can't play DVDs from other regions? Unfortuantely I don't have any imported DVDs to test (its more a matter of principle).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.