Find the answer to your Linux question:
Results 1 to 4 of 4
Hi All, I've got a linux server at home, running Ubuntu (Debian) Server 9.04 that is basically my "all-rolled-in-to-one" box. It does DHCP, DNS, VPN, Internet Gateway, Firewalling, SMB, DAAP ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2009
    Posts
    13

    Background mp3 Fingerprinting & Tagging


    Hi All,

    I've got a linux server at home, running Ubuntu (Debian) Server 9.04 that is basically my "all-rolled-in-to-one" box. It does DHCP, DNS, VPN, Internet Gateway, Firewalling, SMB, DAAP amongst a few other things.

    Here I will say that I am fully aware of the pitfalls of having your shared storage on your internet gateway, but there is nothing confidential or critical stored on this box, so i knowingly run that risk.

    I have some 11,000 odd mp3s, spread over some 3-400 or so directories under one "Music" parent directory. As the box these mp3s reside on is a server, there is no GUI. I'm looking for a command line solution that I can install on this box, that will give me the ability to fingerprint these music files, reference them against an online database, and tag them.

    I'm after a command line solution as i've tried the following, & my mileage has varied considerably.
    -Picard from my laptop- Very slow when running over an NFS connection to the server, and when I left it running overnight last night it crashed my laptop, not exactly sure when but when I went to bed last night it had loaded about 6,000/11,000 of the mp3s but had only fingerprinted a few hundred, when i woke up this morning. My laptop had completely frozen, unable to switch to another terminal or regain the console.
    -PinkyTagger - First impressions was it looked good, and faster than Picard using NFS, but had trouble figuring out how to use it as there isnt a lot of documentation around on the product and *I* didnt find it that intuitive (Note this could just be me being tired after a long day, but it didnt seem self explanitory at the time)
    -Anything like this, dealing with this much data over the network is going to be slow. By running it on the server I can utilize the 64 bit architecture & memory available on the server (significantly faster than my laptop). I do not want to instal X on this server, as i Beleive it takes away from what this server is, a server & I want the processor/memory to be taking up with stuff that needs to be running, not X.

    I am quite comfortable with shell scripting so my intention was just to run a batch job in the background, that finds all the mp3s within a subdirectory on the box, and then one by one (or 20 by 20 if I so choose) fingerprints them, then checks & updates the tags. If no fingerprint match is available, or if there is an exception, my intention would be to have my script detect this, and move the file in to a dir for manual processing.

    Has anyone done anything like this before? Is there a product out there that does this, that my mighty google skills hasnt been able to find?

    Note I should add i'm a linux sysadmin not a home user or "power user" so i'm very familiar with bash scripting, starting to lean perl, comfortable in php and have primarily learnt from trial and error in the past.

    I should also add that I have the space on my server to make a copy of the entire collection for testing, so that when in development I dont nuke my mp3 collection by mistake.

    Cheers

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,737
    Why not just use one of the standard hashing tools such as cksum, md5sum, or sha1sum to generate a hash to store to the database? That's probably as good a fingerprint as any, though the same song in an mp3 that is compressed at a different bit-rate will generate a different hash value.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    May 2009
    Posts
    13
    Hi,

    I think your misunderstanding what i'm after.

    I have a collection of 11,000 mp3s, lots of which have broken tags. I need to fix these and dont want to do it manually. My mp3s exist on a server so GUI tools wont do the trick. I need something that i can run from the CLI on the server that will fingerprint the mp3s and reference that fingerprint against an existing online database (musicbrainz for example), and automatically correct the tags.

    Cheers,

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,737
    Ah. Sorry. Out of my depth here.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •