Discussion:
libdvdread play_title.exe on cygwin
mehul patel
2003-06-16 19:48:32 UTC
Permalink
I successfully compiled libdvdread(libdvdread-0.9.4) with
libdvdcss(1.2.7) on cygwin on WindowsXP box.

When i try to run ./play_title.exe it gives me 'libdvdcss error: read
error'.

I tried running ifo_dump.exe and it ran fine.

Can any one point me whats wrong?

$ ./play_title.exe y:/ 1 1 1
libdvdread: Using libdvdcss version 1.2.7 for DVD access
libdvdread: Couldn't find device name.
libdvdcss debug: opening target `y://VIDEO_TS/VIDEO_TS.IFO'
libdvdcss debug: using libc for access
libdvdcss debug: using CSS key cache dir:
/home/Administrator/.dvdcss/#0000000000000000/
There are 30 titles on this DVD.
There are 19 chapters in this title.
There are 1 angles in this title.
libdvdcss debug: opening target `y://VIDEO_TS/VTS_01_0.IFO'
libdvdcss debug: using libc for access
libdvdcss debug: using CSS key cache dir:
/home/Administrator/.dvdcss/#3F01000002B77D00/
libdvdcss debug: opening target `y://VIDEO_TS/VTS_01_1.VOB'
libdvdcss debug: using libc for access
libdvdcss error: read error
libdvdcss debug: cracking title key
libdvdcss error: read error
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
libdvdcss debug: opening target `y://VIDEO_TS/VTS_01_2.VOB'
libdvdcss debug: using libc for access
libdvdcss error: read error
libdvdcss debug: cracking title key
libdvdcss error: read error
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
libdvdcss debug: opening target `y://VIDEO_TS/VTS_01_3.VOB'
libdvdcss debug: using libc for access
libdvdcss error: read error
libdvdcss debug: cracking title key
libdvdcss error: read error
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
libdvdcss debug: opening target `y://VIDEO_TS/VTS_01_4.VOB'
libdvdcss debug: using libc for access
libdvdcss error: read error
libdvdcss debug: cracking title key
libdvdcss error: read error
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
libdvdcss debug: opening target `y://VIDEO_TS/VTS_01_5.VOB'
libdvdcss debug: using libc for access
libdvdcss error: read error
libdvdcss debug: cracking title key
libdvdcss error: read error
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
libdvdcss debug: opening target `y://VIDEO_TS/VTS_01_6.VOB'
libdvdcss debug: using libc for access
libdvdcss error: read error
libdvdcss debug: cracking title key
libdvdcss error: read error
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
libdvdcss error: read error
Read failed for block 0


--
Thanks,
Mehul
Sam Hocevar
2003-06-16 23:39:43 UTC
Permalink
Post by mehul patel
Can any one point me whats wrong?
$ ./play_title.exe y:/ 1 1 1
libdvdread: Using libdvdcss version 1.2.7 for DVD access
libdvdread: Couldn't find device name.
This is wrong. If libdvdread cannot find the device name, it will
ask libdvdcss to directly read the files, which will fail if the drive
is not authenticated. Why did you add a trailing / to y: ?
--
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>
Gildas Bazin
2003-06-16 22:02:06 UTC
Permalink
Post by mehul patel
I successfully compiled libdvdread(libdvdread-0.9.4) with
libdvdcss(1.2.7) on cygwin on WindowsXP box.
When i try to run ./play_title.exe it gives me 'libdvdcss error: read
error'.
I tried running ifo_dump.exe and it ran fine.
Can any one point me whats wrong?
$ ./play_title.exe y:/ 1 1 1
libdvdread: Using libdvdcss version 1.2.7 for DVD access
libdvdread: Couldn't find device name.
libdvdcss debug: opening target `y://VIDEO_TS/VIDEO_TS.IFO'
libdvdcss debug: using libc for access
The libc access shouldn't be triggered. libdvdread should ask libdvdcss to
open the whole dvd device and not individual files.

Try to use "./play_title.exe y: 1 1 1". If this doesn't work than the
problem is likely with libdvdread which doesn't recognize the "y:" syntax.

--
Gildas
--
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>
mehul patel
2003-06-17 16:25:49 UTC
Permalink
Hi,

I tried removing / from command line. It still gave me same error.
I was using DVD from other computer, so y:/ was actually a network drive.
Then i switched to the machine itself which had DVD drive.

And tried \\.\e: and it worked, i got ahead some steps , it still displays
read error. Here is the output. I am not sure if setting region would help,
if it helps how can i set region of DVD drive. Or is there anything else
i need to do?
play_title.exe \\.\e: 1 1 1
libdvdread: Using libdvdcss version 1.2.6 for DVD access
libdvdcss debug: opening target `\\.\e:'
libdvdcss debug: using libc for access
There are 1 titles on this DVD.
There are 24 chapters in this title.
There are 2 angles in this 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 0x00000120
libdvdcss debug: cracking title key
libdvdcss debug: 0 of 0 attempts successful, 0 of 2000 blocks scrambled
libdvdcss debug: file was unscrambled
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_01_0.VOB at 0x00004a6a
libdvdcss debug: cracking title key
libdvdcss debug: 1 of 1 attempts successful, 1 of 2 blocks scrambled
libdvdcss debug: vts key initialized
libdvdcss debug: title key is c0:05:c8:1c:35
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x0000e60d
libdvdcss debug: cracking title key
libdvdcss error: read error
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_1.VOB (0x0000e60d)!!
libdvdread: Elapsed time 0
libdvdread: Found 1 VTS's
libdvdread: Elapsed time 1
libdvdcss debug: cracking title key
libdvdcss error: read error
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
libdvdcss error: read error
Read failed for block 0


Mehul


----- Original Message -----
From: "Gildas Bazin" <***@netcourrier.com>
To: <libdvdcss-***@videolan.org>
Sent: Monday, June 16, 2003 5:02 PM
Subject: Re: libdvdread play_title.exe on cygwin
Post by mehul patel
I successfully compiled libdvdread(libdvdread-0.9.4) with
libdvdcss(1.2.7) on cygwin on WindowsXP box.
When i try to run ./play_title.exe it gives me 'libdvdcss error: read
error'.
I tried running ifo_dump.exe and it ran fine.
Can any one point me whats wrong?
$ ./play_title.exe y:/ 1 1 1
libdvdread: Using libdvdcss version 1.2.7 for DVD access
libdvdread: Couldn't find device name.
libdvdcss debug: opening target `y://VIDEO_TS/VIDEO_TS.IFO'
libdvdcss debug: using libc for access
The libc access shouldn't be triggered. libdvdread should ask libdvdcss to
open the whole dvd device and not individual files.
Try to use "./play_title.exe y: 1 1 1". If this doesn't work than the
problem is likely with libdvdread which doesn't recognize the "y:" syntax.
--
Gildas
--
This is the libdvdcss-devel mailing-list, see
http://developers.videolan.org/
To unsubscribe, please read http://developers.videolan.org/lists.html
--
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
2003-06-17 16:48:50 UTC
Permalink
Post by mehul patel
I tried removing / from command line. It still gave me same error.
I was using DVD from other computer, so y:/ was actually a network drive.
You will never get it to work properly on a network drive. The CSS
descrambling process requires authentication operations on the drive
that are not available through the Window network device scheme.

To authenticate on the drive, try to run play_title.exe once on the
remote box, and maybe the remote box will be able to do it.
Post by mehul patel
Then i switched to the machine itself which had DVD drive.
play_title.exe \\.\e: 1 1 1
What are those extra \\.\ for? Use "play_title.exe e: 1 1 1" directly.
Post by mehul patel
libdvdread: Using libdvdcss version 1.2.6 for DVD access
libdvdcss debug: opening target `\\.\e:'
libdvdcss debug: using libc for access
Each time you will see "using libc for access" it will mean that
libdvdcss does not recognize its target like a drive but like a file,
and it will fail.
--
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>
mehul patel
2003-06-17 18:44:48 UTC
Permalink
If I dont use \\.\ i get output as follows.
Post by Sam Hocevar
play_title.exe e: 1 1 1
libdvdread: Using libdvdcss version 1.2.6 for DVD access
libdvdread: Couldn't find device name.
libdvdcss debug: opening target `e:/VIDEO_TS/VIDEO_TS.IFO'
libdvdcss debug: using libc for access
There are 1 titles on this DVD.
There are 24 chapters in this title.
There are 2 angles in this title.
libdvdcss debug: opening target `e:/VIDEO_TS/VTS_01_0.IFO'
libdvdcss debug: using libc for access
libdvdcss debug: opening target `e:/VIDEO_TS/VTS_01_1.VOB'
libdvdcss debug: using libc for access
libdvdcss debug: cracking title key
libdvdcss error: read error
....

Can you tell me why it couldnot find device name?
'couldnt find device name' comes fromlibdvdread dvd_reader.c,
and i donot understand what it means.

Also note that e: leads to libc for access , print statement is in device.c,
and as i understand i am compiling under cygwin, which has config.h,
and it has define for WIN32.

So what could be wrong?

Mehul.

----- Original Message -----
From: "Sam Hocevar" <***@zoy.org>
To: <libdvdcss-***@videolan.org>
Sent: Tuesday, June 17, 2003 11:48 AM
Subject: Re: libdvdread play_title.exe on cygwin
Post by Sam Hocevar
Post by mehul patel
I tried removing / from command line. It still gave me same error.
I was using DVD from other computer, so y:/ was actually a network drive.
You will never get it to work properly on a network drive. The CSS
descrambling process requires authentication operations on the drive
that are not available through the Window network device scheme.
To authenticate on the drive, try to run play_title.exe once on the
remote box, and maybe the remote box will be able to do it.
Post by mehul patel
Then i switched to the machine itself which had DVD drive.
play_title.exe \\.\e: 1 1 1
What are those extra \\.\ for? Use "play_title.exe e: 1 1 1" directly.
Post by mehul patel
libdvdread: Using libdvdcss version 1.2.6 for DVD access
libdvdcss debug: opening target `\\.\e:'
libdvdcss debug: using libc for access
Each time you will see "using libc for access" it will mean that
libdvdcss does not recognize its target like a drive but like a file,
and it will fail.
--
Sam.
--
This is the libdvdcss-devel mailing-list, see
http://developers.videolan.org/
Post by Sam Hocevar
To unsubscribe, please read http://developers.videolan.org/lists.html
--
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
2003-06-18 00:07:51 UTC
Permalink
Post by mehul patel
Post by Sam Hocevar
play_title.exe e: 1 1 1
libdvdread: Couldn't find device name.
Can you tell me why it couldnot find device name?
'couldnt find device name' comes fromlibdvdread dvd_reader.c,
and i donot understand what it means.
libdvdread needs some extra magic to guess that e: is a drive name.
Post by mehul patel
Also note that e: leads to libc for access , print statement is in device.c,
and as i understand i am compiling under cygwin, which has config.h,
and it has define for WIN32.
It's libdvdread which needs fixing (in dvdread/dvd_reader.c). I
used to have a local patch for this, but I somewhat lost sync with the
libdvdread CVS so it is pretty useless as is, but I'll eventually get
it together again. But I think anyone can patch libdvdread so that it
recognizes "[a-zA-Z]:" as a drive name.
--
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>
g***@altern.org
2003-06-18 07:50:09 UTC
Permalink
There is an up-to-date win32 patch for the latest libdvdread in http://www.videolan.org/pub/testing/contrib/

--
Gildas
--
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>
H}kan Hjort
2003-06-18 10:17:48 UTC
Permalink
Post by g***@altern.org
There is an up-to-date win32 patch for the latest libdvdread in http://www.videolan.org/pub/testing/contrib/
Ok, I applied most of that patch. Why must the libdvdcss link tests
be disabled for WIN32?

And how does stat work on windows? Is it not possible to use stat?
Not possible to stat a device?
--
HÃ¥kan Hjort
--
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>
Gildas Bazin
2003-06-19 20:18:16 UTC
Permalink
Post by H}kan Hjort
Post by g***@altern.org
There is an up-to-date win32 patch for the latest libdvdread in
http://www.videolan.org/pub/testing/contrib/
Post by H}kan Hjort
Ok, I applied most of that patch. Why must the libdvdcss link tests
be disabled for WIN32?
It is because the test is done on an exported variable and mingw doesn't
seem to be exporting variables by default. I guess the right fix would be
to find the compiler flag that enables exporting variables.
Post by H}kan Hjort
And how does stat work on windows? Is it not possible to use stat?
Not possible to stat a device?
stat() isn't fully implemented on win32. It doesn't work for devices. There
surely is a way to implement a proper check using the win32 native API but
I honestly am too lazy to do it. And anyway on win32, drive names uses the
"x:" syntax so it should be a very good heuristic to use this rule.

Thanks for applying the patch,

--
Gildas

PS: btw, could you also add a "static" keyword in front of the
gettimeofday() wrapper for win32 ?
--
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...