Apple Lossless Audio Codec

Last updated
Apple Lossless Audio Codec
Developer(s) Apple Inc.
Initial releaseApril 28, 2004;20 years ago (2004-04-28)
Stable release
October 28, 2011;12 years ago (2011-10-28)
Repository
Type Audio codec
License Apache License 2.0
Website alac.macosforge.org
Filename extension
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]

Contents

Codec

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 ] 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

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

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

Related Research Articles

<span class="mw-page-title-main">Audio file format</span> Computer format for digital audio

An audio file format is a file format for storing digital audio data on a computer system. The bit layout of the audio data is called the audio coding format and can be uncompressed, or compressed to reduce the file size, often using lossy compression. The data can be a raw bitstream in an audio coding format, but it is usually embedded in a container format or an audio data format with defined storage layer.

A codec is a device or computer program that encodes or decodes a data stream or signal. Codec is a portmanteau of coder/decoder.

Windows Media Audio (WMA) is a series of audio codecs and their corresponding audio coding formats developed by Microsoft. It is a proprietary technology that forms part of the Windows Media framework. WMA consists of four distinct codecs. The original WMA codec, known simply as WMA, was conceived as a competitor to the popular MP3 and RealAudio codecs. WMA Pro, a newer and more advanced codec, supports multichannel and high-resolution audio. A lossless codec, WMA Lossless, compresses audio data without loss of audio fidelity. WMA Voice, targeted at voice content, applies compression using a range of low bit rates. Microsoft has also developed a digital container format called Advanced Systems Format to store audio encoded by WMA.

Audio Interchange File Format (AIFF) is an audio file format standard used for storing sound data for personal computers and other electronic audio devices. The format was developed by Apple Inc. in 1988 based on Electronic Arts' Interchange File Format and is most commonly used on Apple Macintosh computer systems.

Monkey's Audio is an algorithm and file format for lossless audio data compression. Lossless data compression does not discard data during the process of encoding, unlike lossy compression methods such as Advanced Audio Coding, MP3, Vorbis, and Opus. Therefore, it may be decompressed to a file that is identical to the source material.

Advanced Audio Coding (AAC) is an audio coding standard for lossy digital audio compression. It was designed to be the successor of the MP3 format and generally achieves higher sound quality than MP3 at the same bit rate.

WavPack is a free and open-source lossless audio compression format and application implementing the format. It is unique in the way that it supports hybrid audio compression alongside normal compression which is similar to how FLAC works. It also supports compressing a wide variety of lossless formats, including various variants of PCM and also DSD as used in SACDs, together with its support for surround audio.

<span class="mw-page-title-main">Rockbox</span> Firmware replacement for various devices

Rockbox is a free and open-source software replacement for the OEM firmware in various forms of digital audio players (DAPs) with an original kernel. It offers an alternative to the player's operating system, in many cases without removing the original firmware, which provides a plug-in architecture for adding various enhancements and functions. Enhancements include personal digital assistant (PDA) functions, applications, utilities, and games. Rockbox can also retrofit video playback functions on players first released in mid-2000. Rockbox includes a voice-driven user-interface suitable for operation by visually impaired users.

An audio converter is a software or hardware tool that converts audio files from one format to another. This process is often necessary when users encounter compatibility issues with different devices, applications, or platforms that support specific audio file formats. Audio converters can be employed for a variety of purposes, ranging from personal entertainment to professional audio production.

Flash Video is a container file format used to deliver digital video content over the Internet using Adobe Flash Player version 6 and newer. Flash Video content may also be embedded within SWF files. There are two different Flash Video file formats: FLV and F4V. The audio and video data within FLV files are encoded in the same way as SWF files. The F4V file format is based on the ISO base media file format, starting with Flash Player 9 update 3. Both formats are supported in Adobe Flash Player and developed by Adobe Systems. FLV was originally developed by Macromedia. In the early 2000s, Flash Video was the de facto standard for web-based streaming video. Users include Hulu, VEVO, Yahoo! Video, metacafe, Reuters.com, and many other news providers.

The following tables compare general and technical information for a variety of audio coding formats.

<span class="mw-page-title-main">MPEG-4 SLS</span> Extension to the MPEG-4 Audio standard

MPEG-4 SLS, or MPEG-4 Scalable to Lossless as per ISO/IEC 14496-3:2005/Amd 3:2006 (Scalable Lossless Coding), is an extension to the MPEG-4 Part 3 (MPEG-4 Audio) standard to allow lossless audio compression scalable to lossy MPEG-4 General Audio coding methods (e.g., variations of AAC). It was developed jointly by the Institute for Infocomm Research (I2R) and Fraunhofer, which commercializes its implementation of a limited subset of the standard under the name of HD-AAC. Standardization of the HD-AAC profile for MPEG-4 Audio is under development (as of September 2009).

OptimFROG is a proprietary, lossless audio codec developed by Florin Ghido. OptimFROG is optimized for high compression at the expense of encoding and decoding speed, and consistently measures among the highest compressing lossless codecs. OptimFROG comes with three compressors: a lossless codec for integer LPCM format in WAV files, one for IEEE 754 floating-point WAV files, and third codec called DualStream.

<span class="mw-page-title-main">Mp3tag</span> Tag editor for Microsoft Windows and Apple macOS

Mp3tag is a metadata tag editor that supports many popular audio file formats. It is freeware for Microsoft Windows, while it costs USD $19.99 for Apple macOS in the Mac App Store.

<span class="mw-page-title-main">SUPER (computer program)</span> Front-end for video players and encoders

Simplified Universal Player Encoder & Recorder (SUPER) is a closed-source front end for open-source software video players and encoders provided by the FFmpeg, MEncoder, MPlayer, x264, ffmpeg2theora, musepack, Monkey's Audio, True Audio, WavPack, libavcodec, and the Theora/Vorbis RealProducer plugIn projects. It was first released in 2005. SUPER provides a graphical user interface to these back-end programs, which use a command-line interface.

MPEG-1 Audio Layer III HD was an audio compression codec developed by Technicolor, formerly known as Thomson.

<span class="mw-page-title-main">Audio coding format</span> Digitally coded format for audio signals

An audio coding format is a content representation format for storage or transmission of digital audio. Examples of audio coding formats include MP3, AAC, Vorbis, FLAC, and Opus. A specific software or hardware implementation capable of audio compression and decompression to/from a specific audio coding format is called an audio codec; an example of an audio codec is LAME, which is one of several different codecs which implements encoding and decoding audio in the MP3 audio coding format in software.

References

  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.