# Finding duration of mp3 in Rails?

**URL:** <https://www.ruby-forum.com/t/finding-duration-of-mp3-in-rails/82756>\
**Category:** Rails\
**Created:** [January 20, 2007, 11:41am UTC](https://www.ruby-forum.com/t/finding-duration-of-mp3-in-rails/82756 "2007-01-20T11:41:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeff\_C.man](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ee59a6/32.png) [@Jeff\_C.man](https://www.ruby-forum.com/u/Jeff_C.man)\
**Post date:** [January 20, 2007, 11:41am UTC](https://www.ruby-forum.com/t/finding-duration-of-mp3-in-rails/82756/1 "2007-01-20T11:41:02Z")

</div>

I’m working on a small app to manage some mp3 songs. Is there a way to  
scan the mp3 file itself and return the duration in minutes? How would  
I go about doing this?

Thanks,  
Jeff C.man

> **[Progressions.org may be for sale - PerfectDomain.com](https://perfectdomain.com/domain/progressions.org)**
>
> Checkout the full domain details of Progressions.org. Click Buy Now to instantly start the transaction or Make an offer to the seller!

---

<div class="post-metadata">

**Author:** ![Jeff\_C.man](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ee59a6/32.png) [@Jeff\_C.man](https://www.ruby-forum.com/u/Jeff_C.man)\
**Post date:** [January 20, 2007, 12:04pm UTC](https://www.ruby-forum.com/t/finding-duration-of-mp3-in-rails/82756/2 "2007-01-20T12:04:16Z")

</div>

Hey mate,

Have a look at rmovie. You can get info on mp3’s with that.

Cheers,  
Carl.

On 1/20/07, Jeff C.man [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> >

–  
Carl W.  
0412218979  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![Jeff\_C.man](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/ee59a6/32.png) [@Jeff\_C.man](https://www.ruby-forum.com/u/Jeff_C.man)\
**Post date:** [February 6, 2007, 4:54pm UTC](https://www.ruby-forum.com/t/finding-duration-of-mp3-in-rails/82756/3 "2007-02-06T16:54:15Z")

</div>

I was using [http://rubyforge.org/projects/ruby-mp3info/](http://rubyforge.org/projects/ruby-mp3info/) which worked  
nice,  
untill I discovered it crashes on certain mp3’s.

I will try rmovie now
