gregor42 has asked for the wisdom of the Perl Monks concerning the following question:
OK, to qualify this, you might call it Off Topic, but the result could also be a Cool New Use for Perl...
What I'm trying to figure out here is how I can programatically determine the length of an MP3 file. That is to say, the 'playing time' of the sound clip - as opposed to the file size. Clearly it can be done somehow - bringing up an MP3 file in most players will list the run-time in the standard display.
Upon hitting up Super-Seach I've found references to Apache::MP3, and the like - but no relevant info on this specific topic.
This might be useful for displaying a list of MP3's on a web site, generating statistics on uploaded MP3's that could be stored in a database, etc..
I'm wondering if someone might be able to point me in the right direction?
- Gregor42
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: slightly OT - How can I calculate the length of an MP3 file
by b10m (Vicar) on Apr 15, 2004 at 15:57 UTC | |
|
Re: slightly OT - How can I calculate the length of an MP3 file
by simonm (Vicar) on Apr 15, 2004 at 16:00 UTC | |
|
Re: slightly OT - How can I calculate the length of an MP3 file
by Anonymous Monk on Apr 15, 2004 at 17:11 UTC | |
by gregor42 (Parson) on Apr 20, 2004 at 15:03 UTC |