Monkey's Audio
Template:Short description Template:Distinguish Template:Use dmy dates Template:Infobox file format {{#invoke:Infobox|infobox}}Template:Template other {{#invoke:Check for unknown parameters|check|unknown=Template:Main other|preview=Page using Template:Infobox software with unknown parameter "_VALUE_"|ignoreblank=y| AsOf | author | background | bodystyle | caption | collapsetext | collapsible | developer | discontinued | engine | engines | genre | included with | language | language count | language footnote | latest preview date | latest preview version | latest release date | latest release version | latest_preview_date | latest_preview_version | latest_release_date | latest_release_version | licence | license | logo | logo alt | logo caption | logo class | logo size | logo title | logo upright | logo_alt | logo_caption | logo_class | logo_size | logo_title | logo_upright | middleware | module | name | operating system | operating_system | other_names | platform | programming language | programming_language | qid | released | replaced_by | replaces | repo | screenshot | screenshot alt | screenshot class | screenshot size | screenshot title | screenshot upright | screenshot_alt | screenshot_class | screenshot_size | screenshot_upright | service_name | size | standard | title | ver layout | website }}Template:Main other{{#invoke:Check for conflicting parameters|check | template = Template:Infobox software | cat = Template:Main other | logo size; logo_size | logo class; logo_class | logo alt; logo_alt | logo title; logo_title | logo caption; logo_caption | screenshot size; screenshot_size | screenshot upright; screenshot_upright | screenshot class; screenshot_class | screenshot alt; screenshot_alt | screenshot title; screenshot title | latest release version; latest_release_version | latest release date; latest_release_date | latest preview version; latest_preview_version | latest preview date; latest_preview_date | latest release version; latest_release_version | latest release date; latest_release_date | latest preview version; latest_preview_version | latest preview date; latest_preview_date | programming language; programming_language | operating system; operating_system }}
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 AAC, MP3, Vorbis, and Opus. Similar to other lossless audio codecs, files encoded to Monkey's Audio are typically reduced to about half of the original size,[1] with data transfer time and storage requirements being reduced accordingly.
Comparisons
Like any lossless compression scheme, Monkey's Audio format takes up several times as much space as lossy compression formats - typically, about twice as much as a 320 kbit/s bitrate MP3 file. The upside is that no data is lost compared to the input file, making lossless codecs suitable for transcoding, or simply taking up approximately half as much space as raw PCM data.
Relative to FLAC, Apple Lossless Audio Codec, or WavPack, Monkey's Audio is slow to encode or decode files.
While Monkey's Audio can achieve high compression ratios,[2] the cost is a dramatic increase in requirements on the decoding end. Many older portable media players, and even older smartphones, have difficulty handling this. In comparison, most lossless codecs are asymmetric, meaning that the work done to achieve higher compression ratios, if selected by the user, slows down the encoding process, but has essentially no effect on the decoding requirements.[3]
Licensing
On 10 August 2023, with the release of version 10.18, Monkey's Audio switched to the Open Source Initiative-approved 3-Clause BSD Licence.[4]
Other lossless codecs such as FLAC and WavPack are also available under open source licences, and are well supported in Linux distributions and in many applications. Since all of these formats are lossless, users can transcode between formats without generation loss.
Technical details
Monkey's Audio first converts stereo signals into standard mid and difference channels, similar to other codecs. The X (mid or average channel) is calculated by taking the mean of the left and right channels, and the Y (side or difference channel) is calculated by subtracting the right from the left channel. This is a reversible transform that the decoder will later apply as well.
Monkey's Audio supports linear prediction, using a novel fixed first-order predictor followed by several adaptive offset filters, as well as neural network-based predictors with up to a 1024 sample window. The residuals (errors) are then encoded using range coding.[5]
Monkey's Audio frames support a form of CRC-32 (with the MSB truncated) for error detection. The entire file also has its MD5 hash computed and stored. The reference decoder verifies the file hash, and locates errors, if present, by considering each frame's CRC checksum. While the format supports error detection, it cannot correct errors if they are present.
Supported platforms
Officially, Monkey's Audio is available for the Microsoft Windows platform. As of version 4.02 (19 January 2009) a DirectShow filter is distributed with the installer, allowing for compatibility with most media players running on the Windows operating system.[4]
Monkey's Audio is also supported on Linux and OS X using JRiver Media Center or Plex. A Linux port of the command line tool mac is also available.
A GPL-licensed version of the Monkey's Audio decoder has been independently written for Rockbox and is included in FFmpeg.[6][7] This code also provides playback support in applications that use GStreamer,[8] as well as DeaDBeeF.
A number of Mac OS X players and rippers support the format as well.[9] It is also available as a port and package on FreeBSD.[10]
Monkey's Audio files can be encoded and decoded on any platform which has a J2SE implementation, by the means of the unofficial JMAC library, which is free software licensed under the GNU LGPL.
Hardware support
Monkey's Audio is supported natively on all modern Cowon multimedia media players, the FiiO X Series and some Cayin digital audio players.
On other hardware platforms, the open source firmware project Rockbox supports playback of Monkey's Audio files on most of its supported targets, but many lack sufficient processing power to play them on the higher compression settings.[3]
See also
- Comparison of audio formats
- FLAC
- WavPack
- Apple Lossless
- MPEG-4 ALS
- Meridian Lossless Packing
- APE tag
References
External links
- Monkey's Audio Official Website
- APE Player Play Monkey's Audio files
Template:Compression formats Template:Compression software implementations
- ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
- ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
- ↑ 3.0 3.1 {{#invoke:citation/CS1|citation |CitationClass=web }}
- ↑ 4.0 4.1 {{#invoke:citation/CS1|citation |CitationClass=web }}
- ↑ Template:Cite book
- ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
- ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
- ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
- ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}
- ↑ {{#invoke:citation/CS1|citation |CitationClass=web }}