MP4 Compatibility: Apps, Versions and Common Limits
Understand why a valid MP4 file can behave differently across applications and devices.
Codec and Profile Boundaries
The MP4 container, defined by ISO/IEC 14496-14, can encapsulate video encoded with H.264, H.265/HEVC, AV1, VP9, MPEG-2, or MPEG-4 Part 2, and audio using AAC, MP3, Opus, AC-3, or FLAC. Every application enforces a fixed set of supported codecs. Two common failure points:
- H.265/HEVC: Supported natively on macOS 10.13+ and Windows 10 (with the HEVC Video Extensions package), but absent from many embedded players—car systems, smart TVs manufactured 2015–2018—and older mobile devices. The Library of Congress notes that HEVC is less widely deployed than H.264 and may require patent-license considerations for playback software (see LOC FDD000155).
- AV1: Gaining browser support (Chrome, Firefox, Edge) but absent from hardware decoders in most consumer electronics released before 2023. Software decoding is CPU-intensive; mobile devices may drop frames or refuse playback entirely.
Safe fallback: Encode distribution files with H.264 video (Baseline or Main profile) and AAC-LC audio. This combination plays on nearly every device released after 2010.
Profile and Level Restrictions
Within H.264, the profile and level fields define the maximum resolution and bitrate a decoder must handle:
| Profile | Typical Use | Hard Limits |
|---|---|---|
| Baseline | Mobile, low-power devices | No B-frames, no interlacing; 4:2:0 chroma only |
| Main | Standard desktop playback | B-frames, CABAC entropy coding |
| High | HD/UHD content | 8-bit depth, 4:2:0 only; Level 4.1 caps 1080p at 30 fps |
A file encoded with High Profile at Level 5.1 (4K at 30 fps) will fail on older hardware decoders that only support Level 4.1. The file is structurally valid, but the target device cannot sustain the required decode throughput.
Application-Specific Compatibility
Desktop Media Players
| Application | Unsupported Feature | Observable Behavior |
|---|---|---|
| VLC 3.x | Lossless audio (FLAC, ALAC) in MP4 | Plays video only; no error message |
| Windows Media Player (legacy) | H.265, VP9 | Black screen or "codec not supported" dialog |
| macOS QuickTime Player | HEVC 10-bit, non-square pixels | Stretched aspect ratio or blank video track |
| MPC-HC (default codecs) | Opus audio, VP9 | Audio skipped; video plays silently |
Validation check: Open the file in VLC and press Ctrl+J (Stream and Media Info) to confirm which codecs the player is actively decoding. Compare against the target application's documented support list.
Video Editors and NLEs
| Application | Known Limit | Symptom |
|---|---|---|
| Adobe Premiere Pro 2024 | Variable frame rate (VFR) from screen recorders | Audio desync, timeline stutter |
| DaVinci Resolve 18 | HEVC 4:2:2 chroma (requires Studio license) | Import fails with "unsupported format" |
| Final Cut Pro | MP4 files with non-zero edit list (duration correction) | Clip length misread; black frames appended |
| iMovie | AAC above 320 kbps, multi-channel audio beyond stereo | Import fails silently |
Diagnostic command: Run ffprobe -v error -show_entries stream=codec_name,profile,chroma_location -of default=noprint_wrappers=1 input.mp4. Compare the reported codec profile and chroma subsampling against the editor's published supported formats.
Mobile and Embedded Devices
- iOS native player: Refuses files with AC-3 audio (Dolby Digital) unless the device holds a licensed decoder. Re-encode audio to AAC.
- Android stock player: Supports H.264 and H.265, but many budget phones lack hardware HEVC decode. Software decode drains battery; files exceeding 4K at 60 fps will stutter.
- Car media systems (2015–2020): Typically support H.264 Baseline at Level 3.1 (720p at 30 fps) with AAC-LC, mono or stereo. Higher profiles or 5.1 audio produce "no signal" or "unsupported."
Container-Level Pitfalls
Edit Lists (ELST)
Some encoders—notably Apple's—write an edit list that shifts the playback start time. A file may exhibit a 0.5-second delay in VLC but play correctly in QuickTime. The ISO specification permits this, but many hardware players ignore edit lists and play from the first sample, producing a silent or black lead-in.
Check: Run ffmpeg -i input.mp4 -f ffmetadata and inspect the output for creation_time and encoder tags. If the file was produced by an Apple encoder, re-encode with -movflags +faststart and without edit lists: -fflags +genpts.
Moov Box Placement
A file with the moov box at the end (interleaved after mdat) requires the player to download the entire file before playback begins. Streaming players and web browsers will fail to start playback or display a spinner. This is a structural inefficiency, not corruption.
Fix: ffmpeg -i input.mp4 -c copy -movflags +faststart output.mp4 moves the moov box to the beginning. This operation is lossless and resolves web playback for all standards-compliant servers.
Safe Fallback Encoding Profile
For maximum compatibility across the platforms listed above:
ffmpeg -i input.mkv -c:v libx264 -preset medium -profile:v baseline -level 3.1 \
-pix_fmt yuv420p -c:a aac -b:a 128k -ac 2 \
-movflags +faststart output.mp4
Parameter rationale:
- baseline profile, level 3.1: Decodable by nearly every hardware decoder manufactured since 2010.
- yuv420p: Required by Baseline profile; avoids chroma subsampling errors.
- aac stereo: Universally supported; no AC-3 licensing constraints.
- +faststart: Enables progressive download for web playback.
Unrecoverable Compatibility Limits
Some files cannot be made compatible without re-encoding the underlying stream:
- 10-bit color depth (H.264 High 10 profile): No hardware decoder supports this; software decode is computationally heavy.
- Interlaced video in MP4: Most players expect progressive content; deinterlacing must occur during decode.
- MP4 files larger than 4 GB on FAT32-formatted storage: The container is valid; the filesystem is not.
- HEVC Main 10 Profile on devices without hardware HEVC decode: Software fallback exists but may be too slow for real-time playback.
In these cases, the only reliable path is transcoding to a supported profile. No metadata edit or container restructure will make a 10-bit H.264 file play on a Baseline-only decoder.