Lossless comparison: Difference between revisions

From Hydrogenaudio Knowledgebase
mNo edit summary
No edit summary
Line 177: Line 177:
[[ALAC]] is a codec developed by Apple for usage in [[Apple iPod|iPod]] and AirPort Express.
[[ALAC]] is a codec developed by Apple for usage in [[Apple iPod|iPod]] and AirPort Express.


=== ALAC PROS ===
=== ALAC pros ===
* Very fast decoding
* Very fast decoding
* [[Open source]] ([http://craz.net/programs/itunes/alac.html decoding only])
* [[Open source]] ([http://craz.net/programs/itunes/alac.html decoding only])
Line 186: Line 186:
* Supports [[multichannel]] audio and [[high resolution]]s
* Supports [[multichannel]] audio and [[high resolution]]s


=== ALAC CONS ===
=== ALAC cons ===
* Closed source (encoding)
* Closed source (encoding)
* Limited software support
* Limited software support
Line 202: Line 202:
[[FLAC]] is a lossless codec developed by Josh Coalson. It's part of the Xiph multimedia portfolio, along with [[Ogg]], [[Vorbis]], [[Speex]] and [[Theora]].
[[FLAC]] is a lossless codec developed by Josh Coalson. It's part of the Xiph multimedia portfolio, along with [[Ogg]], [[Vorbis]], [[Speex]] and [[Theora]].


=== FLAC PROS ===
=== FLAC pros ===
* [[Open source]]
* [[Open source]]
* Very fast decoding
* Very fast decoding
Line 215: Line 215:
* [[Replay Gain]] compatible
* [[Replay Gain]] compatible


=== FLAC CONS ===
=== FLAC cons ===
* No hybrid/lossy mode
* No hybrid/lossy mode
* Doesn't support [[RIFF]] chunks
* Doesn't support [[RIFF]] chunks
Line 230: Line 230:
[[LA]] is a lossless codec developed by Michael Bevin.
[[LA]] is a lossless codec developed by Michael Bevin.


=== LA PROS ===
=== LA pros ===
* Very high compression
* Very high compression
* Tagging support ([[ID3v1]])
* Tagging support ([[ID3v1]])
Line 236: Line 236:
* Pipe support
* Pipe support


=== LA CONS ===
=== LA cons ===
* Closed source
* Closed source
* Very slow encoding and decoding
* Very slow encoding and decoding
Line 253: Line 253:
Lossless Predictive Audio Coder ([[LPAC]]) is a lossless codec developed by Tilman Liebchen. Development of it has been halted in favour of development of [[MPEG-4]] ALS.
Lossless Predictive Audio Coder ([[LPAC]]) is a lossless codec developed by Tilman Liebchen. Development of it has been halted in favour of development of [[MPEG-4]] ALS.


=== LPAC PROS ===
=== LPAC pros ===
* Reasonable compression ratios
* Reasonable compression ratios
* [[High resolution]] audio support
* [[High resolution]] audio support
* Supports [[RIFF]] chunks
* Supports [[RIFF]] chunks


=== LPAC CONS ===
=== LPAC cons ===
* Closed source
* Closed source
* No error robustness
* No error robustness
Line 274: Line 274:
[[Monkey's Audio]] is a very efficient lossless compressor developed by Matt Ashland.
[[Monkey's Audio]] is a very efficient lossless compressor developed by Matt Ashland.


=== APE PROS ===
=== APE pros ===
* [[Open source]]
* [[Open source]]
* High efficiency
* High efficiency
Line 285: Line 285:
* Pipe support (only in a [http://www.etree.org/shnutils/shntool/ special] version)
* Pipe support (only in a [http://www.etree.org/shnutils/shntool/ special] version)


=== APE CONS ===
=== APE cons ===
* No [[multichannel]] support
* No [[multichannel]] support
* No error robustness
* No error robustness
Line 300: Line 300:
MPEG-4 SLS allows audio encoding from lossless scalable to [[AAC]].
MPEG-4 SLS allows audio encoding from lossless scalable to [[AAC]].


=== SLS PROS ===
=== SLS pros ===
* Transcoding to standard AAC or any higher lossy bitrate at the speed of copying a file
* Transcoding to standard AAC or any higher lossy bitrate at the speed of copying a file
* Scalable decoding from lossless, to any bitrate down to the AAC core track
* Scalable decoding from lossless, to any bitrate down to the AAC core track
Line 309: Line 309:
* Embedded in standard MP4 files, so supports same tagging and Replay Gain features as AAC does.
* Embedded in standard MP4 files, so supports same tagging and Replay Gain features as AAC does.


=== SLS CONS ===
=== SLS cons ===
* No usable software available yet
* No usable software available yet
* Pure lossless compression not the best there is
* Pure lossless compression not the best there is
Line 323: Line 323:
[[OptimFROG]] is a lossless format developed by Florin Ghido to become the champion in audio compression.
[[OptimFROG]] is a lossless format developed by Florin Ghido to become the champion in audio compression.


=== OFR PROS ===
=== OFR pros ===
* Very high compression
* Very high compression
* Good software support
* Good software support
Line 334: Line 334:
* [[Replay Gain]] compatible
* [[Replay Gain]] compatible


=== OFR CONS ===
=== OFR cons ===
* Closed source
* Closed source
* No [[multichannel]] audio support
* No [[multichannel]] audio support
Line 350: Line 350:
RealAudio lossless is the lossless codec developed by Real Networks for their multimedia portfolio
RealAudio lossless is the lossless codec developed by Real Networks for their multimedia portfolio


=== RAL PROS ===
=== RAL pros ===
* Very fast decoding
* Very fast decoding
* Streaming support
* Streaming support
* Tagging support (proprietary)
* Tagging support (proprietary)


=== RAL CONS ===
=== RAL cons ===
* Closed source
* Closed source
* No [[multichannel]] and [[high resolution]] audio support
* No [[multichannel]] and [[high resolution]] audio support
Line 371: Line 371:
[[Shorten]] is a very old and featureless lossless codec developed by Tony Robinson at SoftSound.
[[Shorten]] is a very old and featureless lossless codec developed by Tony Robinson at SoftSound.


=== SHN PROS ===
=== SHN pros ===
* [[Open source]]
* [[Open source]]
* Fast decoding
* Fast decoding
Line 378: Line 378:
* Pipe support
* Pipe support


=== SHN CONS ===
=== SHN cons ===
* Quite inefficient
* Quite inefficient
* No [[multichannel]] or [[high resolution]] audio support
* No [[multichannel]] or [[high resolution]] audio support
Line 394: Line 394:
[[TTA]] is a new lossless codec developed by a team of russian programmers.
[[TTA]] is a new lossless codec developed by a team of russian programmers.


=== TTA PROS ===
=== TTA pros ===
* [[Open source]]
* [[Open source]]
* Good efficiency
* Good efficiency
Line 403: Line 403:
* Error robustness
* Error robustness


=== TTA CONS ===
=== TTA cons ===
* No streaming support
* No streaming support
* No hybrid/lossy mode
* No hybrid/lossy mode
Line 418: Line 418:
[[WavPack]] is a fast and featureful lossless codec developed by David Bryant.
[[WavPack]] is a fast and featureful lossless codec developed by David Bryant.


=== WV PROS ===
=== WV pros ===
* [[Open source]]
* [[Open source]]
* Very fast decoding
* Very fast decoding
Line 435: Line 435:
* [[Replay Gain]] compatible
* [[Replay Gain]] compatible


=== WV CONS ===
=== WV cons ===
* Limited hardware player support
* Limited hardware player support


Line 451: Line 451:
WMA Lossless is the lossless codec developed by Microsoft to be featured in their Windows Media codec portfolio.
WMA Lossless is the lossless codec developed by Microsoft to be featured in their Windows Media codec portfolio.


=== WMAL PROS ===
=== WMAL pros ===
* Streaming support
* Streaming support
* Very good software support
* Very good software support
Line 458: Line 458:
* Pipe support
* Pipe support


=== WMAL CONS ===
=== WMAL cons ===
* Closed source
* Closed source
* No hybrid/lossy mode
* No hybrid/lossy mode

Revision as of 20:26, 13 June 2007

The lossless comparison page aims to gather information about lossless codecs available so users can make an informed decision as to what lossless codec to choose for their needs.

Introduction

Given the enormous amount of lossless audio compressor choices available, it is a very difficult task to choose the one most suited for each person's needs.

Several people only take into consideration compression performance when choosing a codec. But as the following table and article shows, there are several other features worth taking into consideration when making that choice.

For example, users wanting good multiplatform compatibility and robustness (E.G, people sharing live recordings) would favour WavPack or FLAC. Another user, looking for the very highest compression available, would go with OptimFROG. Someone wanting portable support would use FLAC or ALAC, and so on.

En fin, this is not a matter worth getting too worked up about. If you later find out the codec you chose isn't the best for your needs, you can just transcompress to another format, without risk of losing quality.

Note: for latest comparison of lossless compression, scroll down to the Links section of this page.

Comparison Table

Features WavPack ALAC FLAC Monkey's OptimFROG Shorten
Encoding speed very fast average fast fast slow very fast
Decoding speed very fast fast very fast average average very fast
Compression* 58.0% 58.50% 58.70% 55.50% 54.70% 63.50%
Flexibility** very good bad very good very good very good bad
 
Error handling yes   yes no yes no
Seeking yes yes yes yes yes yes
Tagging ID3/APE QT tags Vorbis tags ID3/APE ID3/APE no
Hardware support limited good very good limited no limited
Software support good bad very good good average very good
Hybrid/lossy yes no no no yes no
Replay Gain yes sort of yes no yes no
RIFF chunks yes   no yes yes yes
Streaming yes yes yes no yes no
Pipe support yes no yes yes yes yes
Open source yes Yes (decoding) yes yes no yes
Multichannel yes yes yes no no no
High resolution yes yes yes yes yes no
OS support All Win/Mac All All Win/Mac/Linux All

(table continued below)

Features WMA LA TTA LPAC MPEG-4 ALS MPEG-4 SLS Real Lossless
Encoding speed average slow very fast average average slow slow
Decoding speed average slow fast fast fast slow fast
Compression* 56.30% 53.50% 57.10% 57.20% 57.10% ? 57.0%
Flexibility** bad average bad bad very good bad bad
 
Error handling yes no yes no yes yes  
Seeking yes yes yes slow yes yes yes
Tagging Proprietary ID3v1 ID3 no yes yes Proprietary
Hardware support limited no limited no no no no
Software support good bad average average bad bad bad
Hybrid/lossy no no no no no yes no
Replay Gain no no yes no yes yes no
RIFF chunks no yes no yes      
Streaming yes   no no yes yes yes
Pipe support yes yes no       no
Open source no no yes no yes yes no
Multichannel yes no yes no yes yes no
High resolution yes no yes yes yes yes no
OS support Win/Mac Win/Linux All Win/Linux/Sol All All Win/Mac/Linux

* The Compression ratio is calculated with the division of compressed size by uncompressed size * 100. So, lower is better.

Encoding speed, Decoding speed and Compression ratio are based on each encoder's default settings.

** Flexibility refers to the amount of encoding choices offered to the users (Fast/low compression, Slow/high compression and everything inbetween)


These are the most popular lossless codecs, in alphabetical order:

ALAC - Apple Lossless Audio Codec

http://www.apple.com/itunes/import.html

ALAC is a codec developed by Apple for usage in iPod and AirPort Express.

ALAC pros

ALAC cons

  • Closed source (encoding)
  • Limited software support
  • Compression efficiency not on par with other lossless codecs
  • No hybrid/lossy mode

ALAC Other features

  • Fits in the MP4 container
  • Can be used with the AirPort Express gadget


FLAC - Free Lossless Audio Codec

http://flac.sourceforge.net/

FLAC is a lossless codec developed by Josh Coalson. It's part of the Xiph multimedia portfolio, along with Ogg, Vorbis, Speex and Theora.

FLAC pros

FLAC cons

  • No hybrid/lossy mode
  • Doesn't support RIFF chunks

FLAC Other features

  • Supports embedded CUE sheets (with limitations)
  • Includes MD5 hashes for quick integrity checking
  • Fits the Ogg and Matroska containers


LosslessAudio (LA)

http://www.lossless-audio.com/

LA is a lossless codec developed by Michael Bevin.

LA pros

  • Very high compression
  • Tagging support (ID3v1)
  • Supports RIFF chunks
  • Pipe support

LA cons

It's important to mention that the LA foobar plugin is buggy and doesn't produce lossless streams!


LPAC

http://www.nue.tu-berlin.de/wer/liebchen/lpac.html

Lossless Predictive Audio Coder (LPAC) is a lossless codec developed by Tilman Liebchen. Development of it has been halted in favour of development of MPEG-4 ALS.

LPAC pros

LPAC cons

  • Closed source
  • No error robustness
  • Slow seeking
  • No tagging
  • No multichannel support
  • No hybrid/lossy mode
  • No hardware support
  • Doesn't support Replay Gain


Monkey's Audio

http://www.monkeysaudio.com/

Monkey's Audio is a very efficient lossless compressor developed by Matt Ashland.

APE pros

  • Open source
  • High efficiency
  • Good software support
  • Simple and user friendly. Official GUI provided.
  • Java version (multiplatform)
  • Tagging support (ID3v1, APE tags)
  • High resolution audio support
  • Supports RIFF chunks (only in the GUI encoder)
  • Pipe support (only in a special version)

APE cons

APE Other features

  • Includes MD5 hashes for quick integrity checking
  • Supports APL image link files (similar to CUE sheets)


MPEG-4 SLS

MPEG-4 SLS allows audio encoding from lossless scalable to AAC.

SLS pros

  • Transcoding to standard AAC or any higher lossy bitrate at the speed of copying a file
  • Scalable decoding from lossless, to any bitrate down to the AAC core track
  • Best lossless compression available when you count the AAC track (~5% gain over any other lossless compression + AAC)
  • High resolution audio support
  • Multi channel audio support
  • Open source (MPEG-4 Reference code)
  • Embedded in standard MP4 files, so supports same tagging and Replay Gain features as AAC does.

SLS cons

  • No usable software available yet
  • Pure lossless compression not the best there is
  • Seems to be slow in encoding and decoding, but we have to wait for released software

SLS Other features

  • Transform based lossless codec with optional LC AAC core track


OptimFROG

http://losslessaudiocompression.com/

OptimFROG is a lossless format developed by Florin Ghido to become the champion in audio compression.

OFR pros

OFR cons

  • Closed source
  • No multichannel audio support
  • No hardware support
  • Quite slow decoding

OFR Other features

  • Supports 32bit float streams
  • Includes MD5 hashes for quick integrity checking


RealAudio Lossless

http://www.realnetworks.com/products/codecs/realaudio.html

RealAudio lossless is the lossless codec developed by Real Networks for their multimedia portfolio

RAL pros

  • Very fast decoding
  • Streaming support
  • Tagging support (proprietary)

RAL cons

  • Closed source
  • No multichannel and high resolution audio support
  • Little software support (Real Player)
  • No hardware support
  • Compression efficiency not on par with other lossless codecs
  • No hybrid/lossy mode
  • No pipe support
  • Doesn't support Replay Gain


Shorten

http://www.etree.org/shnutils/shorten/

Shorten is a very old and featureless lossless codec developed by Tony Robinson at SoftSound.

SHN pros

  • Open source
  • Fast decoding
  • Very good software support
  • Supports RIFF chunks
  • Pipe support

SHN cons


True Audio (TTA)

http://www.true-audio.com/

TTA is a new lossless codec developed by a team of russian programmers.

TTA pros

TTA cons

  • No streaming support
  • No hybrid/lossy mode
  • Doesn't support RIFF chunks
  • No pipe support

TTA Other features


WavPack

http://www.wavpack.com/

WavPack is a fast and featureful lossless codec developed by David Bryant.

WV pros

WV cons

  • Limited hardware player support

WV Other features

  • Supports 32bit float streams
  • Supports embedded CUE sheets
  • Includes MD5 hashes for quick integrity checking
  • Can encode in both symmetrical and assymmetrical modes.
  • Fits the Matroska container


Windows Media Audio Lossless

http://www.microsoft.com/windows/windowsmedia/9series/codecs/audio.aspx

WMA Lossless is the lossless codec developed by Microsoft to be featured in their Windows Media codec portfolio.

WMAL pros

WMAL cons

WMAL Other features

  • Fits the ASF container


Oddball Formats

There are several old lossless formats that aren't being featured in the article above. Reasons are: lack of widespread support, lack of features, bad efficiency and, most importantly, it seems noone is really interested in them.

Most of those would have disappeared by now, but they are being preserved for posterity at rjamorim's ReallyRareWares

Advanced Digital Audio (ADA)

Bonk

Marian's a-Pac

AudioZip

Dakx WAV

Entis Lab MIO

LiteWave

Pegasus SPS

= RKaudio

Sonarc

VocPack

WavArc

WaveZip/MUSICompress


See also


External links

Other lossless compressions comparisons

Sorted based on last update date.

More on lossless compressions