Lossless Audio Codecs: Windows Media Audio 9 Lossless (.wma) vs. Monkey's Audio (.ape)24 Dec 2007
Unlike lossy codecs such as MP3, the mathematically-lossless audio codecs provide compression with no loss in quality. They are perfect for archiving digital audio with 2:1-3:1 compression ratio.
Monkey’s Audio is a popular lossless codecs developed by Matthew T. Ashland. It has been freely available on the net for a few years. The latest stable version (as of Dec 03) is 3.97 and an alpha version of 3.98 is under testing after a really long waiting since the release of 3.97.
Audio files encoded in Monkey’s Audio normally have suffix .ape. Players like Winamp can support Monkey’s Audio within an input plug-in. And Foobar2000 has native support for this format. Although there’s some people declare they have a plug-in for XMMS under Linux platform, I myself have never got one and am unable to play APE files under Linux.
Windows Media Audio actually is the name of Microsoft’s solution for digital audio. WMA codecs once were only lossy, but with the release of Windows Media Encoder 9 Series in early 2003, Microsoft provides the option of lossless compression by Windows Media Audio 9 Lossless codecs. With the significant influence that Microsoft has, WMA is trying to win more and more support from consumer electronics vendors and online service providers. This could be a significant advantage over other codecs to win the consumer market share.
On Windows platform, the encoder and player of both aforementioned formats are freely available. That means using these codecs on your Windows PC won’t cause your any additional cost. But how is their performances in terms of compression ratio, encoding time and playback CPU consumption? Will WMA lossless beat APE not only with vendors’ support but also performance?
We are going to see the answers at the end of this page.
- Setup test environment, see Appendix 1 for details.
- The input to encoders is in a single file of .wav format, which I extracted from 3 CDs and representing three different genres, see Appendix 2.
- Use WMA Encoder to compress the .wav file into .wma format with preset profile (File Archive -> Lossless Quality Audio, VBR 100), record performance measurements.
- Use Monkey’s Audio to compress the .wav file into .ape format in Normal mode, record performance measurements.
- Use Windows Media Player and foobar2000 to play each types of the file and evaluate CPU consumption roughly by observing Task Manager. Note that I turned off all switchable postprocessing for both players, i.e., no visualization, no surround effect, etc.
|Original (MB)||Compressed (MB)||Ratio (%)||Encoding Time (s)||Speed (MB/s)||
Playback CPU Load
|Brahms - Violinkonzert, Doppelkonzert - Classical|
|Nicholas Gunn - The Music of the Grand Canyon - New Age|
|Eagles - Hell Freezes Over - Rock|
I would say that WMA still have a long way to achieve the same performance as APE, in whatever terms evaluated here:
- The only test it slightly outperforms APE is the compression ratio of Classical test sample at the cost of a significant difference of encoding time.
- Generally it costs more CPU time to playback than APE.
- Although for Rock test sample here WMA almost has the same encoding performance as APE, the playback of the sample falls further behind APE than other samples of different genres.
[Update 27 Aug 2004] For a report on comparison tests of more lossless encoders, visit w.speek’s page.
Appendix 1 - Evaluation environment configurations
|Encoders||WMA||Windows Media Encoder 9 Series, v9.00.00.2980|
|APE||Monkey's Audio v3.97|
|Players||WMA||Windows Media Player, v9.00.00.3075|
|APE||foobar2000, v0.7.3, Unicode version|
|Hardware||CPU||Intel P4 2.4B/533Mhz|
|Sound||SoundMAX Integrated Digital Audio|
|Software||OS||WindowsXP Professional SP1, v5.1.2600|
Appendix 2 - Three CDs each of different genre under test
Label: Karajan Gold
Label: Real Music