What is an M4P File?
An M4P file is an MPEG-4 audio container historically associated with FairPlay-protected music from Apple’s iTunes ecosystem. Access may depend on digital-rights authorization rather than codec support alone.
How M4P Files work
M4P is the extension Apple’s software uses for protected MPEG-4 audio, which Apple’s type reference describes as the iTunes music store format. Songs sold by the iTunes Store were originally AAC audio protected with Apple’s FairPlay system, playable by users with the required Apple ID on a limited number of authorized computers. In January 2009 Apple announced that the store’s catalog was moving to iTunes Plus, its DRM-free 256 kbps AAC format, with the remaining songs to follow by the end of that March, which is why store purchases from before the change are the classic source of M4P files. Playing one involves ordinary container and codec handling plus a separate entitlement decision made by Apple’s software.
Key facts
- 1Changing the suffix from
.m4pto.m4achanges only the name. Apple’s type reference lists protected MPEG-4 audio as its own type, separate from the.m4aMPEG-4 audio type, and Apple describes the protection as part of how the song is encoded. A renamed file therefore remains protected and still needs authorization to play. - 2Apple’s own conversion feature does not accept these files. Apple’s support documentation says older purchased songs are encoded in a Protected AAC format that prevents them from being converted, and the Apple Music guide says iTunes Store purchases can be converted only if they are iTunes Plus songs. A transcoding pipeline should classify M4P input as not convertible instead of queuing it for a retry.
- 3Remuxing is not a way around the protection. Stream copy moves the stored packets into a new container without decoding or encoding them, and FFmpeg warns that it might not work in some cases. Where the copy does produce a file, it carries the same protected samples unchanged, so the result is no more convertible than the original.
- 4The supportable replacement is an unprotected copy of the same recording. When Apple announced the move to iTunes Plus in January 2009, it offered an upgrade of previously purchased songs to the DRM-free format. Whether an upgrade or a DRM-free download is still offered for a particular track has to be confirmed with Apple, so keep the protected originals until a replacement is in hand.
When M4P Files matter
Library migrations should separate protected M4P tracks from unprotected MPEG-4 audio before any conversion step. Apple states that older purchased songs in Protected AAC format cannot be converted, so an AAC decoder alone is not enough: playback depends on a computer or device that is authorized for the Apple Account that bought the song.
Sources
- Apple Support: Convert a song to a different file format on your Mac with the Apple Music app (note on Protected AAC)
- Apple Music User Guide: Convert music file formats in Music on Mac
- Apple press release, January 6, 2009: Changes Coming to the iTunes Store (iTunes Plus, DRM-free catalog, upgrade offer)
- Apple Support: Authorize or deauthorize your computer for Apple Account purchases
- Apple Developer archive: System-Declared Uniform Type Identifiers (com.apple.protected-mpeg-4-audio, .m4p)
- Library of Congress: QuickTime Audio, AAC Codec format description (m4p extension, FairPlay, authorization)
- FFmpeg tool documentation: Streamcopy