Original link: https://glumes.com/post/ffmpeg/007-parse-mp4-info/
The source of the MP4 standard and its format definition have been introduced in previous articles, which are basically composed of Boxes. The general structure is as follows:
ftyp moov mvhd trak tkhd mdia trak tkhd mdia mdat
Next, we have to manually parse the MP4 file. Note that this is not to decapsulate with FFmpeg , but to read the information from the MP4 file byte by byte and parse its meaning to get the desired content.
This article is reprinted from: https://glumes.com/post/ffmpeg/007-parse-mp4-info/
This site is for inclusion only, and the copyright belongs to the original author.