DVD seek fails
Johan Brannlund <[email protected]> Sat, 17 Dec 2005 07:03:48 +0000
| Newsgroups | gmane.comp.video.ogle.devel |
|---|---|
| Message-ID | <1134803028l.20201l.1l@jupiter> |
A couple of months back, I wrote to the list since I had trouble with reading some dvd's (see http://lists.berlios.de/pipermail/ogle-devel/2005-August/thread.html). Somehow I got things to work, but I'm not sure what I did. A couple of weeks ago, things broke again and again I don't know what happened. New kernel, maybe... The basic problem is that playing dvd's after block 2^21 does not work. In other words, the first few tracks on a dvd work but the last ones don't work. Back in August, I suspected some 64-bit error in the libraries to be the culprit, but now I have a different theory: I've noticed that my dvd drive, a Teac dvd writer, is picky about what sorts of commands it accepts. For instance, a standard cdrom eject command does not work, but a scsi eject does. I'm beginning to suspect that this is related to my dvd playing problems. I've posted logs of "DVDCSS_VERBOSE=2 strace mplayer dvd://3" (plays normally) and "DVDCSS_VERBOSE=2 strace mplayer dvd://5" (fails with a seek error) on my website. The logs can be found at http://nullinfinity.org/dvd_3_works and http://nullinfinity.org/dvd_5_fails Sorry for using mplayer, but right now my copy of ogle won't display video for some reason. :) If anyone can take a look at the logs and tell me what's wrong and possibly suggest a workaround, I'd be very grateful. I think the most interesting part of the logs is this, when trying to play title 5: write(2, "libdvdcss debug: key found in ca"..., 36libdvdcss debug: key found in cache ) = 36 close(4) = 0 lseek(3, 4977293312, SEEK_SET) = -1 EINVAL (Invalid argument) write(2, "libdvdcss error: seek error\n", 28libdvdcss error: seek error ) = 28 I'm beginning to think that my drive simply doesn't like lseek with a large argument. Maybe I should ask Jens Axboe about this... Regards, Johan