PDA

View Full Version : CD Access


Pontifex
08-23-2007, 11:35 AM
Recently I've been writing a script to search my (vast) media archive. I'm doing some backlog work now to get new media added to the archive, in preparation for upgrading the "database" I'm using.

I've run across two DVD's (of the ~4gb variety) that index EXTREMELY slowly. Up until now I've been using File::Find for simplicity, but I suspect that it's going to be slow for these and other media I add. So I did a search on CPAN for CD handling modules and if I could use them. I found this:

http://search.cpan.org/~rocky/Device-Cdio-v0.2.4/lib/Device/Cdio.pm

But it's a bit much for what I'm trying to get, I think. I'm sure I'm just after the TOC on my DVD's / CD's, but I wonder if there's a simpler way of going about it than using the CDIO package. I don't know how to extract the TOC from a CD or DVD and a simple search on google doesn't show anything more than I'm doing now.

Thanks for your advice.

--Pontifex