Discussion:
can't seek to block 256 + kernel 2.6 (test4)
Jörn Dreyer
2004-01-07 15:44:23 UTC
Permalink
Hmm, i read through all the mails and various other places, and now I dont
know how to watch DVDs with linux anymore :(

I used libdvdcss 1.2.8 (latest CVS) but still get the can't seek to block
256
error

[code]
# mplayer dvd://1
MPlayer 1.0pre2-3.3.2 (C) 2000-2003 MPlayer Team

CPU: Intel Pentium 4/Xeon/Celeron Northwood 2410 MHz (Family: 8, Stepping:
4)

Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Reading config file /usr/local/etc/mplayer/mplayer.conf: Datei oder
Verzeichnis nicht gefunden
Reading config file /root/.mplayer/config
Reading /root/.mplayer/codecs.conf: Can't open '/root/.mplayer/codecs.conf':
Datei oder Verzeichnis nicht gefunden
Reading /usr/local/etc/mplayer/codecs.conf: Can't open
'/usr/local/etc/mplayer/codecs.conf': Datei oder Verzeichnis nicht gefunden
Using built-in default codecs.conf
font: can't open file: /root/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using Linux hardware RTC timing (1024Hz).
Can't open input config file /root/.mplayer/input.conf: Datei oder
Verzeichnis nicht gefunden
Can't open input config file /usr/local/etc/mplayer/input.conf: Datei oder
Verzeichnis nicht gefunden
Falling back on default (hardcoded) input config

Playing dvd://1
libdvdread: Using libdvdcss version 1.2.8 for DVD access
Reading disc structure, please wait...
libdvdread: Can't seek to block 256
libdvdread: Can't seek to block 256
libdvdread: Can't open file VIDEO_TS.IFO.
Can't open VMG info!


Exiting... (End of file)
[/code]

When using the boot with cd trick I can watch maybe the first chapter or
something, then this happens:

[code]
# mplayer dvd://1
MPlayer 1.0pre2-3.3.2 (C) 2000-2003 MPlayer Team

CPU: Intel Pentium 4/Xeon/Celeron Northwood 2410 MHz (Family: 8, Stepping:
4)

Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Reading config file /usr/local/etc/mplayer/mplayer.conf: Datei oder
Verzeichnis nicht gefunden
Reading config file /root/.mplayer/config
Reading /root/.mplayer/codecs.conf: Can't open '/root/.mplayer/codecs.conf':
Datei oder Verzeichnis nicht gefunden
Reading /usr/local/etc/mplayer/codecs.conf: Can't open
'/usr/local/etc/mplayer/codecs.conf': Datei oder Verzeichnis nicht gefunden
Using built-in default codecs.conf
font: can't open file: /root/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using Linux hardware RTC timing (1024Hz).
Can't open input config file /root/.mplayer/input.conf: Datei oder
Verzeichnis nicht gefunden
Can't open input config file /usr/local/etc/mplayer/input.conf: Datei oder
Verzeichnis nicht gefunden
Falling back on default (hardcoded) input config

Playing dvd://1
libdvdread: Using libdvdcss version 1.2.8 for DVD access
Reading disc structure, please wait...
There are 4 titles on this DVD.
There are 28 chapters in this DVD title.
There are 1 angles in this DVD title.

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 0x00000138
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x00007574
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x00068efb
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_0.VOB at 0x0036d5d1
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x0036d5d6
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x0037dcfa
libdvdread: Elapsed time 0
libdvdread: Found 3 VTS's
libdvdread: Elapsed time 0
DVD successfully opened.
libdvdread: Can't seek to block 429819
libdvdread: Can't seek to block 429819
libdvdread: Can't seek to block 429819
libdvdread: Can't seek to block 429819
libdvdread: Can't seek to block 429819
libdvdread: Can't seek to block 429819
libdvdread: Can't seek to block 429819
libdvdread: Can't seek to block 429819
libdvdread: Can't seek to block 429819
libdvdread: Can't seek to block 429819
libdvdread: Can't seek to block 429819
libdvdread: Can't seek to block 429819
libdvdread: Can't seek to block 429819
libdvdread: Can't seek to block 429819
libdvdread: Can't seek to block 429819
libdvdread: Can't seek to block 429819
libdvdread: Can't seek to block 429819
libdvdread: Can't seek to block 429819


Exiting... (End of file)
[/code]

a region free dvd will result in the following (like only the first chapter)

[code]
# xine
Dies ist xine (X11 gui) - Ein freier Video-Player v0.9.23.
(c) 2000-2003 Das xine Projektteam.
libdvdnav: Using dvdnav version 1-rc3 from http://xine.sf.net
libdvdread: Using libdvdcss version 1.2.8 for DVD access
libdvdnav: DVD Title: COWBOY2
libdvdnav: DVD Serial Number: 3C5AE9F1___MVB__
libdvdnav: DVD Title (Alternative):
libdvdnav: Unable to find map file '/home/dreyer/.dvdnav/COWBOY2.map'
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2
3 4 5 6 7 8

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 0x00000157
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x000001ac
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x0001d334
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_0.VOB at 0x0001d3f6
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x0001d42f
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_0.VOB at 0x00340a62
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x00340a9b
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_04_0.VOB at 0x00345af2
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_04_1.VOB at 0x00345b2b
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_05_0.VOB at 0x0034c345
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_05_1.VOB at 0x0034c37e
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_06_0.VOB at 0x0034fb1f
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_06_1.VOB at 0x0034fb58
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_07_0.VOB at 0x0035e9ee
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_07_1.VOB at 0x0035ea27
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_08_0.VOB at 0x00388b9f
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_08_1.VOB at 0x00388bd8
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_09_0.VOB at 0x003a1571
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_09_1.VOB at 0x003a15aa
libdvdread: Elapsed time 0
libdvdread: Found 9 VTS's
libdvdread: Elapsed time 0
libdvdread: Can't seek to block 360854
[/code]

please be patient with me ;-)

Jörn Dreyer
--
This is the libdvdcss-devel mailing-list, see http://developers.videolan.org/
To unsubscribe, please read http://developers.videolan.org/lists.html
If you are in trouble, please contact <***@videolan.org>
Sam Hocevar
2004-01-07 16:06:23 UTC
Permalink
Post by Jörn Dreyer
I used libdvdcss 1.2.8 (latest CVS) but still get the can't seek to block
256 error
Is that since you switched to kernel 2.6? Does it work again with a
2.4 kernel?

For your logs to be useful, please export the environment variable
DVDCSS_VERBOSE=2 so that libdvdcss prints its debug messages. Also, a
log of potential DVD errors from "dmesg" would be useful.

Regards,
--
Sam.
--
This is the libdvdcss-devel mailing-list, see http://developers.videolan.org/
To unsubscribe, please read http://developers.videolan.org/lists.html
If you are in trouble, please contact <***@videolan.org>
Jörn Dreyer
2004-01-07 17:55:12 UTC
Permalink
Post by Sam Hocevar
Is that since you switched to kernel 2.6? Does it work again with a
2.4 kernel?
yep, works with 2.4.22 + ide-scsi (in 2.6 ide-scsi is deprecated, so i
dont use it there)
Post by Sam Hocevar
For your logs to be useful, please export the environment variable
DVDCSS_VERBOSE=2 so that libdvdcss prints its debug messages. Also, a
log of potential DVD errors from "dmesg" would be useful.
[code]
# DVDCSS_VERBOSE=2 mplayer dvd://1
MPlayer 1.0pre2-3.3.2 (C) 2000-2003 MPlayer Team

CPU: Intel Pentium 4/Xeon/Celeron Northwood 2410 MHz (Family: 8,
Stepping: 4)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Reading config file /usr/local/etc/mplayer/mplayer.conf: Datei oder
Verzeichnis nicht gefunden
Reading config file /home/dreyer/.mplayer/config
Reading /home/dreyer/.mplayer/codecs.conf: Can't open
'/home/dreyer/.mplayer/codecs.conf': Datei oder Verzeichnis nicht gefunden
Reading /usr/local/etc/mplayer/codecs.conf: Can't open
'/usr/local/etc/mplayer/codecs.conf': Datei oder Verzeichnis nicht gefunden
Using built-in default codecs.conf
font: can't open file: /home/dreyer/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Failed to open /dev/rtc: Keine Berechtigung (mplayer should be setuid
root or /dev/rtc should be readable by the user.)
Using usleep() timing
Can't open input config file /home/dreyer/.mplayer/input.conf: Datei
oder Verzeichnis nicht gefunden
Can't open input config file /usr/local/etc/mplayer/input.conf: Datei
oder Verzeichnis nicht gefunden
Falling back on default (hardcoded) input config

Playing dvd://1
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: trying player key 01:af:e3:12:80
libdvdcss debug: decrypted disc key is 47:e5:8f:42:86
Reading disc structure, please wait...
libdvdcss error: seek error
libdvdread: Can't seek to block 256
libdvdcss error: seek error
libdvdread: Can't seek to block 256
libdvdread: Can't open file VIDEO_TS.IFO.
Can't open VMG info!


Exiting... (End of file)
[/code]

see attached dmesg


im off to the local Linux User Group

will be back in a few hours... ;)

thx in advance

butonic
aka Jörn Dreyer
Jörn Dreyer
2004-01-08 20:47:01 UTC
Permalink
just in case you can see something useful in an strace ;-)
btw, I installed the latest kernel 2.6.1-rc3, in case sth was messed up with
pre4
---
# DVDCSS_VERBOSE=2 strace mplayer dvd://1
<snip>
write(2, "libdvdread: Using libdvdcss vers"..., 57libdvdread: Using libdvdcss
version 1.2.8 for DVD access
) = 57
getuid32() = 0
socket(PF_UNIX, SOCK_STREAM, 0) = 7
connect(7, {sa_family=AF_UNIX, path="/var/run/.nscd_socket"}, 110) = -1
ENOENT (No such file or directory)
close(7) = 0
open("/etc/nsswitch.conf", O_RDONLY) = 7
fstat64(7, {st_mode=S_IFREG|0644, st_size=465, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x4053b000
read(7, "# /etc/nsswitch.conf\n#\n# Example"..., 4096) = 465
read(7, "", 4096) = 0
close(7) = 0
munmap(0x4053b000, 4096) = 0
open("/etc/ld.so.cache", O_RDONLY) = 7
fstat64(7, {st_mode=S_IFREG|0644, st_size=28312, ...}) = 0
old_mmap(NULL, 28312, PROT_READ, MAP_PRIVATE, 7, 0) = 0x4053b000
close(7) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
open("/lib/tls/libnss_compat.so.2", O_RDONLY) = 7
read(7, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \20\0\000"..., 512)
= 512
fstat64(7, {st_mode=S_IFREG|0644, st_size=29660, ...}) = 0
old_mmap(NULL, 32756, PROT_READ|PROT_EXEC, MAP_PRIVATE, 7, 0) = 0x4054b000
old_mmap(0x40552000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 7,
0x6000) = 0x40552000
close(7) = 0
munmap(0x4053b000, 28312) = 0
open("/etc/ld.so.cache", O_RDONLY) = 7
fstat64(7, {st_mode=S_IFREG|0644, st_size=28312, ...}) = 0
old_mmap(NULL, 28312, PROT_READ, MAP_PRIVATE, 7, 0) = 0x4053b000
close(7) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
open("/lib/tls/libnss_nis.so.2", O_RDONLY) = 7
read(7, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \32\0\000"..., 512)
= 512
fstat64(7, {st_mode=S_IFREG|0644, st_size=34772, ...}) = 0
old_mmap(NULL, 38032, PROT_READ|PROT_EXEC, MAP_PRIVATE, 7, 0) = 0x40553000
old_mmap(0x4055c000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 7,
0x8000) = 0x4055c000
close(7) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
open("/lib/tls/libnss_files.so.2", O_RDONLY) = 7
read(7, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000\33\0"..., 512) =
512
fstat64(7, {st_mode=S_IFREG|0644, st_size=35108, ...}) = 0
old_mmap(NULL, 38488, PROT_READ|PROT_EXEC, MAP_PRIVATE, 7, 0) = 0x4055d000
old_mmap(0x40566000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 7,
0x8000) = 0x40566000
close(7) = 0
munmap(0x4053b000, 28312) = 0
open("/etc/passwd", O_RDONLY) = 7
fcntl64(7, F_GETFD) = 0
fcntl64(7, F_SETFD, FD_CLOEXEC) = 0
_llseek(7, 0, [0], SEEK_CUR) = 0
fstat64(7, {st_mode=S_IFREG|0644, st_size=967, ...}) = 0
mmap2(NULL, 967, PROT_READ, MAP_SHARED, 7, 0) = 0x4053b000
_llseek(7, 967, [967], SEEK_SET) = 0
munmap(0x4053b000, 967) = 0
close(7) = 0
write(2, "libdvdcss debug: ", 17libdvdcss debug: ) = 17
write(2, "opening target `/dev/dvd\'", 25opening target `/dev/dvd') = 25
write(2, "\n", 1
) = 1
write(2, "libdvdcss debug: ", 17libdvdcss debug: ) = 17
write(2, "using libc for access", 21using libc for access) = 21
write(2, "\n", 1
) = 1
open("/dev/dvd", O_RDONLY|O_LARGEFILE) = 7
fstat64(7, {st_mode=S_IFBLK|0662, st_rdev=makedev(22, 64), ...}) = 0
ioctl(7, 0x5390, 0xbfffb3f0) = 0
write(2, "libdvdcss debug: ", 17libdvdcss debug: ) = 17
write(2, "disc is scrambled", 17disc is scrambled) = 17
write(2, "\n", 1
) = 1
write(2, "libdvdcss debug: ", 17libdvdcss debug: ) = 17
write(2, "requesting AGID", 15requesting AGID) = 15
) = 1
ioctl(7, 0x5392, 0xbfffb310) = 0
ioctl(7, 0x5392, 0xbfffb310) = 0
ioctl(7, 0x5392, 0xbfffb310) = 0
write(2, "libdvdcss debug: ", 17libdvdcss debug: ) = 17
write(2, "drive authenticated, using varia"..., 36drive authenticated, using
variant 0) = 36
write(2, "\n", 1
) = 1
ioctl(7, 0x5392, 0xbfffb310) = 0
ioctl(7, 0x5392, 0xbfffb310) = 0
write(2, "libdvdcss debug: ", 17libdvdcss debug: ) = 17
write(2, "authentication established", 26authentication established) = 26
write(2, "\n", 1
) = 1
ioctl(7, 0x5390, 0xbfffabb0) = 0
ioctl(7, 0x5392, 0xbfffb390) = 0
write(2, "libdvdcss debug: ", 17libdvdcss debug: ) = 17
write(2, "GetASF authenticated, ASF=1", 27GetASF authenticated, ASF=1) = 27
write(2, "\n", 1
) = 1
write(2, "libdvdcss debug: ", 17libdvdcss debug: ) = 17
write(2, "decrypting disc key with player "..., 36decrypting disc key with
player keys) = 36
write(2, "\n", 1
) = 1
write(2, "libdvdcss debug: ", 17libdvdcss debug: ) = 17
write(2, "trying player key 01:af:e3:12:80", 32trying player key
01:af:e3:12:80) = 32
write(2, "\n", 1
) = 1
write(2, "libdvdcss debug: ", 17libdvdcss debug: ) = 17
write(2, "decrypted disc key is 47:e5:8f:4"..., 36decrypted disc key is
47:e5:8f:42:86) = 36
write(2, "\n", 1
) = 1
read(7, "", 2048) = 0
_llseek(7, 0, [0], SEEK_SET) = 0
write(1, "Reading disc structure, please w"..., 39Reading disc structure,
please wait...
) = 39
_llseek(7, 524288, 0xbfffba20, SEEK_SET) = -1 EINVAL (Invalid argument)
write(2, "libdvdcss error: seek error\n", 28libdvdcss error: seek error
) = 28
write(2, "libdvdread: Can\'t seek to block "..., 36libdvdread: Can't seek to
block 256
) = 36
_llseek(7, 524288, 0xbfffba20, SEEK_SET) = -1 EINVAL (Invalid argument)
write(2, "libdvdcss error: seek error\n", 28libdvdcss error: seek error
) = 28
write(2, "libdvdread: Can\'t seek to block "..., 36libdvdread: Can't seek to
block 256
) = 36
write(2, "libdvdread: Can\'t open file VIDE"..., 42libdvdread: Can't open
file VIDEO_TS.IFO.
) = 42
write(2, "Can\'t open VMG info!\n", 21Can't open VMG info!
) = 21
close(7) = 0
select(6, [0 5], NULL, NULL, {0, 0}) = 0 (Timeout)
write(1, "\n", 1
) = 1
ioctl(0, SNDCTL_TMR_START, {B38400 opost isig icanon echo ...}) = 0
write(1, "\nExiting... (End of file)\n", 26
Exiting... (End of file)
) = 26
munmap(0x4041c000, 4096) = 0
exit_group(0) = ?
--
This is the libdvdcss-devel mailing-list, see http://developers.videolan.org/
To unsubscribe, please read http://developers.videolan.org/lists.html
If you are in trouble, please contact <***@videolan.org>
Loading...