The 4% MP4 Container Overhead Rule Explained
An MP4 file contains more than video and audio streams: packet headers, sample tables, and fast-start seek atoms consume 2% to 4% of total bytes.
Target Envelope Control Deck
Preloaded for 10 MB (1280x720 @ 30fps, H264).
Common Upload Caps4% MP4 container overhead reserved
MB
sec
Source Capture Profile
Resolution Ceiling
Solved Bitrate TelemetryBalanced BPP
Video Bitrate
Predicted MP4
Output FrameAuto step-down (540p)
Audio & BPPEff. BPP 0.078 (H264)
Byte Envelope Allocation10,485,760 bytes cap
Video 87% AAC Audio 9% MP4 Margin 4%
Exact formula matched to TargetMB on iOS and iPadOS: compresses Videos (MP4/MOV), PDFs, and Photos (JPEG/HEIC) offline with Before vs After visual comparison, original recording dates preserved, and optional EXIF/GPS stripping.
Duration vs Bitrate Lookup (10 MB, H264)
| Duration | Video kbps | AAC Audio | Output Frame | Eff. BPP |
|---|---|---|---|---|
| 15 sec | 5,209 kbps | 160 kbps | 1280x720 | 0.188 (Reference) |
| 30 sec | 2,556 kbps | 128 kbps | 1280x720 | 0.092 (Balanced) |
| 1 min (60s) | 1,214 kbps | 128 kbps | 960x540 | 0.078 (Balanced) |
| 2 min (120s) | 575 kbps | 96 kbps | 640x360 | 0.083 (Balanced) |
| 5 min (300s) | 204 kbps | 64 kbps | 640x360 | 0.030 (Constrained) |
Key Engineering Takeaways
- TargetMB multiplies your target bytes by 0.96 upfront before solving video and audio bitrates.
- Fast-start network optimization moves the index atom to the front so clips begin playing immediately.
- On-device encoding checks actual written bytes and automatically tightens a retry pass if encoder bursts overshoot.
Is 1 MB equal to 1,000,000 bytes or 1,048,576 bytes?
TargetMB uses strict binary megabytes (1,048,576 bytes) combined with a 4% safety buffer so files clear both decimal and binary upload validators.