Skip to content
Novus Examples
mp4869 B

Intentionally Corrupt — MP4 Header Fragment Only

An intentionally corrupt MP4 cut off half way through its `moov` box: the `ftyp` header survives, the index does not, and there is no media data at all. Not a valid file by design. Just enough for content sniffing to succeed and everything after that to fail. A `file`-style magic check reports ISO Media, a MIME sniffer says video/mp4, and then the box walk runs off the end of the buffer part way through the index. Useful for testing the gap between format detection and format validation — and for the upload path, where the two are frequently the same check. Distinct from the two other truncations in this group: the mid-mdat file has a complete index and missing media, this one has a broken index and no media, and a length-based cut deep enough to matter is the only way to tell those code paths apart.

mp4

video/mp4

869 B
Integrity
intentionally corrupt
Damage
cut half way through the moov box
Ftyp Intact
true
Moov Present
truncated — header only, contents incomplete
Media Data Present
false
Original Bytes
13016

Binary mp4 — no in-browser preview. Download it above to open in a compatible application.

Specifications

Integrity
intentionally corrupt
Damage
cut half way through the moov box
Ftyp Intact
true
Moov Present
truncated — header only, contents incomplete
Media Data Present
false
Original Bytes
13016
Expected Behaviour
magic bytes detect as MP4; the index never finishes parsing

What is a .mp4 file?

MP4 (MPEG-4 Part 14) is a widely supported multimedia container based on ISOBMFF that holds video, audio, subtitles, and metadata, most commonly H.264 or H.265 video with AAC audio. It supports streaming, chapters, and multiple tracks. It is the dominant format for distributing and playing digital video.

How to use this file

Use an example MP4 to test container demuxing, track and codec detection, seeking and streaming, and transcoding or thumbnail-extraction pipelines.

How to use this file for testing

“Intentionally Corrupt — MP4 Header Fragment Only” is a deterministic Novus Examples fixture for Error handling, Video QA, Video codecs. Deliberately corrupt and invalid files, clearly labelled, for testing how your tool fails.

Documented properties for this file: damage: cut half way through the moov box. 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="mp4-header-only.mp4"></video>

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