Lossless Audio Compression


There are two lossless compression methods that are especially widely used and available on virtually all operating systems, including: GNU/Linux, MS Windows, Macintosh OS X, BeOS, Solaris, and BSD Unix. FLAC ("free lossless audio codec") is a free, open-source program that provides a good compression ratio with fairly rapid compression and very rapid decompression. It is also the only lossless compression method with hardware support.

Shorten, often called shn, is a lossless compression system developed by Softsound. A variety of information and links to other resources can be obtained here. Source code can be downloaded here. A Macintosh OS X port and a version for MS Windows are available. MKW Audio Compression Tool reportedly also supports SHN compression under MS Windows.

Other lossless compression methods freely available for GNU/Linux and MS Windows include:

A number of comparisons of compression ratio, compression speed, and decompression speed have been published:

All of these are for music files. I have run tests using a recording of a session with an informant, representing 42 minutes, 44.2 seconds of 16 bit mono audio sampled 22,050 samples per second. Tests were run on a 1.6GHz Pentium 4 with 512MB RAM running GNU/Linux. Here are the compression ratios (compressed size divided by original size), compression times (in seconds), and decompression times (in seconds).


Ordered by compression ratio:

ProgramRatioCTimeDTime
Lossless Audio.488239180
LPAC max.501 46 25
LPAC default.501 28 29
TTA.505 18 18
FLAC max.506 97 14
FLAC default.507 19 13
shorten.519 14 6

Ordered by compression time:

ProgramRatioCTimeDTime
shorten.519 14 6
TTA.505 18 18
FLAC default.507 19 13
LPAC default.501 28 29
LPAC max.501 46 25
FLAC max.506 97 14
Lossless Audio.488239180


Ordered by decompression time:

ProgramRatioCTimeDTime
shorten.519 14 6
FLAC default.507 19 13
FLAC max.506 97 14
TTA.505 18 18
LPAC max.501 46 25
LPAC default.501 28 29
Lossless Audio.488239180

With linguistic data as with music, Lossless Audio provides the best compression, at the cost of compression and decompression times considerably greater than those of other programs.