[ANN] ruby-mp3info 0.5

  • Thread starter Guillaume Pierronnet
  • Start date
G

Guillaume Pierronnet

ruby-mp3info gives you access to low level informations on mp3 files
(bitrate, length, samplerate, etc...). It can read, write, remove id3v1 and
id3v2 tags. It is written in pure ruby.

This new version add the ability to read, write and delete tag2. I
would like to thanks Chris and all others contributors.

Get tar, zip and gems at http://ruby-mp3info.rubyforge.org/

example:

Mp3Info.open("myfile.mp3") do |mp3|
puts mp3.bitrate
puts mp3.length #length in seconds
#etc...

puts mp3.tag.title
puts mp3.tag.artist
puts mp3.tag.album
puts mp3.tag.tracknum

puts mp3.tag2.TIT2
mp3.tag2.TIT2 = "my title"
end #tag is written at close()


Changelog:

[0.5 06/12/2005]

* id3v2 writing and removing support added. tag2 attribute is r/w now
* max guess size to find a valid frame set to 2Mb
* implemented a new class ID3v2, ID2TAGS moved into it
* Mp3Info.tag is r/w now and has priority over @tag1 and @tag2 when writing
* added Mp3Info#rename() method to change the filename written at close
* clean up: all overloaded standards classes replaced by including modules
* FIXED bug in reading id3v2 tags tagged with olds versions of
"mp3ext" ( http://www.mutschler.de/mp3ext/ )
* FIXED bug on calculating id3v2 frame size
* FIXED bug when multiple TLEN tags
* FIXED bug when converting text tag from Unicode
* FIXED bug: file was not closed, causing too many opened files and
test failure on win32
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,022
Latest member
MaybelleMa

Latest Threads

Top