Apple Lossless Audio Codec

Lossless digital audio coding format

Apple Lossless Audio CodecDeveloper(s)| Apple Inc.

|

Initial release| April 28, 2004; 20 years ago (2004-04-28)
Stable release|

October 28, 2011; 12 years ago (2011-10-28)

Repository|

* github.com/macosforge/alac

Type| Audio codec
License| Apache License 2.0
Website| alac.macosforge.org
Filename extension|

.m4a .caf

|

Developed by| Apple Inc.
Type of format| Lossless audio
Contained by| MPEG-4 Part 14
Open format?| Yes
Free format?| Yes

The Apple Lossless Audio Codec (ALAC), also known as Apple Lossless, or Apple Lossless Encoder (ALE), is an audio coding format, and its reference audio codec implementation, developed by Apple Inc. for lossless data compression of digital music. After initially keeping it proprietary from its inception in 2004, in late 2011 Apple made the codec available open source and royalty-free. Traditionally, Apple has referred to the codec as Apple Lossless, though more recently it has begun to use the abbreviated term ALAC when referring to the codec.[1][2]

## Codec

[edit]

ALAC supports up to 8 channels of audio at 16, 20, 24 and 32 bit depth with a maximum sample rate of 384 kHz.

ALAC data is frequently stored within an MP4 container with the filename extension .m4a. This extension is also used by Apple for lossy AAC audio data in an MP4 container (same container, different audio encoding). The codec can also be used by the .CAF file type container, though this is much less common.

ALAC is not a variant of AAC (which is a lossy format), but rather an unrelated lossless format that uses linear prediction (similar to other lossless codecs).

ALAC also does not use any DRM scheme;[dubious - discuss] but by the nature of the MP4 container, it is feasible that DRM could be applied to ALAC much in the same way it is applied to files in other QuickTime containers.

According to Apple, audio files compressed with its lossless codec will use up "about half the storage space" that the uncompressed data would require. Testers using a selection of music have found that compressed files are about 40% to 60% the size of the originals depending on the kind of music, which is similar to other lossless formats.[3][4]

ALAC has been measured to require around four times as much CPU power to decode than FLAC does,[5] with implications for battery life on limited-power devices. Still the format has been recommended for older iPod devices based on claims of lower power usage.[6]

Partly because of the use of an MP4 container, ALAC does not contain integrated error checking.[7]

## History

[edit]

The data compression software for encoding into ALAC files, Apple Lossless Encoder, was introduced into the Mac OS X Core Audio framework on April 28, 2004, together with the QuickTime 6.5.1 update, thus making it available in iTunes since version 4.5 and above, and its replacement, the Music application.[8] The codec is also used in the AirPort and AirPlay implementation.

David Hammerton and Cody Brocious analyzed and reverse engineered the codec without any documents on the format. On March 5, 2005, Hammerton published a simple open source decoder written in the C programming language on the basis of the work.[9]

The Apple Lossless Encoder (and decoder) were released as open source software under the Apache License version 2.0 on October 27, 2011.[10][11][12]

On May 17, 2021, Apple announced that they would begin offering lossless audio in Apple Music in June 2021, with all lossless music being encoded using ALAC.[13]

## Software

[edit]

All current iOS devices can play ALAC encoded files.

The open source library libavcodec incorporates both a decoder and an encoder for the ALAC format, which means that media players based on that library (including VLC media player and MPlayer, as well as many media center applications for home theater computers, such as Plex, Kodi, and Boxee) are able to play ALAC files.

As of 2015, Windows 10 includes support for ALAC encoding and decoding, thereby enabling other media players to use it, e.g. Windows Media Player when ripping CDs or the Spotify desktop client for playback of local .m4a files.

The library was subsequently optimized for ARM processors and included in Rockbox.[clarification needed]

Foobar2000 will play ALAC files as will JRiver Media Center and BitPerfect.

Lossless music via ALAC was added to Apple Music in June 2021, at no additional cost for all subscribers. The maximum fidelity for lossless music on Apple Music is 24-bit at 192 kHz.[14]

## See also

[edit]

* Free and open-source software portal

* Audio Interchange File Format (AIFF)
* Comparison of audio coding formats
* Free Lossless Audio Codec (FLAC)
* Monkey's Audio
* TTA
* WavPack
* Windows Media Audio 9 Lossless

## References

[edit]

1. ^ "Subscribe to iTunes Match". Apple Inc. May 8, 2017. Retrieved May 31, 2017. "If you have songs encoded in ALAC, WAV, or AIFF formats, we create an AAC 256 Kbps version and upload it to iCloud so that it can be played on all of your other devices."
2. ^ "Access your music collection on all of your devices with Apple Music". Apple Inc. May 12, 2017. Retrieved May 31, 2017. "We create AAC 256Kbps versions of songs that are encoded in ALAC, WAV, or AIFF formats and add the AAC version to iCloud Music Library."
3. ^ "Lossless comparison - HydrogenAudio Knowledgebase". HydrogenAudio. July 27, 2011. Retrieved June 27, 2012.
4. ^ McElhearn, Kirk (November 5, 2011). "An Overview of Apple Lossless Compression Results". Kirkville. Retrieved June 27, 2012.
5. ^ "CodecPerformanceComparison". RockBox. July 28, 2013. Retrieved November 29, 2014.
6. ^ Owsinski, Bobby (December 26, 2007). The Mastering Engineer's Handbook: The Audio Mastering Handbook, Second Edition. Thomson Course Technology PTR. Chapter 12. Internet Delivery Formats > Lossless Codecs. ISBN 978-1-59863-449-5. Archived from the original on September 8, 2011. Retrieved January 15, 2012.
7. ^ "Which is the best lossless codec? – Hydrogenaudio Forums". Hydrogenaudio. April 1, 2014. Retrieved June 30, 2014.
8. ^ "QuickTime 6.5.1 adds Lossless Encoder, improves AAC". Macworld. 2004-04-28. Retrieved 2016-01-24.
9. ^ "ALAC". Crazney.net. 2004. Archived from the original on June 20, 2012. Retrieved June 27, 2012.
10. ^ "Apple Lossless Audio Codec". MacOS Forge. October 27, 2011. Retrieved October 29, 2011.
11. ^ Foresman, Chris (October 28, 2011). "After seven years, Apple open sources its Apple Lossless Audio Codec". Ars Technica. Retrieved October 29, 2011.
12. ^ von Eitzen, Chris (October 28, 2011). "Apple open sources its ALAC lossless audio codec". The H. Archived from the original on 15 May 2012. Retrieved October 29, 2011.
13. ^ "Apple Music announces Spatial Audio and Lossless Audio". Apple Newsroom. "Apple Music will also make its catalog of more than 75 million songs available in Lossless Audio. Apple uses ALAC (Apple Lossless Audio Codec) to preserve every single bit of the original audio file. This means Apple Music subscribers will be able to hear the exact same thing that the artists created in the studio."
14. ^ "Apple Music announces Spatial Audio and Lossless Audio". Apple Newsroom. Retrieved 17 May 2021.

## External links

[edit]

* ALAC Project at MacOSForge
* ALAC technical features at MacOSForge
* ALAC importing at Apple
* ALAC compression rates for different types of music article by Kirk McElhern

* v
* t
* e

Multimedia compression and container formats

Video
compression|

| ISO, IEC,
MPEG|

* DV
* MJPEG
* Motion JPEG 2000
* MPEG-1
* MPEG-2
* Part 2
* MPEG-4
* Part 2 / ASP
* Part 10 / AVC
* Part 33 / IVC
* MPEG-H
* Part 2 / HEVC
* MPEG-I
* Part 3 / VVC
* MPEG-5
* Part 1 / EVC
* Part 2 / LCEVC

|

ITU-T, VCEG|

* H.120
* H.261
* H.262
* H.263
* H.264 / AVC
* H.265 / HEVC
* H.266 / VVC

SMPTE|

* VC-1
* VC-2
* VC-3
* VC-5
* VC-6

TrueMotion and AOMedia|

* TrueMotion S
* VP3
* VP6
* VP7
* VP8
* VP9
* AV1

Chinese Standard|

* AVS1 P2/AVS+(GB/T 20090.2/16)
* AVS2 P2(GB/T 33475.2,GY/T 299.1)
* HDR Vivid(GY/T 358)
* AVS3 P2(GY/T 368)

Others|

* Apple Video
* AVS
* Bink
* Cinepak
* Daala
* DVI
* FFV1
* Huffyuv
* Indeo
* Lagarith
* Microsoft Video 1
* MSU Lossless
* OMS Video
* Pixlet
* ProRes
* 422
* 4444
* QuickTime
* Animation
* Graphics
* RealVideo
* RTVideo
* SheerVideo
* Smacker
* Sorenson Video/Spark
* Theora
* Thor
* Ut
* WMV
* XEB
* YULS

Audio
compression|

| ISO, IEC,
MPEG|

* MPEG-1 Layer II
* Multichannel
* MPEG-1 Layer I
* MPEG-1 Layer III (MP3)
* AAC
* HE-AAC
* AAC-LD
* MPEG Surround
* MPEG-4 ALS
* MPEG-4 SLS
* MPEG-4 DST
* MPEG-4 HVXC
* MPEG-4 CELP
* MPEG-D USAC
* MPEG-H 3D Audio

|

ITU-T|

* G.711
* A-law
* µ-law
* G.718
* G.719
* G.722
* G.722.1
* G.722.2
* G.723
* G.723.1
* G.726
* G.728
* G.729
* G.729.1

IETF|

* Opus
* iLBC
* Speex
* Vorbis
* FLAC

3GPP|

* AMR
* AMR-WB
* AMR-WB+
* EVRC
* EVRC-B
* EVS
* GSM-HR
* GSM-FR
* GSM-EFR

ETSI|

* AC-3
* AC-4
* DTS

Bluetooth SIG|

* SBC
* LC3

Chinese Standard|

* AVS1 P10(GB/T 20090.10)
* AVS2 P3(GB/T 33475.3)
* Audio Vivid(GY/T 363)
* DRA(GB/T 22726)
* L2HC
* ExAC(SJ/T 11299.4)

Others|

* ACELP
* ALAC
* Asao
* ATRAC
* CELT
* Codec 2
* iSAC
* Lyra
* MELP
* Monkey's Audio
* MT9
* Musepack
* OptimFROG
* OSQ
* QCELP
* RCELP
* RealAudio
* RTAudio
* SD2
* SHN
* SILK
* Siren
* SMV
* SVOPC
* TTA
* True Audio
* TwinVQ
* VMR-WB
* VSELP
* WavPack
* WMA
* MQA
* aptX
* aptX HD
* aptX Low Latency
* aptX Adaptive
* LDAC
* LHDC
* LLAC

Image
compression|

| IEC, ISO, IETF,
W3C, ITU-T, JPEG|

* CCITT Group 4
* GIF
* HEIC / HEIF
* HEVC
* JBIG
* JBIG2
* JPEG
* JPEG 2000
* JPEG-LS
* JPEG XL
* JPEG XR
* JPEG XS
* JPEG XT
* PNG
* TIFF
* TIFF/EP
* TIFF/IT

|

Others|

* APNG
* AV1
* AVIF
* BPG
* DjVu
* EXR
* FLIF
* ICER
* MNG
* PGF
* QOI
* QTVR
* WBMP
* WebP

Containers|

| ISO, IEC|

* MPEG-ES
* MPEG-PES
* MPEG-PS
* MPEG-TS
* ISO/IEC base media file format
* MPEG-4 Part 14 (MP4)
* Motion JPEG 2000
* MPEG-21 Part 9
* MPEG media transport

|

ITU-T|

* H.222.0
* T.802

IETF|

* RTP
* Ogg
* Matroska

SMPTE|

* GXF
* MXF

Others|

* 3GP and 3G2
* AMV
* ASF
* AIFF
* AVI
* AU
* BPG
* Bink
* Smacker
* BMP
* DivX Media Format
* EVO
* Flash Video
* HEIF
* IFF
* M2TS
* Matroska
* WebM
* QuickTime File Format
* RatDVD
* RealMedia
* RIFF
* WAV
* MOD and TOD
* VOB, IFO and BUP

Collaborations|

* NETVC
* MPEG LA
* Alliance for Open Media

Methods|

* Entropy
* Arithmetic
* Huffman
* Modified
* LPC
* ACELP
* CELP
* LSP
* WLPC
* Lossless
* Lossy
* LZ
* DEFLATE
* LZW
* PCM
* A-law
* µ-law
* ADPCM
* DPCM
* Transforms
* DCT
* FFT
* MDCT
* Wavelet
* Daubechies
* DWT

Lists|

* Comparison of audio coding formats
* Comparison of video codecs
* List of codecs

See Compression methods for techniques and Compression software for codecs

* v
* t
* e

Data compression software

Archivers with
compression
(comparison)|

| Free software|

* 7-Zip
* Ark
* Expander
* FreeArc
* GNOME Archive Manager
* Info-ZIP
* KGB Archiver
* PAQ
* pax
* PeaZip
* XAD (decompression only)
* Xarchiver
* Zipeg
* ZPAQ

|

Freeware|

* Filzip
* LHA
* Lhasa (decompression only)
* StuffIt Expander (decompression only)
* The Unarchiver (decompression only)
* TUGZip
* ZipGenius

Commercial|

* ARC
* ALZip
* Archive Utility
* ARJ
* BetterZip
* MacBinary
* PKZIP/SecureZIP
* PowerArchiver
* StuffIt
* WinAce
* WinRAR
* WinZip

Non-archiving
compressors|

| Generic|

* bzip2
* compress
* gzip
* lzip
* lzop
* pack
* rzip
* Snappy
* XZ Utils
* zstd

|

For code|

UPX

Audio
compression
(comparison)|

| Lossy|

* AAC
* Fraunhofer FDK AAC
* Nero AAC Codec
* FAAC
* Helix DNA Producer
* MP3
* l3enc
* LAME
* TooLAME
* libavcodec
* libcelt
* libopus
* libspeex
* Musepack
* libvorbis
* Windows Media Encoder

|

Lossless|

* ALAC
* FLAC
* libavcodec
* Monkey's Audio
* mp4als
* OptimFROG
* Shorten
* WavPack
* L2HC

Video
compression
(comparison)|

| Lossy|

| MPEG-4 ASP|

* 3ivx
* DivX
* Nero Digital
* FFmpeg
* HDX4
* Xvid

|

H.264|

* CoreAVC
* Blu-code
* DivX
* FFmpeg
* Nero Digital
* OpenH264
* QuickTime
* x264

HEVC|

* DivX
* x265

Others|

* CineForm
* Cinepak
* Daala
* DNxHD
* Helix DNA Producer
* Indeo
* libavcodec
* Schrödinger (Dirac)
* SBC
* Sorenson
* VP7
* libtheora
* libvpx
* Windows Media Encoder

Lossless|

* FFV1
* Huffyuv
* Lagarith
* MSU Lossless
* YULS

* See also: compression methods and compression formats

* v
* t
* e

Apple Inc.

* History
* Outline
* Timeline of products
* Environment
* Marketing
* Supply chain
* Trade unions

Products|

| Hardware|

| Mac|

* iMac
* Pro
* MacBook
* Air
* Pro
* Mini
* Studio
* Pro

|

iPod|

* Classic
* Mini
* Nano
* Shuffle
* Touch

iPhone|

* Hardware
* History
* iPhone models

iPad|

* Mini
* Air
* Pro
* Accessories

AirPods|

* Pro
* Max

Other|

* Apple SIM
* AirTag
* Beats
* Pill
* HomePod
* Mini
* Silicon
* TV
* Vision Pro
* Watch

Software|

| Operating
systems|

* iOS / iPadOS
* iPhones
* iPads
* iOS history
* iPadOS history
* Apps
* macOS
* History
* Server
* tvOS
* watchOS
* bridgeOS
* Darwin
* Classic Mac OS
* visionOS

|

* CarPlay
* Classroom
* HomeKit
* Core Foundation
* Developer Tools
* FileMaker
* Final Cut Pro
* X
* Compressor
* Motion
* Logic Pro
* MainStage
* iLife
* GarageBand
* iMovie
* iPhoto
* iTunes
* iWork
* Keynote
* Numbers
* Pages
* Mail
* QuickTime
* Safari
* SceneKit
* Shazam
* Siri
* Swift
* Xcode

Services|

| Financial|

* Card
* Pay
* Wallet

|

Media|

* Arcade
* Books
* Music
* 1
* Beats Music
* Up Next
* Festival
* iTunes Radio
* App
* News
* Newsstand
* Podcasts
* TV
* +
* originals
* MLS Season Pass

Communication|

* FaceTime
* Walkie-Talkie
* iMessage
* iChat
* App
* Game Center

Retail and
digital sales|

* App Store
* macOS
* iTunes Store
* Connect
* Store
* Fifth Avenue

Support|

* AppleCare+
* AASP
* Certifications
* Genius Bar
* ProCare
* One to One

Other|

* ID
* Sign in with Apple
* One
* Developer
* iAd
* TestFlight
* WWDC
* iCloud
* MobileMe
* Find My
* Fitness
* Photos
* Maps
* Flyover
* Look Around

Companies|

| Subsidiaries|

* Anobit
* Apple IMC
* Apple Studios
* Beats
* Beddit
* Braeburn Capital
* Claris

|

Acquisitions|

* Completed
* Anobit
* AuthenTec
* Beats
* Beddit
* BIS Records
* Cue
* EditGrid
* Emagic
* FingerWorks
* Intrinsity
* InVisage Technologies
* The Keyboard Company
* Lala
* Metaio
* NeXT
* Nothing Real
* P.A. Semi
* Power Computing
* PrimeSense
* Shazam Entertainment Limited
* Siri
* Texture
* Topsy
* Potential
* Disney

Partnerships|

* AIM alliance
* Kaleida Labs
* Taligent
* Akamai
* Arm
* DiDi
* Digital Ocean
* iFund
* Imagination
* Rockstar Consortium

Related|

* Advertising
* "1984"
* "Think different"
* "Get a Mac"
* iPod
* Product Red
* Ecosystem
* Events
* Criticism
* Right to repair
* Tax
* Headquarters
* Campus
* Park
* University
* Design
* IDg
* Typography
* Book
* History
* Codenames
* Community
* AppleMasters
* Litigation
* Antitrust
* Non-recruiting agreements
* Price-fixing ebooks
* FBI encryption dispute
* Epic Games
* iOS app approvals
* Unions
* #AppleToo
* Depictions of Steve Jobs
* Linux
* Asahi Linux
* iPodLinux
* Car project

People|

| Executives|

| Current|

* Tim Cook (CEO)
* Jeff Williams (COO)
* Luca Maestri (CFO)
* Katherine Adams (General Counsel)
* Eddy Cue
* Craig Federighi
* Isabel Ge Mahe
* John Giannandrea
* Lisa Jackson
* Greg Joswiak
* Sabih Khan
* Deirdre O'Brien
* Dan Riccio
* Phil Schiller
* Johny Srouji
* John Ternus

|

Former|

* Michael Scott (CEO)
* Mike Markkula (CEO)
* John Sculley (CEO)
* Michael Spindler (CEO)
* Gil Amelio (CEO)
* Steve Jobs (CEO)
* Jony Ive (CDO)
* Angela Ahrendts
* Fred D. Anderson
* John Browett
* Guerrino De Luca
* Paul Deneve
* Al Eisenstat
* Tony Fadell
* Scott Forstall
* Ellen Hancock
* Nancy R. Heinen
* Ron Johnson
* David Nagel
* Peter Oppenheimer
* Mark Papermaster
* Jon Rubinstein
* Bertrand Serlet
* Bruce Sewell
* Sina Tamaddon
* Avie Tevanian
* Steve Wozniak

Board of
directors|

| Current|

* Arthur D. Levinson (Chairman)
* Tim Cook (CEO)
* James A. Bell
* Alex Gorsky
* Al Gore
* Andrea Jung
* Ronald D. Sugar
* Susan L. Wagner

|

Former|

* Mike Markkula (Chairman)
* John Sculley (Chairman)
* Steve Jobs (Chairman)
* Gil Amelio
* Fred D. Anderson
* Bill Campbell
* Mickey Drexler
* Al Eisenstat
* Larry Ellison
* Robert A. Iger
* Delano Lewis
* Arthur Rock
* Eric Schmidt
* Michael Scott
* Michael Spindler
* Edgar S. Woolard Jr.
* Jerry York

Founders|

* Steve Jobs
* Steve Wozniak
* Ronald Wayne

* Italics indicate discontinued products, services, or defunct companies.
* Category

*[v]: View this template
*[t]: Discuss this template
*[e]: Edit this template