ruby-mp3info 0.6

  • written in pure ruby * read low-level informations like bitrate, length, samplerate, etc… * read, write, remove id3v1 and id3v2 tags * correctly read VBR files (with or without Xing header) * only 2.3 version is supported for writings id3v2 tags == SYNOPSIS: a good exercise is to read the test.rb to understand how the library works deeper require “mp3info” # read and display infos & tags Mp3Info.open(“myfile.mp3”) do |mp3info| puts mp3info end # read/write tag1 and tag2 with Mp3Info#tag attribute # when reading tag2 have priority over tag1 # when writing, each tag is written. Mp3Info.open(“myfile.mp3”) do |mp3| puts mp3.tag.title puts mp3.tag.artist puts mp3.tag.album puts mp3.tag.tracknum mp3.tag.title = “track title” mp3.tag.artist = “artist name” end Mp3Info.open(“myfile.mp3”) do |mp3| # you can access four letter v2 tags like this puts mp3.tag2.TIT2 mp3.tag2.TIT2 = “new TIT2” # or like that mp3.tag2[“TIT2”] # at this time, only COMM tag is processed after reading and before writing # according to ID3v2#options hash mp3.tag2.options[:lang] = “FRE” mp3.tag2.COMM = “my comment in french, correctly handled when reading and writing” end

All Versions

Version Platform Released Documention
0.6.10 ruby November 26th, 2008 Awaiting Generation
0.6.9 ruby September 15th, 2008 Awaiting Generation
0.6.8 ruby August 19th, 2008 Awaiting Generation
0.6.7 ruby June 25th, 2008 Awaiting Generation
0.6.6 ruby May 26th, 2008 Awaiting Generation
0.6.5 ruby April 18th, 2008 Awaiting Generation
0.6.4 ruby April 15th, 2008 Awaiting Generation
0.6.3 ruby March 27th, 2008 Awaiting Generation
0.6.2 ruby March 1st, 2008 Awaiting Generation
0.6.1 ruby February 27th, 2008 Awaiting Generation
0.6 ruby February 23rd, 2008 Awaiting Generation
0.5.1 ruby September 9th, 2007 Awaiting Generation
0.5 ruby December 8th, 2005 Awaiting Generation
0.4 ruby May 2nd, 2005 Awaiting Generation

Tags

You need to Login to tag this item.