Someone familiar with the mp4 data structure?


Where in the mp4 file structure is the duration of it?

This may not be the answer to your problem but it was to mine:

(It has a library and it's open source so you can just check for the part(s) you need)