Unique ID for CD or DVD

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Hoang

    Unique ID for CD or DVD

    Does anyone know of an existing algorithm/module for generating a unique ID
    for a given CD or DVD? This would be something akin to CDDB where a CD is
    recognized based on its content. I could be wrong, but I think CDDB is just
    based on file size or disk size and this alone is not unique enough. If the
    solution is in Python, all the better.

    Hoang Do



  • Jarek Zgoda

    #2
    Re: Unique ID for CD or DVD

    Hoang <tr@jotsite.com > pisze:
    [color=blue]
    > Does anyone know of an existing algorithm/module for generating a unique ID
    > for a given CD or DVD? This would be something akin to CDDB where a CD is
    > recognized based on its content. I could be wrong, but I think CDDB is just
    > based on file size or disk size and this alone is not unique enough. If the
    > solution is in Python, all the better.[/color]

    I'm pretty sure I saw Python interface for freedb.

    --
    Jarek Zgoda
    Unregistered Linux User #-1
    http://www.zgoda.biz/ JID:zgoda-a-chrome.pl http://zgoda.jogger.pl/

    Comment

    • Python Baby

      #3
      Re: Unique ID for CD or DVD

      > Does anyone know of an existing algorithm/module for generating a unique ID[color=blue]
      > for a given CD or DVD? This would be something akin to CDDB where a CD is
      > recognized based on its content.[/color]

      There are a few different ways to get a unique ID from an audio CD.
      Gracenote/CDDB does it one way. FreeDB does it another way. MusicBrainz does it another.

      Sorry, it's in C not Python, but the author of MusicBrainz wrote us a good
      tool that we use in our CD store, to generate the unique ID of a CD in the drive.
      It generates many different fingerprints for the CD in the drive, for you to
      pick and choose whichever one you want to use:



      (NOTE: that URL won't work forever. I just put it up there right now since you asked.)


      Comment

      • Hoang

        #4
        Re: Unique ID for CD or DVD

        thanks everyone for your suggestions. I have decided to use MD5 since it is
        included as a module with Python. Finding a unique string from the CD won't
        be that hard and makes the approach more straight forward than any other
        method. Using MD5 makes it less proprietary than it needs to be.

        Hoang Do



        Comment

        • Josiah Carlson

          #5
          Re: Unique ID for CD or DVD

          Hoang wrote:
          [color=blue]
          > thanks everyone for your suggestions. I have decided to use MD5 since it is
          > included as a module with Python. Finding a unique string from the CD won't
          > be that hard and makes the approach more straight forward than any other
          > method. Using MD5 makes it less proprietary than it needs to be.
          >
          > Hoang Do
          > http://jotsite.com[/color]

          Using md5 on what? The track lengths, filenames, raw data on the disk?

          - Josiah

          Comment

          Working...