Tool

MP4 Box Structure Inspector: moov Position, faststart, Fragmentation (fMP4) and Damage Diagnosis

Does an MP4 you recorded with OBS refuse to open, or does a video you put on the web take a long time to start playing? The cause is usually where the moov box is inside the file, or whether it is there at all. Pick a file and the tool reads only the name, position and size of the top-level boxes to tell you the cause. The file never leaves this browser.

Drop an MP4 or MOV file here, or choose one

It does not read the whole file, only the box headers. Nothing is uploaded, and even a multi-GB file finishes right away.

How do you read it?

An MP4 is a file made of boxes strung together. Each box starts with a 4-byte size + 4-character name, so this tool reads the first box header, skips ahead by that size, reads the next box header, and repeats. It never reads the video data (mdat), so even a multi-GB file takes only as many small reads as there are boxes. The principles of the box structure are in the MP4 box lesson.

Box orderVerdictMeaning
ftyp → moov → mdatfaststartA regular MP4 that suits web playback
ftyp → mdat → moovNot faststartPlays fine locally, but may start late on the web
ftyp → moov → (moof → mdat) repeatedfMP4Each fragment has its own index, so it holds up well against interruptions
Only ftyp → mdatNo moovA file whose recording was never finished
The last box’s size is larger than the fileTruncated fileThe copy or download was interrupted partway

The bar graph is proportional to box size. In a regular MP4, if the blue moov is at the right end, the file is not faststart; if it is small and at the left, it is faststart.

How to use it

  1. When you see “moov atom not found”: you can read what the ffmpeg error means in the ffmpeg error log explainer, while this tool directly checks whether the actual file has a moov. If it says “no moov,” options cannot fix it, and you would need to find a recovery program that rebuilds the index using a healthy file from the same device with the same settings as a reference.
  2. OBS recordings: a regular MP4 gets its moov written only when the recording ends. So if the program crashes midway, this tool reports “no moov.” Recording to MKV and rewrapping after it finishes is a common precaution, and you can first check whether the rewrap is possible with the MKV to MP4 remux checker. OBS is known to have a format that records fragmented MP4 as well, but its name and location differ by version, so check for yourself.
  3. Videos you upload to your own site or blog: if it says “not faststart,” rewrap it with the -movflags +faststart command the tool shows before you upload. The reason is in the faststart lesson.
  4. When an fMP4 will not open in an editing program: the tool gives you a command to rewrap it into a regular MP4. The fragment structure is explained in the fMP4 lesson.
  5. If it opens but you are curious about the codec, duration or bitrate, continue with the video file info inspector.

Limitations

  • It looks only at the top-level boxes and the child boxes of the moov (mvhd, trak, mvex). It does not read whether the sample tables (stbl) inside a track are intact or whether the frames inside the mdat are corrupted, so “the structure is normal” does not guarantee “it will play.”
  • These verdicts are rules this site set for the box structure. They were not verified against many real damaged files, and neither the success rate of recovery programs nor the result of the recovery commands was measured.
  • That an fMP4 “plays up to just before the last fragment even if it is cut off” is a generally known property and may differ between players. A missing mfra is not evidence of damage.
  • It reads at most 6,000 top-level boxes. If there are more fragments than that, it marks everything after as not read. The sizes in the bar and the list are the values written in the box headers.
  • For other formats such as MKV, AVI and TS, it only guesses from the leading bytes and tells you. For a file without an ftyp, such as an old QuickTime MOV, the boxes can be read but the brand is not shown.
  • The generated ffmpeg commands are examples, and no output file was made to check them. The file is not sent to a server, and the list is computed only in browser memory.