Skip to content
Novus Examples
mp423.2 KB

MP4 Layout — Fragmented (fMP4 / CMAF)

Fragmented MP4: an empty moov followed by independent moof/mdat fragment pairs, rather than one monolithic index. This is what CMAF streaming actually delivers, and what makes a segment playable without the rest of the file. Parsers written against progressive MP4 frequently fail here, because there is no sample table to read up front.

Browser-playable test video · 1 seconds

Specifications

Resolution
480x270
Fps
24
Codec
H.264 (libx264)
Structure
empty moov + moof/mdat fragments
Movflags
frag_keyframe, empty_moov, default_base_moof
Use
CMAF — the shape both HLS and DASH ship today

Testing contract

Expected to pass
Scenario
Parse the file and try to read a sample table from the moov box, then decode a single fragment on its own.
Expected result
There is no sample table to read: the moov box is empty and the media lives in independent moof/mdat fragment pairs, written with frag_keyframe, empty_moov and default_base_moof. Each fragment decodes without the rest of the file - the property CMAF depends on and the reason parsers written against progressive MP4 fail here.

What is a .mp4 file?

MP4 (MPEG-4 Part 14) is the dominant container for digital video, holding video, audio, subtitle, and metadata tracks in a tree of typed boxes. `ftyp` declares the brand, `moov` carries the sample tables that make seeking possible, and `mdat` holds the media; when an encoder writes `moov` last, playback cannot begin until the file has fully downloaded, which a faststart remux fixes. It derives from Apple's QuickTime format, generalized by ISO into the ISOBMFF base that MOV, 3GP, and HEIF share.

How to use this file

Use an example MP4 to test box parsing and track detection, seeking, range-request streaming, and transcode or thumbnail pipelines: verifying that a file with a trailing `moov` box is still handled, and that codec support is checked per track rather than inferred from the extension.

How to use this file for testing

“MP4 Layout — Fragmented (fMP4 / CMAF)” is a deterministic Novus Examples fixture for Video codecs, Conversion testing, Video QA. One source encoded as H.264, HEVC, AV1, VP9, MJPEG, and a ProRes-compatible mezzanine, across 8/10/12-bit and 4:2:0/4:2:2/4:4:4, for testing decoder support, transcode pipelines, and container remuxing.

Documented properties for this file: 24 fps · empty moov + moof/mdat fragments. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such, expect parsers to fail loudly rather than silently accept them.

Media fixtures are short and synthetic by design. Prefer waveform or transcript ground truth in the same group when measuring ASR, trim, upscale, or sync tools; do not assume broadcast-quality masters.

Code examples

<video controls preload="metadata" width="640" src="fragmented.mp4"></video>

Generated by generation/video_codecs_wave.py. Free for any use, no attribution required, license.