Search code examples
rubyparsingmp3

mp3 length in milliseconds


I need a script or cmd line tool get an mp3 length in milliseconds. The files are 64 kbits mono cbr encoded with lame.

(I looked for a libmad for ruby, my language of choice, but found nothing noteworthy...)


Solution

  • http://id3lib-ruby.rubyforge.org/ ? This page has the code you need.