Page 1 of 1

Can I calculate length of audio files wav or mp3?

Posted: Wed Jul 14, 2010 11:49 am
by gertrudis
Hi to all.
Could be some way to calculate the length of a wav file using php?

My problem:
I'm receiving a list of file recorded in wav format that i have to convert to mp3 and then save a link to the file name, file size and duration to mysql table.
everything it ok, but I don't have duration in minutes or second of the recording.

I don't know how to get it using php.


Thanks a lot in advance.

Re: Can I calculate length of audio files wav or mp3?

Posted: Wed Jul 14, 2010 12:10 pm
by buckit
give this a look

http://getid3.org/

Re: Can I calculate length of audio files wav or mp3?

Posted: Thu Jul 15, 2010 11:54 am
by gertrudis
Thanks a lot Buckit