Parsing MP4 files is not that complicated. You always have "boxes" (aka "atoms"), each of which starts with an 8 Byte header (4 Byte size field + 4 Byte name in ASCII).
Boxes may also contain other boxes, but you don't need to care here. Just do the following in a loop: Read the 8 Byte header, then check the name and finally skip over exactly size-8 Bytes to the next box.
Either you will encounter the "moov" box before the "mdat" box - or the other way around. All the meta-data and all the fancy tables are stored within the "moov" box.
Last edited by LoRd_MuldeR; 5th September 2013 at 18:45.
|