Apple Lossless Audio Codec

Revision as of 14:03, 23 May 2025 by 37.137.22.177 (talk)
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Template:Short description {{#invoke:Infobox|infobox}}Template:Template other{{#invoke:Check for unknown parameters | check | showblankpositional=1 | unknown = Template:Main other | preview = Page using Template:Infobox software with unknown parameter "_VALUE_"|ignoreblank=y | AsOf | author | background | bodystyle | caption | collapsetext | collapsible | developer | discontinued | engine | engines | genre | included with | language | language count | language footnote | latest preview date | latest preview version | latest release date | latest release version | latest_preview_date | latest_preview_version | latest_release_date | latest_release_version | licence | license | logo | logo alt | logo caption | logo upright | logo size | logo title | logo_alt | logo_caption | logo_upright | logo_size | logo_title | middleware | module | name | operating system | operating_system | other_names | platform | programming language | programming_language | released | replaced_by | replaces | repo | screenshot | screenshot alt | screenshot upright | screenshot size | screenshot title | screenshot_alt | screenshot_upright | screenshot_size | screenshot_title | service_name | size | standard | title | ver layout | website | qid }}Template:Main other Template:Infobox file format The Apple Lossless Audio Codec (ALAC, Template:IPAc-en), also known as Apple Lossless, or Apple Lossless Encoder (ALE), is an audio coding format, and its reference audio codec implementation, developed by Apple 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.<ref name="ALAC-term-1">{{#invoke:citation/CS1|citation |CitationClass=web }}</ref><ref name="ALAC-term-2">{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>

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

CodecEdit

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 also does not use any DRM scheme;{{ safesubst:#invoke:Unsubst||date=__DATE__ |$B= Template:Fix }} 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.<ref name="ALAC-space1">{{#invoke:citation/CS1|citation |CitationClass=web }}</ref><ref name="ALAC-space2">{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>

ALAC has been measured to require around four times as much CPU power to decode than FLAC does,<ref name="Rockbox-comparison">{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> 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.<ref>Template:Cite book</ref>

Partly because of the use of an MP4 container, ALAC does not contain integrated error checking.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>

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).

HistoryEdit

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.<ref name="MW info 1">{{#invoke:citation/CS1|citation |CitationClass=web }}</ref> The codec is also used in the AirPort and AirPlay implementation.

David Hammerton and Serafina 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.<ref name="ALAC-reverse">{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>

The Apple Lossless Encoder (and decoder) were released as open source software under the Apache License version 2.0 on October 27, 2011.<ref name="Apache-license">{{#invoke:citation/CS1|citation |CitationClass=web }}</ref><ref name="Apache-ars">{{#invoke:citation/CS1|citation |CitationClass=web }}</ref><ref name="Apache-3">{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>

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.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>

SoftwareEdit

All current iOS devices can play ALAC encoded files.

However, in the iOS 9.3.6 (13G37) update, which was released on July 22, 2019, after iOS 9.3.5 (13G36) on August 25, 2016, as the last update for the iPhone 4S and aimed at fixing security issues, etc., there was still a bug with the ALAC codec in Music app.

This issue involved songs with the ALAC codec being synced internally to the phone by iTunes (known as Apple Music as of June 3, 2019), and when playing that song/album, the album covert from another album (in a non-ALAC format) would be displayed.

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.

The introduction of the BlackBerry OS 10 in 2013 made it possible to play the ALAC Audio Codec.

Earlier, the BlackBerry OS 7 operating system in 2011 had enabled the playback of the FLAC on BlackBerry phones.

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.Template:Clarify

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.<ref>{{#invoke:citation/CS1|citation |CitationClass=web }}</ref>

UsageEdit

For various reasons, different companies don't generally support ALAC codec.

For example, Samsung, which is still unable to play ALAC with its default player , Samsung Music on its phones, Despite numerous updates, you need to use third-party apps such as VLC, etc. for Playing ALAC.

However, on phones such as Sony, the Sony Music Center app is able to play ALAC.

Also, various companies such as Pioneer and Sony do not support ALAC codec in their Vehicle audio systems, and only expensive and flagship players from these two companies are able to play ALAC. Although there is not a big difference in quality between ALAC and FLAC , these companies still turn to FLAC for playing Lossless Codecs.

See alsoEdit

Template:Portal

ReferencesEdit

Template:Reflist

External linksEdit

Template:Compression formats Template:Compression Software Implementations Template:Apple