Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror
×
Music Media Perl Programming

Cultured Perl: Fun with MP3 and Perl, Part 2 55

Ted writes "I continues to look at manipulating and guessing MP3 tags with Perl, FreeDB, and various CPAN models via my autotag.pl application. Writing autotag.pl was grueling but fun. I used fuzzy string matching, FreeDB searches, ID3 versions 1 and 2, and lots of text-mode user interactions. It all came together in an application that I tested thoroughly over the course of a month. Info and Slashdot comments about Part One can be seen here, which was posted in December."
This discussion has been archived. No new comments can be posted.

Cultured Perl: Fun with MP3 and Perl, Part 2

Comments Filter:
  • Mmm Perl (Score:5, Informative)

    by Michael.Forman ( 169981 ) * on Thursday February 26, 2004 @01:33PM (#8399762) Homepage Journal

    As long as we're on the topic of useful perl scripts for manipulating metadata, let me offer some other scripts as well.
    • ren-regexp [michael-forman.com] - A perl script that renames many files in parallel using a series of regular expressions from the command line. It's a profoundly useful script for those who are command-line and regexp power users.
    • mp3-ren-nice [michael-forman.com] - A perl script that attemts to clean up munged mp3 file names downloaded from P2P networks. For example running the script on "artist-title_title.2.MP3" will yield "Artist - Title Title.mp3".
    • newpl [michael-forman.com] - A perl script that creates an empty perl script template complete with GetOptions code and a POD skeleton for writing more scripts that manipulate mp3 files.
    That and more here [michael-forman.com]. Now wasn't that informative?

    Michael. [michael-forman.com]
  • Musicbrainz? (Score:5, Informative)

    by magnum3065 ( 410727 ) on Thursday February 26, 2004 @01:45PM (#8399919)
    Isn't this the kind of thing MusicBrainz [musicbrainz.org] was invented for. For those who don't know about it MusicBrainz is like CDDB, but you can look up files based on an audio fingerprint as well as the tag information. This means that files could be tagged completely wrong and you can still match them in the database. They provide open-source software for generating the fingerprints, interfacing with the server, and the server software (should you, for some strange reason want to run your own site). There's a pretty easy-to-use client for Windows, and I've been considering writing my own client for Linux.
    • Re:Musicbrainz? (Score:2, Informative)

      by windex82 ( 696915 )
      Informative, bah! Magnum forgot the most important part!


      Latest Version

      The MusicBrainz tagger is currently only available for Windows.
      • Yes, though like I mentioned, there are libraries available to interface with their server, so rather than writing software to interface with FreeDB, you could make a better program that interfaced with MusicBrainz.
        • Yeah, I had just woke up when I read your post, I was reading through again later that day and realized you said something about coding your own for linux, I guess that could have also been interpreted as there is no linux client. The point was to save some time for users, like me, who would be looking for "completed" linux software.
    • Re:Musicbrainz? (Score:3, Informative)

      by DrSkwid ( 118965 )
      If anyone was interested they should know the code is in C++

      oh well.

      http://cvs.musicbrainz.org/cvs/mb_tagger/ [musicbrainz.org]

    • Woo, Ive always thought there should be a 'freedb' type solution based upon something like a MD5 has of the actual file.

      This looks like a good solution to my renaming problems, if it wasnt for the damn developers not taking into account people who have WHITE ON BLACK settings. Why do people constantly hard code the text (white) but leave the background colour as a system colour. (In my case also white!)

      ARG!
    • Re:Musicbrainz? (Score:2, Informative)

      by TedZ ( 25150 )
      Please read the comments for the first article. And/or the article itself.

      I tried MusicBrainz and didn't like the interface to it, or its capabilities. FreeDB was much better for my purpose.

      Ted (article author)
    • Re:Musicbrainz? (Score:2, Insightful)

      by Darth23 ( 720385 )
      Sounds like something worht trying out. In all my years of P2P experience I've learned that there a re a lot of music fans out there who have no clue about what artist performed which songs.

      I just wish there was a way to tell them all that just because a song is a parody, doesn't necesarrily mean it was written and performend by Weird Al [weirdal.com].

  • by BrookHarty ( 9119 ) on Thursday February 26, 2004 @02:13PM (#8400269) Journal
    I copied all my cd's to mp3s on my harddrive, one thing, no ID3 tags.
    Lucky, what I did do, is named them all with tracknumber-band-song.mp3 in each subdirectory.

    Now that I have like 200 some directories, I don't want to go in with id3master on windows and make a id3 version1/2 tags on every file.

    This is exactly what I need! I use cygwin to write small perl scripts to generate reports, so this should be a snap. He even has examples on how to use his perl modules.

    Wow, nice for IBM to have a linux developers forum.
  • MP3 renaming scripts now rank right up there with the image/ comic downloader and the templating system. Every perl programmer thinks, at some time, "I could get the funnies this way" or "this would be good to use as a templater", and now we're seeing a lot of scripts for MP3 renaming. It's like there's a perl hive-mind or something where we all think "yeah! social software networks in perl! or, yeah! tiny webservers in perl! wooo"
  • I've been totally planning on doing this myself in the past few weeks, as sort of a next project to teach myself some more perl.

    cool.

    Bill

How many hardware guys does it take to change a light bulb? "Well the diagnostics say it's fine buddy, so it's a software problem."

Working...