0

I am trying to parse an AAC file programatically, without external media libraries, and I can't figure out how to calculate the duration in seconds of the whole audio sample. I have parsed the ADTS header based on its specifications, so I have the sample rate (e.g. 44100 Hz), the AAC frame length (e.g. 60), the number of channels (e.g. 1), and the file size (137 KB), and I would like to know if there is a way to find the duration in seconds.

Unfortunately, I don't know the bit rate or bit depth either, which would be helpful in calculating the duration.

Costin_T
  • 786
  • 1
  • 8
  • 27

0 Answers0