Slashdot Mirror


Cultured Perl: Fun with MP3 and Perl, Part 1

Ted writes "Every self-respecting computer and music fan needs to be able to manipulate MP3s -- the defacto standard for recreational digital music use. In this article, I'll look at ways to manage and manipulate MP3s (searching, tagging, renaming, commenting, etc.) using the autotag.pl application. I'll also take you through the application, illustrating how CPAN modules enable the application."

13 of 232 comments (clear)

  1. Perl.com article by twoshortplanks · · Score: 3, Interesting
    On a similar note, there's a perl.com article on using MusicBrainz that was published recently.

    Identifying Music with MusicBrainz

    --
    -- Sorry, I can't think of anything funny to say here.
  2. Why stop with tagging? by Dr.+Zowie · · Score: 5, Interesting
    Perl (with PDL) is powerful enough to remix, comb-filter, compress, depop, noise-gate, and generally munge your mp3s as much as you want.

    We're in an exciting time when many of the scripting languages are being augmented to be able to handle Real Data (Numpy is another example).

  3. Re:and like every Linux geek.. by Anonymous Coward · · Score: 1, Interesting

    That's the beauty of open source. You have the perl script, look at the OGG documentation and write it yourself.

    Yup, and that's the mantra of open source. "RTFM, write it yourself and submit a patch."

  4. What about emacs MP3 mode? by crow · · Score: 4, Interesting

    Seriously, I've been thinking it would be cool to have an emacs mode for MP3 files. The raw data wouldn't be displayed, but the ID3 tags would be available for editing.

  5. genre splitting by digitalsushi · · Score: 2, Interesting

    Does anyone remember that perl module that would "listen" to the mp3 and decide which musical genre it thought it was? I'm not referring to matching the ID3 tags against something... it would make a guess based on stuff like the tempo and frequency range, et cetera. (I have no idea how it actually works, and I have no idea if it is even real. I just know I read about it a long time ago and figured someday it might be something a nonprogrammer like me could use)

    --
    slashdot: where everyone yells sarcastic metaphors to themselves to understand the issue
  6. Hopefully iTunes will defeat mp3 by blueworm · · Score: 1, Interesting

    Let us pray that iTunes and iPods can help to destroy MP3 forever.

    1. Re:Hopefully iTunes will defeat mp3 by Lumpy · · Score: 1, Interesting

      that is a completely stupid comment.

      Apple is not going to make a iStereo for my car. The same as they are not going to make a iTuner for my home stereo and plugging the ipod into my car stereo is not an option as it sucks. right now I can select from thousands of mp3's via the now discontinued Rio mp3 player. My friend has a clarion Joyride that play's DVD's full of mp3's from it's 5 disc DVD changer that play's mp3's better than any iPod made on this planet (It's the A2D converter kiddies...)

      Not to miss the fact that my Audiotron kicks the crap out of a ipod sitting there in the equipment rack, or the one in my whole house audio rack that I can control from either IR remote or from any Pc in the house via web interface.

      Ipod is only cool that it will play an mp3, their wierd itunes format is not desired as it is not compatable with 99.9% of the hardware out there.

      Besides, I will not tolerate ANY DRM in my music files.

      --
      Do not look at laser with remaining good eye.
  7. Re:MP3 is Evil by Anonymous Coward · · Score: 2, Interesting

    great I'll switch to it! where's the ogg firmware for my car stereo, my audiotron, my portable CD player, my Mp3 capable boom box, my pocket mp3 player and my dvd player...

    oh wait... Ogg isnt supported on any of those... so in order to support this "FREE" format I need to go spend $5000.00 on all noew gear...oh wait I can't even BUY anything that support's ogg except for one obscure pocket mp3 player...

    nevermind, I'll stick with the mp3 format that is free as far as I'm concerned and use the items I already own.

  8. I can tell by metalhed77 · · Score: 2, Interesting

    I did some testing between flac and ogg at its highest setting. Quite simply the ogg was very good BUT on certain parts, with some strange harmonics, the ogg would drop certain frequencies. Besides, with hard disk space so cheap these days I have no qualms ripping my music to .flac. I'm going to lose the CD anyway, might as well have a viable backup (/me cannot hold on to a CD for more than a few months without scratching it).

    --
    Photos.
  9. MusicBrainz by Mr_Silver · · Score: 3, Interesting
    MusicBrainz::Client and AudioFile::Identify::MusicBrainz were not used because MusicBrainz appears to be a less comprehensive database of released CDs than FreeDB.

    True, but the point of MusicBrainz is not to hold a database of released CD's but more snapshots of MP3 tracks.

    At the moment, without MusicBrainz I cannot automatically populate my ID3 tags with the information about an album unless I get it out of the cupboard and type the details in myself.

    MusicBrainz allows me to do all this without any access to the CD's

    --
    Avantslash - View Slashdot cleanly on your mobile phone.
  10. Re:and like every Linux geek.. by Anonymous Coward · · Score: 0, Interesting

    And the mantra of closed source ? "Shut the fuck up."

  11. Re:and like every Linux geek.. by pediwent · · Score: 2, Interesting

    Ah, but is that the correct analogy or is it more like VHS vs. Beta? Beta is a clearly superior videotape format, yet VHS had the manufacturer's support (you would think Sony would have remembered that when they came out with the memory stick). Try to find a Betamax VCR these days - good luck. I don't pretend to know which audio format will "win", but don't underestimate the impact of manufacturer's support and don't forget all the hidden business agendas present in decisions to support a given format. It's not only about technology.

  12. looks alot like something I did recently by Anonymous Coward · · Score: 1, Interesting
    This looks very similar to a little Perl program I recently wrote, although mine doesn't use a CDDB-type system.

    Anyway, it's called 'Audiotag,' and is designed to be a decent mass tagger with sane options and supports MP3, OGG, and FLAC.

    If you're interested... Audiotag