Fragmented MP4 puts an index in every fragment instead of one for the whole file. This is why live and adaptive streaming use this structure.
A regular MP4 keeps the index for the whole file in a single moov, so it couldn't be completed until the end. Fragmented MP4 (fMP4) solves this by splitting the index up per fragment. The HLS and DASH segments from Chapter 10 and the CMAF chunks from Chapter 15 are exactly this structure (CMAF, CMAF chunks).
ffmpeg -i input.mp4 -c copy \
-movflags frag_keyframe+empty_moov+default_base_moof \
output_frag.mp4frag_keyframe starts a new fragment at each keyframe, and empty_moov tells FFmpeg to write a moov with no samples at the start. Fragment length is directly tied to the GOP structure. A fragment has to be independently decodable, so it usually starts at a keyframe (GOP structure). That is why choosing the segment length is really choosing the GOP length.
An fMP4 can also have the .mp4 extension, but not every player handles it well. Without seek information (sidx), fast-forwarding can be inaccurate or the duration may not display correctly. For a regular file for archiving or distribution, it is safer to convert it back to a regular MP4 (you can reassemble it with -c copy).
An MP4 in which moof+mdat fragments repeat after the initialization part. The basis of HLS (fMP4), DASH, and CMAF.
The metadata box listing the number, sizes, and times of the samples in one fMP4 fragment.
An optional index that gathers the times and positions of fragments. Used for seeking.
The front part of an fMP4 (ftyp+moov) holding the codec configuration. It is needed before any fragment can be decoded.
What is the most direct reason fMP4 suits live streaming?