MP4

MP4 is a container, not a codec: it holds video, audio, subtitles and metadata as separate tracks. Almost every MP4 in the wild carries H.264 video and AAC audio, which is the most compatible pair available.

At a glance

MIME type
video/mp4
Extensions
.mp4, .m4v
Kind
Video
Compression
Container format
Type
Container (holds encoded streams)
Transparency
Not supported
Bit depth
8 or 10-bit video

File structure

MP4 is based on ISO Base Media File Format boxes. The moov box describes tracks and timing, mdat holds the actual samples. If moov sits at the end of the file, playback must wait for the whole download — "faststart" simply moves it to the front.

How the data is compressed

The container does not compress anything. H.264 or H.265 inside it does the work with inter-frame prediction: most frames store only what changed since the previous one, which is why a two-hour film can fit in a few gigabytes.

Where it is accepted

Effectively universal for playback: browsers, phones, TVs, cameras, social platforms. Hardware decoding of H.264 is present on essentially every device made in the last decade.

Strengths

  • Best-supported video container in existence.
  • H.264 + AAC decodes in hardware almost everywhere.
  • Supports multiple audio and subtitle tracks plus chapters.

Weaknesses

  • A .mp4 extension says nothing about the codec inside; HEVC in MP4 still fails on many devices.
  • H.264 is less efficient than VP9, AV1 or H.265 at the same quality.
  • Subtitle support depends on the player, not on the container.

Typical uses

  • Delivering video that must play on any device.
  • Sharing phone recordings with non-Apple users.
  • Uploading to platforms that require MP4.

Common problems

  • A .mov renamed to .mp4 usually still fails, because the codec did not change.
  • MP4 with HEVC plays on Apple hardware and fails on many Windows machines without extensions.
  • Files without faststart stall on progressive download players.

Convert or compress it

Related formats