MP4 MOOV Atom Inspector
Inspect ISO BMFF boxes and verify FastStart placement locally
About
Parse the first bytes of an MP4 locally to inspect box order, movie timing, tracks, truncation, and progressive playback readiness.
Examples
Faststart file order
inspectMp4(ftypMoovMdatBytes).fastStarttrueBoxes parse as [ftyp, moov, mdat] with mvhd timescale/duration and one trak counted.
mdat before moov
inspectMp4(mdatMoovBytes).warnings["moov comes after mdat, so progressive playback may wait for the full file."]Reversed order clears fastStart and recommends relocating moov with a FastStart optimizer.
About this tool
MP4 Moov Atom Inspector parses ISO BMFF boxes with inspectMp4(bytes) (alias parseMp4): top-level size/type headers (including 64-bit largesize) unfold into { type, size, offset, end, truncated } entries, with moov, trak, mdia, minf, stbl, edts, dinf, and udta recursing into children.
Streaming readiness comes from box order: fastStart is true when moov precedes mdat (or no mdat exists), false otherwise — mdat-before-moov adds a progressive-playback warning plus a +faststart relocation recommendation naming qt-faststart and ffmpeg -movflags +faststart.
Playback metadata reads from the mvhd child (version 0 and 1 both supported) for timescale and duration, trackCount counts trak children, and short or over-declared boxes set truncated with an incomplete-payload warning.
How to use this tool
Feed file bytes
Pass a Uint8Array or ArrayBuffer to inspectMp4 — parsing is fully client-side.
Check faststart
Read fastStart plus moovOffset/mdatOffset; false means moov trails mdat and delays playback.
Read timing and tracks
Use timescale, duration, and trackCount from the mvhd and trak children.
Heed warnings
Truncated inputs and missing moov boxes surface in warnings with fix recommendations.
Use cases
Verifying web uploads
Confirm exported MP4s are faststart so browsers begin playback before full download.
Debugging broken encodes
Spot truncated boxes and missing moov atoms in failed renders or partial uploads.
Inventorying tracks
Count trak children and read mvhd timescale/duration for media catalogs.
Common mistakes
Mistake:Assuming ftyp is optional.
Fix:Well-formed files start with ftyp (major brand like isom) — inspect boxes[0].type to confirm.
Mistake:Ignoring the truncated flag.
Fix:When a declared box size overruns the buffer, duration and child data are incomplete — re-upload the full file.
Frequently asked questions
What does this tool do?
It parses MP4 box structure with inspectMp4 (alias parseMp4) — fastStart order, mvhd timescale/duration, trak count, and truncation warnings.
What makes a file faststart?
moov before mdat (or no mdat) gives fastStart true; moov after mdat warns that progressive playback waits and recommends qt-faststart or ffmpeg -movflags +faststart.
Is my video uploaded or stored?
No. Box parsing and timing reads run entirely in your browser.
Why a truncated warning or missing duration?
Declared box sizes overrunning the buffer set truncated true, and files without moov/mvhd report null timescale and duration.
Related guides
References & standards
Related tools
.env Secret Safety Linter
Validate .env syntax and spot likely leaked credentials or placeholder secrets.
.htaccess Generator
Build an Apache .htaccess — HTTPS redirects, rewrites, error pages, security headers, and basic auth
2D Fluid Dynamics & Particle Physics Sandbox
A physics playground with two engines sharing one canvas. The fluid mode runs a real Eulerian Navier-Stokes solver — semi-Lagrangian advection, explicit diffusion, Jacobi pressure projection and vorticity confinement — that you paint with dye and velocity using mouse or touch. The particle mode is a damped Verlet N-body engine with gravity wells, Coulomb attractors and repulsors, spring links, wall restitution and elastic circle collisions. Particle counts adapt to the device (100k target on WebGL2 desktop, 2k-5k on CPU fallback), and every configuration exports as runnable code: a Matter.js world, a PixiJS ticker setup, or a standalone vanilla Canvas engine.
AI Function Calling Schema Generator
Generate function calling JSON schemas from TypeScript interfaces
Algorithm Arena & Data Structure Visualizer
Interactive arena for algorithms and data structures: eight sorting algorithms racing on one seeded input, six pathfinding algorithms walking generated mazes, and BST, AVL, Red-Black, B-tree, heap and trie operations replayed step by step with rotations highlighted. Every run shows the Big-O table and the phase-highlighted reference implementation in four languages, and compared values can be played as pitch (sonification) through the shared audio engine. Everything runs client-side; inputs never leave the browser.
Ansible Playbook Generator
Build an Ansible playbook — hosts, vars, and tasks with modules — as YAML