MP-4 Part 14
Extensions.mp4, .m4a, .m4p, .m4b, .m4r and .m4v[
Noextcodetrue
Mime
  • video/mp4
  • audio/mp4
Nomimecodetrue
Type codempg4
Magicp
Owner
ReleasedOctober 2001 (age 24)
Latest release versionISO/IEC 14496-14:2020
Latest release dateJanuary 2020 (age 6)
Container forAudio, video and text
Extended fromQuickTime File Format and MPEG-4 Part 12
StandardISO/IEC 14496-14
OpenNo[1][2]
FreeNo[1]

MP4 (formally MPEG-4 Part 14) is a digital multimedia container format most commonly used to store video and audio, but it can also be used to store other data such as subtitles and still images. Like most modern container formats, it allows streaming over the Internet. The only filename extension for MPEG-4 Part 14 files as defined by the specification is .mp4.

MPEG-4 Part 14 is a standard specified as a part of the MPEG-4 specifications, formally as ISO/IEC 14496-14:2003. Unlike the audio-only compression formats MP3 and MP2, MP4 is a container format that can hold various types of media from various codecs.[3] During the 2000s, portable media players were sometimes erroneously advertised as "MP4 players", even if they may play a different format like AMV video and not necessarily the MPEG-4 Part 14 format.

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),[4] 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):[5][6]

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).[9][10][11][12]

Metadata

MP4 files can contain metadata as defined by the format standard, and in addition, can contain Extensible Metadata Platform (XMP) metadata.

Filename extensions

While the only filename extension defined by the standard is .mp4, various filename extensions are commonly used to indicate intended content:

  • MPEG-4 files with audio and video generally use the standard .mp4 extension.
  • Audio-only MPEG-4 files generally have a .m4a (MPEG-4 Audio) extension. This is especially true of unprotected content.
    • MPEG-4 files with audio streams encrypted by FairPlay digital rights management as were sold through the iTunes Store use the .m4p (MPEG-4 Protected) extension. iTunes Plus tracks that the iTunes Store currently sells are unencrypted and use .m4a accordingly.
    • Audiobook and podcast files, which also contain metadata including chapter markers, images, and hyperlinks, can use the extension .m4a, but more commonly use the .m4b (MPEG-4 Audiobook) extension.
    • The Apple iPhone uses MPEG-4 audio for its ringtones but uses the .m4r extension rather than the .m4a extension.
  • Raw MPEG-4 Visual bitstreams are named .m4v but this extension is also sometimes used for video in MP4 container format[13] or in the M4V container format.
  • Mobile phones used to use 3GP, an implementation of MPEG-4 Part 12 (a.k.a. MPEG-4/JPEG2000 ISO Base Media file format), similar to MP4. It uses .3gp and .3g2 extensions. These files also store non-MPEG-4 data (H.263, AMR, TX3G). In practice, most (if not all) low end phones and feature phones recorded in this format, as most (if not all) other mobile phones and smartphones record MP4 files using the .mp4 file extension, and some high end phones[which?] can record in .raw. By the time that 4G technology was widespread, 3GP started to be phased out, and is now rarely seen.

History

MPEG-4 Part 14 is an instance of the more general ISO/IEC 14496-12:2004 (MPEG-4 Part 12: ISO base media file format), which is directly based upon the QuickTime File Format, which was published in 2001.[14][15][16][17][18][19] MPEG-4 Part 14 is essentially identical to the QuickTime File Format but formally specifies support for Initial Object Descriptors (IOD) and other MPEG features.[20] MPEG-4 Part 14 revises and completely replaces Clause 13 of ISO/IEC 14496-1 (MPEG-4 Part 1: Systems), in which the file format for MPEG-4 content was previously specified.[21]

The MPEG-4 file format, version 1, was published in 2001 as ISO/IEC 14496-1:2001, which is a revision of the MPEG-4 Part 1: Systems specification published in 1999 (ISO/IEC 14496-1:1999).[22][23][24] In 2003, the first version of the MP4 file format was revised and replaced by MPEG-4 Part 14: MP4 file format (ISO/IEC 14496-14:2003), commonly named as MPEG-4 file format version 2.[25][26] The MP4 file format was generalized into the ISO Base Media File format ISO/IEC 14496-12:2004, which defines a general structure for time-based media files. It in turn is used as the basis for other file formats in the family (for example, MP4, 3GP, and Motion JPEG 2000).[15][27][28]

MP4 file format versions
VersionRelease dateStandardDescriptionEdition
12001ISO/IEC 14496-1:2001MPEG-4 Part 1: SystemsFirst
22003ISO/IEC 14496-14:2003MPEG-4 Part 14: MP4 file formatFirst
22018ISO/IEC 14496-14:2018MPEG-4 Part 14: MP4 file formatSecond
22020ISO/IEC 14496-14:2020MPEG-4 Part 14: MP4 file formatThird

The MP4 file format defined some extensions over the ISO Base Media File Format to support MPEG-4 visual/audio codecs and various MPEG-4 Systems features such as object descriptors and scene descriptions. Some of these extensions are also used by other formats based on the ISO base media file format (e.g., 3GP).[29] A list of all registered extensions for ISO Base Media File Format is published on the official registration authority website. The registration authority for code-points (identifier values) in "MP4 Family" files is Apple Inc., and it is named in Annex D (informative) in MPEG-4 Part 12.[27] Codec designers should register the codes they invent, but registration is not mandatory,[30] and some invented and used code-points are not registered.[31] When someone is creating a new specification derived from the ISO Base Media File Format, all the existing specifications should be used both as examples and as a source of definitions and technology. If an existing specification already covers how a particular media type is stored in the file format (e.g., MPEG-4 audio or video in MP4), that definition should be used, and a new one should not be invented.[27]

See also

References

  1. ^ MPEG-4 File Format, Version 2 (Full draft). Sustainability of Digital Formats. Washington, D.C.: Library of Congress. 25 April 2023. Retrieved 23 February 2024.
  2. ^ Information technology – Coding of audio-visual objects – Part 14: MP4 file format (Standard). No. ISO/IEC 14496-14:2020. 3rd ed. ISO. January 2020.
  3. ^ "MP3 vs MP4: Key Differences and Which to Choose for Your Needs". www.acethinker.com. 2 April 2025. Retrieved 2025-04-17.
  4. ^ mp4ra.org - MP4 Registration authority, Registered Types - Codecs - ISO Code Points Archived 2019-08-23 at the Wayback Machine, Retrieved on 2009-07-14.
  5. ^ Chapman, Nigel & Chapman, Jenny (2004). Digital multimedia. 2. ed. Chichester [u.a.]: Wiley. ISBN 978-0-470-85890-5.
  6. ^ "The 'MP4' Registration Authority". mp4ra.org. Archived 2023-10-07 at the Wayback Machine. Retrieved 2023-08-31.
  7. ^ "AV1 Codec ISO Media File Format Binding". aomediacodec.github.io. Archived 2024-04-05 at the Wayback Machine. Retrieved 2024-04-27.
  8. ^ "Encapsulation of Opus in ISO Base Media File Format". 2018-08-28. Archived 2019-01-06 at the Wayback Machine. Retrieved 2019-01-05.
  9. ^ JK (25 January 2013). "Das Moov Atom und wo es stehen sollte" (in German). JKdigital. Archived 11 August 2020 at the Wayback Machine. Retrieved 11 August 2020.
  10. ^ "Fehlerhaft kopierte MP4-Datei reparieren" (in de-DE). preamp.org. November 2013. Archived 2020-08-11 at the Wayback Machine. Retrieved 2020-08-11.
  11. ^ eZs3 media service (1 March 2011). "Checking Metadata or Moov Atom Location". www.ezs3.com. Archived 11 August 2020 at the Wayback Machine. Retrieved 11 August 2020.
  12. ^ Levkov, Maxim. "Understanding the MPEG-4 movie atom | Adobe Developer Connection". www.adobe.com. Adobe Developer Network. Archived 2021-01-30 at the Wayback Machine. Retrieved 11 August 2020.
  13. ^ Doom9's Forum, MP4 FAQ Archived 2006-01-11 at the Wayback Machine, Retrieved on 2009-07-15
  14. ^ Apple Inc. (2001). "Classic Version of the QuickTime File Format Specification". Archived 2009-08-28 at the Wayback Machine. Retrieved 2009-06-14.
  15. ^ mp4ra.org - MP4 Registration authority. "References, MPEG-4 Registration authority". Archived 2018-08-19 at the Wayback Machine. Retrieved 2018-08-29.
  16. ^ "ISO Base Media File Format white paper - Proposal". Leonardo Chiariglione. International Organization for Standardization. April 2006. Archived 2008-07-14 at the Wayback Machine. Retrieved 2009-12-26.
  17. ^ "MPEG-4 File Formats white paper - Proposal". Leonardo Chiariglione. International Organization for Standardization. October 2005. Archived 2008-01-15 at the Wayback Machine. Retrieved 2009-12-26.
  18. ^ "ISO Base Media File Format white paper - Proposal". Leonardo Chiariglione. International Organization for Standardization. October 2009. Archived 2021-04-29 at the Wayback Machine. Retrieved 2014-10-31.
  19. ^ Apple Computer. "MPEG-4 Fact Sheet". Archived 2014-10-31 at the Wayback Machine.
  20. ^ "RE: QT vs MPEG-4". Archived 2007-05-10 at the Wayback Machine. Retrieved 2007-03-30.
  21. ^ International Organization for Standardization (2003). "MPEG-4 Part 14: MP4 file format; ISO/IEC 14496-14:2003". Archived 2016-10-10 at the Wayback Machine. Retrieved 2009-06-11.
  22. ^ Library of Congress (2001). "MPEG-4 File Format, Version 1". Archived 2017-03-20 at the Wayback Machine. Retrieved 2009-06-14.
  23. ^ Y. Lim & D. Singer (2006). "MIME Type Registration for MPEG-4". RFC Editor. doi:10.17487/RFC4337. Archived 2021-05-06 at the Wayback Machine. Retrieved 2009-06-14.
  24. ^ International Organization for Standardization (2001). "MPEG-4 Part 1: Systems; ISO/IEC 14496-1:2001". Archived 2016-08-19 at the Wayback Machine. Retrieved 2009-06-11.
  25. ^ Library of Congress (2003). "MPEG-4 File Format, Version 2". Archived 2009-06-25 at the Wayback Machine. Retrieved 2009-06-14.
  26. ^ "MPEG-4 Systems General Issues". chiariglione.org. July 2001. Archived 2010-04-13 at the Wayback Machine. Retrieved 2010-04-11.
  27. ^ "ISO/IEC 14496-12:2008, Information technology -- Coding of audio-visual objects -- Part 12: ISO base media file format" (ZIP). International Organization for Standardization. 2008. pp. 88, 94. Archived from the original on July 6, 2016. Retrieved 2009-05-30.
  28. ^ International Organization for Standardization (2004). "MPEG-4 Part 12: ISO base media file format; ISO/IEC 14496-12:2004". Archived 2016-08-19 at the Wayback Machine. Retrieved 2009-06-11.
  29. ^ "3GPP2 C.S0050-B Version 1.0, 3GPP2 File Formats for Multimedia Services". Third Generation Partnership Project 2. 18 May 2007. pp. 67, 68. Archived 7 October 2009 at the Wayback Machine. Retrieved 2009-06-12.
  30. ^ Greenberg, Steven (2009). "Registration of ftyp's". Archived 2009-10-24 at the Wayback Machine. Retrieved 2009-06-15.
  31. ^ Greenberg, Steven (2009). "Complete List of all known MP4 / QuickTime 'ftyp' designations". Archived 2018-01-21 at the Wayback Machine. Retrieved 2009-06-15.