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...)
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...)
I know ffmpeg can do this easily:
Unfortunately, I don't know any Ruby library that handles this.
Try exiftool:
http://id3lib-ruby.rubyforge.org/ ? This page has the code you need.