Free Lossless Audio Codec

Free Lossless Audio Codec
Flac logo vector.svg
Developer(s) Xiph.Org Foundation, Josh Coalson
Initial release 20 July 2001
Stable release 1.2.1 / 17 September 2007; 3 years ago (2007-09-17)
Operating system Cross-platform
Type Audio codec, Audio file format
License command-line utilities: GNU GPL
libraries: BSD
Website flac.sourceforge.net
Free Lossless Audio Codec
Filename extension .flac
Internet media type audio/x-flac[1]
Type of format Audio
Standard(s) Specification

Free Lossless Audio Codec (FLAC) is an audio compression codec primarily authored by Josh Coalson and Ed Whitney. As its name implies, FLAC employs a lossless data compression algorithm: a digital audio recording compressed by FLAC can be decompressed into an identical copy of the original audio data. Audio sources encoded to FLAC are typically reduced to 50–60% of their original size.[2]

FLAC is an open and royalty-free format with a free software implementation made available. FLAC has support for tagging, cover art, and fast seeking. Though FLAC playback support in portable audio devices and dedicated audio systems is limited compared to formats like MP3,[3] FLAC is supported by more hardware devices than competing lossless formats like WavPack.[4]

Contents

History

Development started in 2000 by Josh Coalson.[5] The bit-stream format was frozen when FLAC entered beta stage with the release of version 0.5 of the reference implementation on January 15, 2001. Version 1.0 was released on 20 July 2001.[5]

On 29 January 2003, the Xiph.Org Foundation and the FLAC project announced the incorporation of FLAC under the Xiph.org banner. Xiph.org is behind other free compression formats such as Vorbis, Theora, Speex, and others.[5][6][7]

On 17 September 2007, the 1.2.1 version was released.

The project

The FLAC project consists of:

"Free" means that the specification of the stream format can be implemented by anyone without prior permission (Xiph.org reserves the right to set the FLAC specification and certify compliance), and that neither the FLAC format nor any of the implemented encoding/decoding methods are covered by any patent. It also means that the reference implementation is free software. The sources for libFLAC and libFLAC++ are available under Xiph.org's BSD license, and the sources for flac, metaflac, and the plugins are available under the GPL.

In its stated goals, the FLAC project encourages its developers not to implement copy prevention features of any kind.[3]

Comparisons

FLAC is specifically designed for efficient packing of audio data, unlike general purpose lossless algorithms such as DEFLATE which is used in ZIP and gzip. While ZIP may compress a CD-quality audio file by 10–20%, FLAC achieves compression rates of 30–50% for most music, with significantly greater compression for voice recordings. By contrast, lossy codecs can achieve ratios of 80% or more by discarding data from the original stream.

FLAC uses linear prediction to convert the audio samples to a series of small, uncorrelated numbers (known as the residual), which are stored efficiently using Golomb-Rice coding. It also uses run-length encoding for blocks of identical samples, such as silent passages. The technical strengths of FLAC compared to other lossless codecs lie in its ability to be streamed and decoded in a fast time, which is independent of compression level.

As a lossless scheme, FLAC is also a popular archive format for owners of CDs and other media who wish to preserve their audio collections. If the original media is lost, damaged, or worn out, a FLAC copy of the audio tracks ensures that an exact duplicate of the original data can be recovered at any time. An exact restoration from a lossy archive (e.g., MP3) of the same data is impossible. FLAC being lossless means it is highly suitable for transcode e.g. to MP3, without the normally associated transcoding quality loss. A CUE file can optionally be created when ripping a CD. If a CD is read and ripped perfectly to FLAC files, the CUE file allows later burning of an audio CD that is identical in audio data to the original CD, including track order, pregaps, and CD-Text. However, additional data present on some audio CDs such as lyrics and CD+G graphics are beyond the scope of a CUE file and most ripping software, so that data will not be archived.

The European Broadcasting Union (EBU) has adopted the FLAC format for the distribution of high quality audio over its Euroradio network.

Technical details

FLAC supports only fixed-point samples, not floating-point. This is to remove the imprecision of floating point arithmetic so as to ensure the encoder is fully lossless. It can handle any PCM bit resolution from 4 to 32 bits per sample, any sampling rate from 1 Hz to 655,350 Hz in 1 Hz increments,[8] and any number of channels from 1 to 8.[9] Channels can be grouped in cases like stereo and 5.1 channel surround to take advantage of interchannel correlations to increase compression. FLAC uses CRC checksums for identifying corrupted frames when used in a streaming protocol, and also has a complete MD5 hash of the raw PCM audio stored in its STREAMINFO metadata header. FLAC allows for a Rice parameter between 0–16. FLAC supports Replay Gain.

FLAC is implemented as the libFLAC core encoder & decoder library with the main distributable program flac being the reference program utilizing the libFLAC API. This codec API is also available in C++ as libFLAC++.

The reference implementation of FLAC compiles on many platforms, including most Unix (such as Solaris and Mac OS X) and Unix-like (including Linux, BSD), Windows, BeOS, and OS/2 operating systems. There are build systems for autoconf/automake, MSVC, Watcom C, and Xcode. There is currently no multicore support in libFLAC.

For tagging, FLAC uses the same system as Vorbis comments.[10]

API organization

libFLAC API is organized into streams, seekable streams, and files (listed in the order of increasing abstraction from the base FLAC bitstream). Most FLAC applications will generally restrict themselves to encoding/decoding using libFLAC at the file level interface.

Software support

Encoding

Name Description Platform
Windows Mac OS X
Adobe Soundbooth ? No
aTunes Yes Yes
ALLPlayer Yes No
Audacity Since version 1.2.5[11] Yes Yes
Audio Transcoder Yes No
BonkEnc Rips directly from CD to FLAC file. Yes No
Cakewalk SONAR Producer Edition version 7 and later. Yes No
Creative Centrale Yes No
dBpoweramp Music Converter Yes No
Easy CD-DA Extractor Yes No
Easy Media Creator Yes No
Exact Audio Copy Yes No
FlaCuda An experimental LGPL encoder that runs on Nvidia GPGPUs with CUDA support. On high end GPUs it has been reported to outperform CPU encoders by an order of magnitude.[12] Multi-channel or higher than 16 bit depth are not yet supported.[13] Yes Yes
Flake (and libFlake) An independent LGPL implementation purported to be faster at the same compression ration than the reference libFlac; it also offers some experimental higher compression ratios.[14] An experimental version that supports multiple threads/cores has been developed by a third party.[15] Yes Yes
FFmpeg Yes Yes
foobar2000 With external encoder Yes No
GoldWave Yes No
GOM Player Yes No
JetAudio Yes No
Juce Yes Yes
Max No Yes
Media Center Since version 12.0.3xx Yes No
MediaMonkey Yes No
Nero Burning ROM With optional external filter plug-in. Yes No
REAPER Yes No
Samplitude Since version 10.2 Yes No
Sound Forge Version 9 and later Yes No
Vegas Pro 8, Vegas Pro 9 Yes No
Toast Titanium Beginning with version 7 No Yes
VLC media player Yes Yes
Winamp Since 5.35 uses Flake.[16] Versions before 5.54 generate an incorrect MD5 checksum.[17] Yes No
xACT Not to be confused with Microsoft's XACT audio programming library. No Yes
XLD No Yes
Yahoo! Music Jukebox Yes No

Decoding

  • Cross-platform
    • Boxee
    • FFmpeg
    • aTunes
    • PS3 Media Server
    • Adobe Audition
    • Audacity 1.3.5 Beta
    • MPlayer
    • Songbird
    • Squeezebox
    • The Core Pocket Media Player with FLAC plugin
    • VLC media player
    • XBMC Media Center
    • Mixxx Digital DJ software
  • Microsoft Windows
    • Ableton Live
    • Adobe Premiere Pro with FLAC plugin
    • Aimp2
    • Billy since version 1.04i
    • Creative Centrale
    • DJ Decks
    • foobar2000
    • GoldWave
    • Media Center since version 12.0.3xx
    • iTunes after installing codec from Xiph (Ogg FLAC only)
    • JetAudio
    • K-Multimedia Player
    • MediaMonkey
    • Cockos REAPER Multitrack Recorder and Editor
    • Renoise supports import and export from version 1.8
    • Quintessential Player with FLAC plugin
    • SUPER
    • Vegas Pro 8, Vegas Pro 9
    • TRAKTOR 3
    • TRAKTOR Scratch
    • TVersity, using ffdshow to transcode stream to WAV
    • VUPlayer
    • Winamp
    • Windows Media Player and Media Player Classic with third-party plugin
    • Yahoo! Music Jukebox
  • Windows Mobile
    • Kinoma Play
    • CorePlayer (Shareware)
  • Unix-like operating systems
    • Audacious
    • Banshee
    • Baudline
    • cmus
    • mpd
    • ogg123 (if compiled against FLAC - ogg123 is part of the 'vorbis-tools' package)
    • Xine
    • XMMS
    • GNOME
      • GnomeBaker
      • Quod Libet
      • Rhythmbox
      • Totem Movie Player
      • Serpentine
    • KDE
      • Amarok
      • JuK
      • Audiokonverter (from the context menu pop-up)
  • Mac OS X
    • Fluke, for playing FLAC in iTunes
    • Quicktime with the Xiph QT component
    • Ableton Live
    • Cog
    • Plex media center
    • xACT, not to be confused with Microsoft's XACT
    • TRAKTOR 3
    • TRAKTOR Scratch
  • Palm OS
    • CorePlayer (Shareware)
    • TCPMP (version 0.72rc1, open source) with free plug-in[18]

Ripping

  • Cross-platform
    • Songbird
    • aTunes
  • Microsoft Windows
    • Audiograbber (with external encoder)
    • Audio Transcoder
    • BonkEnc using the FLAC.dll API
    • CDex included in v1.7 beta2
    • DBpoweramp
    • Exact Audio Copy using the external encoder
    • Easy CD-DA Extractor
    • foobar2000 (with external encoder)
    • iriver plus 3
    • JetAudio
    • MediaMonkey
    • Winamp
    • Yahoo! Music Jukebox
  • Unix-like operating systems
    • ABCDE
    • Asunder
    • Banshee
    • Cdda2wav
    • Cdparanoia
    • Mencoder
    • crip
    • GNOME
      • Grip
      • Sound Juicer
    • KDE
  • Mac OS X

Hardware support

Native

Other platforms

See also

References

  1. Registration being sought as audio/flac
  2. "FLAC - comparison". http://flac.sourceforge.net/comparison.html. Retrieved 27 January 2008. 
  3. 3.0 3.1 "FLAC website". Flac.sourceforge.net. http://flac.sourceforge.net/links.html#hardware. Retrieved 24 March 2009. 
  4. http://flac.sourceforge.net/comparison.html
  5. 5.0 5.1 5.2 "FLAC - news". http://flac.sourceforge.net/news.html. Retrieved 2009-08-31. 
  6. Xiph.Org Foundation (29 January 2003). "FLAC Joins Xiph.org". Xiph.org Foundation. http://www.xiph.org/press/2003/flac/. Retrieved 31 August 2009. 
  7. Emmett Plant. "FLAC Joins Xiph!". Xiph.org Foundation. http://xiph.org/ogg/flac.html. Retrieved 31 August 2009. 
  8. "FLAC - faq". http://flac.sourceforge.net/faq.html#general__samples. Retrieved 25 January 2009. 
  9. "FLAC - format". http://flac.sourceforge.net/format.html#frame_header. Retrieved 15 November 2009. 
  10. "FLAC - faq". http://flac.sourceforge.net/faq.html#general__tagging. Retrieved 27 January 2008. 
  11. Audacity development team (2006-10-30). "Audacity 1.3.2 a 1.2.5 released". http://audacity.sourceforge.net/about/news?id=2006-10-30/1.3.2-release&lang=en. Retrieved 19 January 2010. 
  12. http://cuetools.net/doku.php/flacuda
  13. http://www.hydrogenaudio.org/forums/index.php?showtopic=64628&st=100 posts 105 and 107
  14. http://flake-enc.sourceforge.net/benchmarks.html
  15. http://softlab-pro-web.technion.ac.il/Projects/2008Winter/Performance%20Tuning/website/downloads.html
  16. http://flake-enc.sourceforge.net/download.html
  17. http://forums.winamp.com/showpost.php?p=2352917&postcount=8
  18. http://www.latestintech.com/the-core-media-player/
  19. Pid=340 "DENON UK". http://www.denon.co.uk/site/frames_main.php?main=prod&ver=&MID=3&sub=1&action=detail& Pid=340. Retrieved 27 January 2008. 
  20. "Supported Digital Music Formats & Tagging Requirements" (PDF). Escient. p. 2. http://www.escient.com/support/supportdocuments/DigitalMusicFilesFormats.pdf. Retrieved 27 January 2008. 
  21. Korean firmware V2.13
  22. "Save The Sound. - Olive'S Free Cd Ripping Service - Preload Terms". http://www.olive.us. Retrieved 27 January 2008. 
  23. "Sansa Fuze updated to support Ogg and FLAC". http://www.engadget.com/2008/10/04/sansa-fuze-updated-to-support-ogg-and-flac/. Retrieved 18 October 2008. 
  24. "Sansa Clip Firmware 01.01.30 Released". http://www.anythingbutipod.com/archives/2008/10/sansa-clip-firmware-010130-released.php. Retrieved 18 October 2008. 
  25. anythingbutipod.com: SanDisk Sansa Clip+ Plus Review
  26. "T+A E-Series Music-Player". http://www.taelektroakustik.de/eng/ta2/e_system/music_player.htm. Retrieved 27 January 2008. 
  27. "iRiver E100". http://www.iriver.com.au/iriver/index.cfm?pageID=2&sID=1&prodID=23&#. 
  28. "Archos 5 and Archos 7 - Firmware Changes". Update.archos.com. http://update.archos.com/6/archos5-7/changes_firmware_archos5-7.html. Retrieved 24 March 2009. 
  29. "Naim Audio HDX". http://www.naim-audio.com/products/hdx.html. 
  30. "Samsung". http://www.samsung.com/us/consumer/mobile/mp3-players/mp3-players/YP-U5JQB/XAA/index.idx?pagetype=prd_detail&tab=spec. Retrieved 8 October 2009. 
  31. "Wiibrew Wiki entry for MPlayerWii". http://wiibrew.org/wiki/MPlayerWii. Retrieved 13 January 2009. 
  32. "Data Compression and Reduction Options for 7-Series Recorders". http://www.sounddevices.com/notes/recorders/file-formats/compression-reduction/. Retrieved 27 January 2008. 
  33. "File Details-LightMP3-v1.7.1-(FLAC-bugfix)-PSP-Homebrew-Applications". Dl.qj.net. 13 March 2009. http://dl.qj.net/LightMP3-v1.7.1-(FLAC-bugfix)-PSP-Homebrew-Applications/pg/12/fid/15529/catid/151. Retrieved 24 March 2009. 
  34. Leif H. Wilden. "Symbian OggPlay". Symbianoggplay.sourceforge.net. http://symbianoggplay.sourceforge.net/. Retrieved 24 March 2009. 
  35. SourceForge.net - OggPlay

External links