I run an independent music website. We have a huge repository of MP3 files stored on our Amazon S3 CDN. We never cared to store the duration of the audio in the database while uploading.
Now, I need the length of each of these files in minutes and seconds. I am not sure if the TLEN ID3 info is set in all the files, but I know for a fact that all files are 128kbps bit rate.
Since I know the number of mp3 is very large, I don't want to download the entire file for calculating its audio length. I was wondering if there was a smarter way to do this.