View Full Version : C/O Lightning UK
doomDVD
2nd October 2003, 18:18
hey lightning-uk. i am having some troubles last time we spoke i could not get my udf parser to calculate the LBA for a file on the DVD disk, i have now fixed this thanx to your previous help.
i have now finished coding my SPTI key finder but i cannot find away to calculate the LBA for a file on the DVD-disk without using aspi functions i.e UDF. i noticed that smart-ripper can do this but the code seems to be missing from the archive. i also noticed that DVD-decrypter uses SPTI for key finding.
can you please help.
kind regards - thanx in advance
doomDVD
LIGHTNING UK!
2nd October 2003, 18:20
Sorry, Ive not idea what you're talking about!
UDF is nothing to do with ASPI. Whatever you're doing in ASPI can also be done in SPTI.
doomDVD
3rd October 2003, 00:29
sorry let me explain more i was very vague.
i have ported over libdvdcss to windows, so that i can use it in my own programs. now libdvdcss uses the SPTI, every function ported across successfully apart from one,the problem is they have a function to retreive the LBA for a given file that will not port over, the source code for that function is listed bellow.
-----------------------
#ifndef FIBMAP
#define FIBMAP 1
#endif
int PathToLBA(char *filename)
{
int fd = open(argv[1], O_RDONLY);
if(fd < 0)
{
printf("unable to open file: %s\n", strerror(errno));
return(-1);
}
int lba = 0;
if(ioctl(fd, FIBMAP, &lba) < 0)
{
printf("ioctl failed: %s\n", strerror(errno));
return(-1);
}
return(0);
}
----------------------
what i need is a way to get the LBA for a given file using the SPTI.
can you please help. i hope i have explained it a bit better this time.
> thanx for your time,
kind regards
doomDVD
LIGHTNING UK!
3rd October 2003, 01:38
Ok, how do you get the LBA via aspi? All you're doing is reading blocks off the dvd arent you, and then parsing the UDF filesystem to get the lba.
The problem you're having with the SPTI code is the down to the 'FIBMAP' bit which appears to map a file to a sector on the disc.
I think you need to forget about that totally and just look towards doing a small conversion from your aspi code to make it work with spti too.
Just do some more research. I've spent years learning what I know now and I really think you'd benefit from it. Perhaps stop just stealing code and try to write some of your own?
When programmed correctly, its easy to make a program use any 'interface' you like.
Do you think I have 4 different variations of functions within dvd decrypter to support the 4 interface types that I do? Ermmm no :)
doomDVD
3rd October 2003, 13:06
ok lightning, thanx for the help
kind regards
wain.
doomDVD
6th October 2003, 23:21
thanx for the hints lightning, after downloading many docs on SPTI i managed to code up a few simple functions to do exactly what i needed. thanx again
regards
doomDVD.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.