Что такое формат файла M4A?
.m4a (short for MPEG-4 Audio File) is an audio file that uses the MPEG-4 multimedia container format to store data. The MPEG-4 container is officially known as .mp4, and such files can store both audio and video data. .m4a files, however, carry audio only. Apple adopted the .m4a extension in 2004 - with iTunes 4.5 - to clearly distinguish audio-only MPEG-4 tracks from video files. The format is built on the ISO Base Media File Format, which itself evolved from Apple's QuickTime container.
Two types of compression
Most audio data in .m4a is encoded using the Advanced Audio Coding (AAC) codec. Some .m4a files, however, utilize Apple Lossless Audio (ALAC) compression instead. AAC is a lossy codec that keeps files small and easy to share; ALAC preserves every bit of the original audio at the cost of larger file sizes - typically 20-40 MB per song versus 3-10 MB for an AAC encode at 256 kbps.
.m4a vs. .mp3 - a comparison
.m4a is not an extension of the .mp3 standard; the two are separate formats that both use compression, though .m4a with AAC is the more modern approach. .m4a and .mp3 share many similarities - for example, both formats use compression - but .m4a technology offers better audio quality when encoded at the same bitrate. .m4a files are also smaller than .mp3 files at equivalent quality, and unlike .mp3, the format supports both lossy (AAC) and lossless (ALAC) encoding. All the advantages .m4a offers stem from better compression algorithms, a smaller transform block size, and a larger stationary signal block.
Uses of .m4a
.m4a is the default format for music distributed through the Apple Music store and for voice recordings captured on iOS and macOS devices. Apple removed DRM from its music catalog in 2009; DRM-protected files previously used the .m4p extension. Related variants sharing the same container include .m4b (bookmarkable audiobooks) and .m4r (iPhone ringtones). The format plays natively on macOS, iOS, Windows 10/11, Android, and in all modern browsers via the HTML5 <audio> element.
Безопасность и защита
РИСК: LOWM4A is passive media data, not executable code, so a genuine M4A is safe to play. Cautions: (1) a file named "song.m4a.exe" from an untrusted source is malware in disguise - check the real extension; (2) crafted media has occasionally exploited decoder bugs, so keep your player updated. Online M4A→MP3 converters upload your audio to a third party - for private recordings use a local tool (VLC, foobar2000, ffmpeg) instead.
Детали формата
в двух словахПрограммы, открывающие файлы M4A
Технические подробности
глубокая спецификация| Container format | ISO Base Media File Format (ISO/IEC 14496-12); hierarchical box/atom tree |
| MIME type | audio/mp4 (also: audio/x-m4a, audio/m4a) |
| Default audio codec | AAC (Advanced Audio Coding), typically AAC-LC profile |
| Lossless codec option | ALAC (Apple Lossless Audio Codec); stored in the same .m4a container |
| File signature | "ftypM4A " at byte offset 4-11; hex 66 74 79 70 4D 34 41 20 (bytes 0-3 hold the box size) |
| Byte order | Big-endian |
| Typical file size | 3-10 MB per song (AAC @ 256 kbps); 20-40 MB per song (ALAC lossless) |
| Sample rate | 8 kHz-96 kHz (AAC); up to 384 kHz (ALAC) |
| Bit depth | 16-bit or 24-bit typical for AAC; up to 32-bit integer for ALAC |
| Channel support | Mono, stereo, and multichannel up to 48 channels (AAC); stereo or multichannel (ALAC) |
| Internal box structure | ftyp (brand declaration), moov (track metadata and index), mdat (compressed audio samples) |
| Related extensions | .m4b (bookmarkable audiobooks), .m4r (iPhone ringtones), .m4p (legacy FairPlay DRM audio) |
| DRM | None in plain .m4a; Apple's FairPlay DRM was stored in .m4p, not .m4a |
| Typical AAC bitrate | 128-320 kbps; Apple Music encodes at 256 kbps AAC-LC |
| Metadata format | iTunes-style tags in moov/udta/meta box; supports title, artist, album, cover art, and more |
| Выпущен | 2004 (Apple adopted .m4a in iTunes 4.5 to distinguish audio-only MP4 from video) |
| Последняя версия | MPEG-4 Part 14 (ISO/IEC 14496-14); no separate 'm4a' versioning - codec/container revisions apply |
| Открыть стандартное | Да · без роялти |
| Спецификация | www.iso.org |