cddb-like database for dvd's ?

Alexander Neundorf neundorf at kde.org
Wed Nov 19 19:43:50 GMT 2003


Hi,

does something like this exist ?

It could feature the list of titles and chapters, their length, the dvd title, 
and maybe some comments (maybe even on a per-chapter basis).

Something related I found here:
http://www.cis.ohio-state.edu/~cmcurtin/dvd/dvd_play/src/dvddb/dvddb.c
Does the mentioned address 0x10049 represent something unique ?

If, so, then a key like this could be used:

QString getDvdId(const char* device) {
   QString id;
   int fd=open(device, O_RDONLY | O_NONBLOCK);
   if (fd<0)
      return id;
   char text1[33];
   lseek(fd, 0x10019, SEEK_SET);
   read(fd,text1,32);
   char text2[9];
   text1[32]='\0';
   for (int i=0; i<32; i++) {
      if (!isprint(text1[i])) {
         text1[i]='\0';
         break;
      }
   }
   lseek(fd, 0x10049, SEEK_SET);
   read(fd,text2,8);
   text2[8]='\0';
   for (int i=0; i<8; i++) {
      if (!isprint(text2[i])) {
         text2[i]='\0';
         break;
      }
   }
   close(fd);
   return id;
}

Bye
Alex
-- 
Work: alexander.neundorf at jenoptik.com - http://www.jenoptik-los.de
Home: neundorf at kde.org                - http://www.kde.org
      alex at neundorf.net               - http://www.neundorf.net



More information about the kde-multimedia mailing list