libcdio-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Libcdio-help] Question about adding disc id support.


From: Rocky Bernstein
Subject: Re: [Libcdio-help] Question about adding disc id support.
Date: Sat, 5 Nov 2011 01:11:35 -0400

I took the C++ discid code and ported it to C with libcdio's routines. This has now been checked into libcdio's "example" directory in git https://savannah.gnu.org/git/?group=libcdio

The code in libcdio is just as short (if not shorter) and about just as quick. 

On Fri, Nov 4, 2011 at 8:43 AM, Stef Bon <address@hidden> wrote:
2011/11/4 Leon Merten Lohse <address@hidden>:

>> I've found an utility which reads various important data very quickly:
>>
>> http://discid.sourceforge.net/
>
> This utility gives you the cddb disc id. It is not only possible to do
> this with libcdio, it is already implemented in cd-info. cd-info uses
> that string to query the freedb/cddb server.
> Compare cd-info output line beginng with `Disc ID'.
>
> It get the information it needs from the toc (table of content) located in
> the discs lead-in area.
> I cannot think of a faster method but normally that is very fast.

Hi Leon,

I've seen in the the ouput of cd-info this disc id.

But my issue is that the command cd-info takes a long time (some
seconds) to finish.

Now I use the output of cd-info  to generate an unique id for an audio cd.

But has to be done before the fs is mounted, causing extra delay.

I been looking for such an id (previous message on this list some
months ago), till I found this discid yesterday, and it's exactly what
I want. It generates an unique id, which has also some sense in the
cddb world, and this utility does it very fast!

So the point is, can cd-info give the same output, and also that fast as discid?

(the information is thus not only the hexnumber, but also, the number
of tracks, and the startsectors.. and total number of seconds)

Stef

_______________________________________________
Libcdio-help mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/libcdio-help


reply via email to

[Prev in Thread] Current Thread [Next in Thread]