Corrupted MP4 sample files for testing (free download)
These are free, real corrupted MP4 test files: each one is a valid H.264/AAC recording that we damaged in one specific, documented way (cut off mid-recording, moov atom deleted, header zeroed, data overwritten in the middle, a fast-start file cut in half). Use them to test a video player, an upload pipeline, FFmpeg error handling or a repair tool. They are small (under 1.3 MB), safe (no exploits, just broken structure) and free to use for any purpose (CC0).
All files come from the same 10-second 640x360, 30 fps H.264 High profile clip with 44.1 kHz stereo AAC audio, encoded with x264. The healthy reference clip was recorded with identical settings, so repair tools that need a reference (untrunc, FixMP4) can use it.
Download the corrupted MP4 files
| File | What was damaged | What players and FFmpeg say | Repairable? |
|---|---|---|---|
| sample-truncated-no-moov.mp4 (750 KB) | Recording cut off at 60% of the media data, as after a dead battery or crash. No moov atom, mdat size still claims the full length. | moov atom not found, 0:00, "file is not supported" | Yes, with the reference |
| sample-moov-atom-deleted.mp4 (1.2 MB) | All frames present, the moov atom (index) removed. | moov atom not found | Yes, with the reference |
| sample-zeroed-header.mp4 (1.2 MB) | The first 48 bytes (ftyp and the mdat header) overwritten with zeros, as after a bad sector or a failed copy. | moov atom not found / Invalid data found when processing input | Yes |
| sample-damaged-middle.mp4 (1.2 MB) | Index intact, 64 KB of media data in the middle zeroed. | Opens and shows 0:10, then decode errors, grey or frozen frames around 0:05 | Partly: frames around the damage are kept |
| sample-faststart-cut-off.mp4 (630 KB) | A fast-start file (moov at the front) cut in half, as after an interrupted download. The index points past the end. | Shows 0:10 but stops or errors around 0:05 | Yes, up to the cut |
| sample-broken-dead-battery.mp4 (1.3 MB) | A recording interrupted before the index was written. | moov atom not found | Yes, with its reference |
| sample-broken-voice-memo.m4a (280 KB) | An iPhone-style AAC Voice Memo cut off mid-recording. | 0:00, will not play | Yes, no reference needed |
Healthy reference: sample-healthy-reference.mp4 (490 KB, 4 seconds, same encoder settings as the first five files).
What you can test with them
- Players and apps: does your app show a clear message for a file without an index, or freeze? Does it cope with a damaged region in the middle?
- Upload and processing pipelines: do you reject
moov atom not foundearly with a useful error, rather than failing later in a transcoding job? See moov atom not found in FFmpeg, Python and Node.js for detection code. - FFmpeg commands: compare what
-c copy,-err_detect ignore_errand-movflags +faststartcan and cannot do on each file. Spoiler: none of them can rebuild a missing index. See FFmpeg repair MP4. - Repair tools: drop a file into the FixMP4 repair tool (with the reference for the first two) and compare the result with the healthy original, or run untrunc.
Check a file yourself
`` ffprobe -hide_banner sample-truncated-no-moov.mp4 ffmpeg -v error -i sample-damaged-middle.mp4 -f null - ``
The first prints moov atom not found; the second decodes the whole file and lists every decode error caused by the damaged region. The browser-based MP4 file checker shows the box structure of each file without installing anything.
How these files were made
You can reproduce them, or damage your own test clips the same way, with FFmpeg and a few lines of Python:
`` ffmpeg -f lavfi -i testsrc2=size=640x360:rate=30 -f lavfi -i sine=frequency=523:sample_rate=44100 \ -t 10 -c:v libx264 -preset veryfast -profile:v high -pix_fmt yuv420p -b:v 900k -g 30 \ -c:a aac -b:a 128k -ac 2 healthy.mp4 ``
Then, with the byte offsets of the top-level boxes (ftyp, mdat, moov):
- Truncated: keep the bytes up to 60% of
mdat; everything after, includingmoov, is gone. - moov deleted: remove the
moovbox and keep everything else. - Zeroed header: overwrite everything from byte 0 to the end of the
mdatheader with zeros. - Damaged middle: overwrite 64 KB in the middle of
mdatwith zeros. - Fast-start cut off: remux with
-movflags +faststart, then keep the first 50% of the file.
This is the same method we use in our engine test matrix, which covers 178 cases across iPhone, Android, GoPro, DJI, dashcam, OBS, Zoom and Voice Memo recordings.
Got a real broken video?
These files are for testing. If you have your own MP4 or MOV that will not play, start with MP4 not playing? Find the cause or go straight to the repair tool: the diagnosis and a preview of your repaired file are free, and nothing is uploaded.
FixMP4 compared with other options
| Feature | FixMP4 | Desktop repair suites | untrunc (CLI) | VLC |
|---|---|---|---|---|
| Runs where | Browser, on your device | Desktop app | Command line | Desktop player |
| Keeps your file on your device | ✓ | ✓ | ✓ | ✓ |
| Nothing to install | ✓ | ✕ | ✕ | ✕ |
| Rebuilds a missing MP4/MOV index | ✓ | ✓ | ✓ | ✕ |
| Preview of your own repaired file before paying | ✓ | Trial (varies) | Free tool | n/a |
| Voice Memos / AAC without a reference | Usually | Varies | ✕ | ✕ |
| Formats beyond MP4/MOV/M4A | ✕ | ✓ | Many (FFmpeg) | Plays many |
Frequently asked questions
Are these corrupted MP4 files safe to download?
Yes. They are ordinary H.264/AAC videos with deliberately broken structure (missing index, zeroed bytes, truncation). They contain no exploits or executable content.
Can I use the sample files in my own tests or product?
Yes. They are released under CC0: use, copy and redistribute them for any purpose without attribution.
Which file reproduces moov atom not found?
sample-truncated-no-moov.mp4, sample-moov-atom-deleted.mp4 and sample-broken-dead-battery.mp4 all have no index and produce moov atom not found in FFmpeg.
Can these files be repaired?
Most can. The truncated and moov-deleted files repair with the healthy reference clip; the damaged-middle file keeps everything except the overwritten frames.