Lably
Skip to content

MP4 file format

Digital multimedia format for storing video and audio

  • 6 min read
  • 4 chapters

Related on Lably

Through Multimedia and Internet

MP4 is derived from the ISO Base Media File Format, which in turn is based on the structure of the QuickTime File Format. The format organizes a presentation into tracks containing timed samples and associated metadata. Its underlying structure is composed of hierarchical data structures known as boxes (also called atoms in QuickTime terminology), which describe the contents and organization of the file. This structure allows MP4 files to support local playback, editing, progressive download, and streaming applications.

The MP4 format is widely used for distributing and storing audiovisual content because it can combine video, audio, subtitles, metadata, and other data within a single file. Common combinations include H.264/MPEG-4 AVC video with Advanced Audio Coding audio, although the MP4 container is not limited to these codecs. The format is also used in Internet and multimedia applications where its support for progressive download and fragmented files is useful.

The filename extension defined for MPEG-4 Part 14 files is .mp4. Other extensions, such as .m4a, .m4v, and .m4b, are commonly associated with particular types or uses of files based on the ISO Base Media File Format, but they should not be confused with separate container formats.

MPEG-4 Part 14 is one part of the broader MPEG-4 family of standards. It specifies the MP4 file format itself, while other parts of MPEG-4 specify technologies such as audio and video coding. The current edition of the MP4 file format standard is ISO/IEC 14496-14:2020.

During the 2000s, portable media players were sometimes marketed as "MP4 players". The term was often used generically for portable video players and did not necessarily mean that the devices supported the MPEG-4 Part 14 container; some instead supported other formats such as AMV.

Data streams

Most kinds of data can be embedded in MPEG-4 Part 14 files through private streams. A separate hint track is used to include streaming information in the file. The registered codecs for MPEG-4 Part 12-based files are published on the website of MP4 Registration authority (mp4ra.org), but most of them are not widely supported by MP4 players. The widely supported codecs and additional data streams are (but many more are also supported, including audio like FLAC or TrueHD):

  • Video: MPEG-H Part 2 (H.265/HEVC), MPEG-4 Part 10 (H.264/AVC), MPEG-4 Part 2 and AV1
    Other compression formats are less used: MPEG-2 and MPEG-1
  • Audio: Advanced Audio Coding (AAC)
    Also MPEG-4 Part 3 audio objects, such as Audio Lossless Coding (ALS), Scalable Lossless Coding (SLS), MP3, MPEG-1 Audio Layer II (MP2), MPEG-1 Audio Layer I (MP1), CELP, HVXC (speech), TwinVQ, Text To Speech Interface (TTSI) and Structured Audio Orchestra Language (SAOL)
    Other compression formats are less used: Apple Lossless, Free Lossless Audio Codec (added in late 2018), and Opus (added in late 2018)
  • Subtitles: MPEG-4 Timed Text (also known as 3GPP Timed Text).
    Nero Digital uses DVD Video subtitles in MP4 files

The moov atom contains information about video resolution, frame rates, orientation, display characteristics, and more. It might be placed at the beginning or end of the file. In the latter case, the video file is not playable if the file is incomplete (truncated).

Sign in to keep reading

3 more chapters are free with a Lably account.

More in Computing and communication