I worked with some mp3 files, and i needed to show duration of uploaded mp3 file, I used following: http://www.zedwood.com/article/127/php-calculate-duration-of-mp3 as told in question: PHP Function to get MP3 duration .
But now I'm facing a problem, there are some files which are not returning any file information. the array just contains following
Array (
[Filesize] => 16756370,
[Encoding] => Unknown
)
As the "Encoding" is Unknown its not returning any data.
I found a great PHP library, getID3() , that works for VBR files as well.
You can find it right here; it's free and is being developed actively (latest version is from from February 2013):
http://sourceforge.net/projects/getid3/files/getID3%28%29%201.x/1.9.5/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.