Finding Duration of MP4 File

Friends,

I need to calculate the duration (in hours, minutes, and seconds) of some MP4 files that contain AAC audio. No video. I created these files using the QT player export function. However, I’m not using the QT API, and so would like to know where to find this info in the MP4 file (which boxes and so on). It would be helpful to know how to find the following information through parsing of the MP4 file:

* Number of kilobits per second

* Sample rate (most of my files are 44100)

* Number of audio channels

* Number of audio samples

I’d appreciate any assistance you can offer.

Thanks,
Tom Hesley

Leave a Reply

You must be logged in to post a comment.