Ruby mp3 Id3 parsing

Dan Sosedoff picture Dan Sosedoff · Jun 9, 2009 · Viewed 7.7k times · Source

Currently I'm working on a music project, dealing with user mp3 uploads. The problem is that I can't find an id3 library that will work correctly for all files. I have tried id3-ruby and Mp3Info libs but none of them gives me consistently correct results. For example, most common problems:

  • wrong stream parameters (bitrate and sample rate, sometimes duration)
  • doesn't support extended tags

I decided to add a form, where users can supply optional information like Artist and title; that helped a little, but didn't completely solve the problem.

What's the most usable and powerful ID3 library for ruby?

Answer

Ana Betts picture Ana Betts · Jun 9, 2009

http://www.hakubi.us/ruby-taglib/

I used this for a project and it worked quite well. Wrapper around taglib, which is very portable.