Wiki Article

Comparison of audio coding formats

Nguồn dữ liệu từ Wikipedia, hiển thị bởi DefZone.Net

The following tables compare general and technical information for a variety of audio coding formats.

For listening tests comparing the perceived audio quality of audio formats and codecs, see the article Codec listening test.

General information

[edit]

Notes

[edit]
  1. The 'Music' category is merely a guideline on commercialized uses of a particular format, not a technical assessment of its capabilities. For example, MP3 and AAC dominate the personal audio market in terms of market share, though many other formats are comparably well suited to fill this role from a purely technical standpoint.
  2. First public release date is first of either specification publishing or source releasing, or in the case of closed-specification, closed-source codecs, is the date of first binary releasing. Many developing codecs have pre-releases consisting of pre-1.0 versions and perhaps 1.0 release candidates (RCs), although 1.0 may not necessarily be the release version.
  3. Latest stable version is that of specification or reference tools.
  4. If there happens to be OSI licensed software available for a particular format, this does not necessarily permit one to use said codec free of charge. Likewise, if there is only proprietary licensed software available for a particular format, one might be able to use the codec free of charge.

Operating system support

[edit]
Codec Windows macOS Linux BSD Unix Palm OS Symbian OS Rockbox[43] iOS Android[44][45] Chromium[46] HarmonyOS[47] OpenHarmony Oniro OS
AAC Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes
AC-3 Yes Yes Yes Yes Yes ? Yes Yes Yes Yes ? Yes Yes Yes
ALAC Yes Yes Yes Yes Yes No No Yes Yes Yes No Yes No No
ALS ? ? ? ? ? ? ? ? ? ? ? ? ? ?
aptX Yes Yes Yes Yes Yes No No No No Yes No No ? ?
CELT Yes Yes Yes Yes Yes Yes No Yes No No No No No No
E-AC3 Yes Yes Yes Yes Yes ? Yes No Yes Yes ? Yes Yes Yes
FLAC Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes
LC3 Yes No Yes Yes Yes No No No No Yes No Yes Yes Yes
L2HC Yes No Yes No No No No No No Yes No Yes Yes Yes
Monkey's Audio Yes Yes Yes Yes Yes No No Yes No No No No No No
MP3 Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes
Musepack Yes Yes Yes Yes Yes Yes Yes Yes No No No No No No
Opus Yes Yes Yes Yes Yes No No Yes Yes Yes Yes Yes Yes Yes
RealAudio[48] Yes Yes Yes Yes Yes Yes Yes Yes No No No No No No
Speex Yes Yes Yes Yes Yes Yes Yes Yes No No No No No No
True Audio (TTA) Yes Yes Yes Yes Yes Yes Yes Yes No Yes Yes Yes Yes Yes
USAC Yes Yes Yes No No No No No Yes Yes No ? ? ?
Vorbis Yes Yes Yes Yes Yes Yes Yes Yes No Yes Yes Yes Yes Yes
WavPack Yes Yes Yes Yes Yes Yes Yes Yes No No No Yes Yes Yes
WMA[48] Yes Yes[49] Yes Yes Yes Yes Yes Yes No Yes No Yes ? ?

Multimedia frameworks support

[edit]
Audio compression format ACM DirectShow QuickTime GStreamer FFmpeg Media Foundation
8SVX Yes (ffdshow) Yes (ffdshow) Yes (Perian) Yes (GStreamer FFmpeg plug-in) Yes Yes (ffdshow)
AAC Yes Yes (ffdshow, Monogram[50]) Yes Yes (GStreamer FFmpeg plug-in) Yes Yes
AC3 Yes Yes (ffdshow) Yes (Perian) Yes (GStreamer FFmpeg plug-in) Yes Yes
AC4 No No No Yes (GStreamer external plugins with Dolby proprietary libraries) No No
ALS ? ? ? ? ? ?
AMR No No Yes

[51] [52]

Yes (GStreamer Ugly Plug-ins) Yes Yes
ALAC Yes Yes (ffdshow) Yes Yes (GStreamer FFmpeg plug-in) Yes Yes
aptX ? ? ? ? Yes ?
ATRAC3 Yes (ffdshow) Yes (ffdshow) Yes (Perian) Yes (GStreamer FFmpeg plug-in) Yes Yes (ffdshow)
ATRAC3plus No No No No Yes Yes (ffdshow)
CELT ? ? ? ? ? ?
Cook Codec Yes (ffdshow) Yes (ffdshow) Yes (Perian) Yes (GStreamer FFmpeg plug-in) Yes Yes (ffdshow)
DCA aka DTS Yes (ffdshow) Yes (ffdshow) Yes (Perian) Yes (GStreamer FFmpeg plug-in) Yes Yes (ffdshow)
DTS-HD Yes (ffdshow) Yes (ffdshow) Yes (Perian) Yes (GStreamer FFmpeg plug-in) Yes Yes (ffdshow)
E-AC-3 Yes Yes (ffdshow) Yes (Perian) Yes (GStreamer FFmpeg plug-in) Yes Yes
FLAC yes Yes (ffdshow) Yes (Perian) Yes (GStreamer Base Plug-ins, GStreamer FFmpeg plug-in) Yes Yes
L2HC ? ? ? ? ? ?
HE-AAC ? ? ? ? ? ?
Monkey's Audio Yes (ffdshow) Yes (ffdshow) Yes (Perian) Yes (GStreamer FFmpeg plug-in) Yes Yes (ffdshow)
WavPack Yes (ffdshow) Yes (ffdshow) Yes (Perian) Yes (GStreamer FFmpeg plug-in) Yes Yes (ffdshow)
Shorten Yes (ffdshow) Yes (ffdshow) Yes (Perian) Yes (GStreamer FFmpeg plug-in) Yes Yes (ffdshow)
Sonic Audio Yes (ffdshow) Yes (ffdshow) Yes (Perian) Yes (GStreamer FFmpeg plug-in) Yes Yes (ffdshow)
MP3 Yes Yes Yes Yes (GStreamer Ugly, GStreamer FFmpeg plug-in) Yes Yes
RealAudio Yes (ffdshow) Yes (ffdshow) Yes (Perian) Yes (GStreamer FFmpeg plug-in, GStreamer DLL loader plugin + Binary Codec Packages) Yes Yes (ffdshow)
Speex Yes (ffdshow) Yes (ffdshow) Yes (Perian) Yes (GStramer Good Plug-ins, GStreamer FFmpeg plug-in) Yes Yes (ffdshow)
Vorbis Yes (ffdshow) Yes (ffdshow) Yes (Perian) Yes (GStreamer Base Plug-ins, GStreamer FFmpeg plug-in) Yes Yes (ffdshow)
La ??? No No No No No Yes (ffdshow)
LPAC No No No No No Yes (ffdshow)
Windows Media Audio v1 Yes Yes Yes (Perian) Yes (GStreamer FFmpeg plug-in) Yes Yes
Windows Media Audio v2 Yes Yes Yes (Perian) Yes (GStreamer FFmpeg plug-in) Yes Yes
Windows Media Audio Pro Yes Yes Yes (Perian) Yes (GStreamer FFmpeg plug-in) Yes Yes
Windows Media Audio Lossless Yes Yes Yes (flip4mac) Yes (GStreamer FFmpeg plug-in) Yes Yes
Windows Media Audio Voice Yes Yes No No Yes Yes
Musepack Yes (ffdshow) Yes (ffdshow, Monogram[50]) Yes (Perian) Yes (GStreamer FFmpeg plug-in) Yes Yes (ffdshow)
Meridian Lossless Packing Yes (ffdshow) Yes (ffdshow) Yes (Perian) Yes (GStreamer FFmpeg plug-in) Yes Yes (ffdshow)
Nellymoser Asao Codec in Flash Yes (ffdshow) Yes (ffdshow) Yes (Perian) Yes (GStreamer FFmpeg plug-in) Yes Yes (ffdshow)
OptimFROG No No No No No Yes (ffdshow)
Truespeech Yes Yes Yes (Perian) Yes (GStreamer FFmpeg plug-in) Yes Yes (ffdshow)
True Audio (TTA) Yes (ffdshow) Yes (ffdshow) Yes (Perian) Yes (GStreamer FFmpeg plug-in) Yes Yes (ffdshow)
QCELP Yes (ffdshow) Yes (ffdshow) Yes Yes (GStreamer FFmpeg plug-in) Yes Yes (ffdshow)
Audio compression format ACM DirectShow QuickTime GStreamer FFmpeg Media Foundation

Technical details

[edit]
Lossless formats
Audio compression format Algorithm Sample rate Bits per sample Latency Stereo Multichannel
ALAC Lossless 1–384 kHz 16, 20, 24, 32[60] ? Yes Yes: Up to 8 channels
ALS Lossless 0–4 GHz 8, 16, 24, 32 (int or float) ? Yes Yes: Up to 65536 channels
ATRAC Advanced Lossless Lossless 44.1 kHz 16 ? Yes No
Dolby TrueHD Lossless 48, 96, 192 kHz 16, 20, 24 ? Yes Yes: 5.1, 7.1, and Dolby Atmos object-based audio[61]
DTS-HD Master Audio Lossless 48, 96, 192 kHz 16, 24 ? Yes Yes: Up to 7.1[62]
FLAC Lossless 1–1.048575 MHz (>655.350 kHz need not be streamable)[63] 4–32 4.3–92 ms (46.4 ms typical) Yes Yes: Up to 8 channels
HD-AAC ? ? ? ? ? ?
LA Lossless 0–4 GiHz 16 ? Yes No
L2HC Lossless 44.1kHz 16 ? Yes No
Monkey's Audio Lossless 1–655.350 kHz[citation needed] 8, 16, 24, 32 and 32-bit float 1670 to 26,749 ms (varies with compression) Yes Yes: Up to 32 channels since version 5.50[64]
OptimFROG Lossless 0–4 GiHz[65] 8, 16, 24, 32 (int or float) ? Yes No
OSQ Lossless 6, 8, 11.025, 16, 22.05, 32, 44.1, 48, 64, 88.2, 96 kHz 8, 16, 20, 24 ? Yes No
RealAudio Lossless Lossless 8, 11.025, 16, 22.05, 32, 44.1 kHz 16 Varies Yes No
Sac Lossless 1–48 kHz 1-16 ? Yes No
TAK Lossless 8–192 kHz 8, 16, 24 ? Yes Yes: Up to 6 channels
True Audio (TTA) Lossless 0–4 GiHz 8, 16, 24 approx. 1045 ms[66] Yes Yes: Up to 16 (with ffmpeg), but no channel allocation
WavPack Lossless Lossless, Hybrid 1 Hz to 1 GiHz Up to 32 (and 32-bit float), and 1-bit DSD. ? Yes Yes: Up to 256 channels
Windows Media Audio Lossless Lossless 8, 11.025, 16, 22.05, 32, 44.1, 48, 88.2, 96 kHz 16, 24 >100 ms Yes Yes: Up to 6 channels
ITU-T formats
Audio compression format Algorithm Sample rate Bit rate Bits per sample Latency CBR VBR Stereo Multichannel
G.711 companding A-law or μ-law, PCM 8 kHz 64 kbit/s 8 bit (log) 125 μs (typical) Yes No No No
G.711.0 Lossless compression of G.711 8 kHz 0.2–65.6 kbit/s 8 bit (log) 5–40 ms No Yes No No
G.711.1 MDCT, A-law, μ-law 8, 16 kHz 64, 80, 96 kbit/s 16 bit 11.875 ms Yes Yes No No
G.718 CELP, MDCT, Lossy 8, 16 kHz 8, 12, 12.65, 16, 24, 32 kbit/s 16 bit 42.875–43.875 ms Yes Yes No No
G.718B CELP, MDCT, Lossy, Sinusoidal Coding 32 kHz 36, 40, 48 kbit/s 16 bit 49.625 ms Yes Yes No No
G.719 MDCT,[67] Lossy (incorporates elements of Siren Codec and Ericsson technology) 48 kHz 32–88 kbit/s in 4 kbit/s steps, 88–128 kbit/s in 8 kbit/s steps 16 bit 40 ms Yes No Yes: only in MPEG-4 Part 12 container Yes: only in MPEG-4 Part 12 container
G.721 ADPCM, Lossy 8 kHz 32 kbit/s 13 bit Yes No No No
G.722 sub-band ADPCM, Lossy 16 kHz 64 kbit/s
(comprises 48, 56 or 64 kbit/s audio and 16, 8 or 0 kbit/s auxiliary data)
14 bit 4 ms Yes No No No
G.722.1 Modulated Lapped Transform (MDCT), Lossy (based on Siren Codec) 16 kHz 24, 32 kbit/s 16 bit 40 ms Yes No No No
G.722.1C Modulated Lapped Transform (MDCT), Lossy (based on Siren Codec) 32 kHz 24, 32, 48 kbit/s 16 bit 40 ms Yes No No No
G.722.2 (AMR-WB) multi-rate wideband ACELP, Lossy 16 kHz 6.60, 8.85, 12.65, 14.25, 15.85, 18.25, 19.85, 23.05, 23.85 kbit/s 14 bit 25 ms Yes Yes Yes: only in MPEG-4 Part 12 container No
G.723 ADPCM, Lossy 8 kHz 24, 40 kbit/s 13 bit Yes No No No
G.723.1 MP-MLQ, ACELP, Lossy 8 kHz 5.3, 6.3 kbit/s 13 bit 37.5 ms Yes No No No
G.726 ADPCM, Lossy 8 kHz 16, 24, 32, 40 kbit/s 13 bit 125 μs Yes No No No
G.727 ADPCM, Lossy 8 kHz 16, 24, 32, 40 kbit/s 13 bit Yes Yes No No
G.728 low-delay CELP, Lossy 8 kHz 16 kbit/s 13 bit 0.625 ms Yes No No No
G.729 CS-ACELP, Lossy 8 kHz 8 kbit/s 13 bit 15 ms Yes No No No
G.729D CS-ACELP, Lossy 8 kHz 6.4 kbit/s 13 bit Yes No No No
G.729E CS-ACELP, Lossy 8 kHz 11.8 kbit/s 13 bit 15 ms Yes No No No
G.729.1 CELP, TDBWE, TDAC (MDCT), Lossy 8, 16 kHz 8 kbit/s, 12–32 kbit/s in 2 kbit/s steps 16 bit 48.9375 ms Yes Yes No No

Notes

[edit]
  • The latency listed here is the total delay (frame size, plus all lookahead) at the normal operating sample rate (typically 44.1 kHz).
  • Lossless compression will have a variable bit rate.

See also

[edit]

References

[edit]
  1. ^ "License Fees - Via Corp". www.vialicensing.com. Archived from the original on 16 January 2012. Retrieved 6 May 2017.
  2. ^ afconvert(1) Manual Page - Apple Developer, retrieved 2015-05-17
  3. ^ AAC.js at the audiocogs website, retrieved 2013-08-03
  4. ^ ALAC.js at the audiocogs website, retrieved 2013-08-03
  5. ^ VoiceAge Corporation (2007-10-14). "AMR Licensing Terms". Archived from the original on 2007-10-14. Retrieved 2009-09-12.
  6. ^ VoiceAge Corporation (June 2007). "AMR Licensing Terms". VoiceAge Corporation. Archived from the original on 2007-10-14. Retrieved 2009-09-12.
  7. ^ a b c FFmpeg General Documentation - AMR external library, Retrieved on 2009-07-08
  8. ^ a b c Android AMR codecs Archived February 18, 2009, at the Wayback Machine, Retrieved on 2009-07-08
  9. ^ VoiceAge Corporation (2007-10-14). "AMR-WB+ Licensing Terms". Archived from the original on 2007-10-14. Retrieved 2009-09-12.
  10. ^ VoiceAge Corporation (November 2006). "AMR-WB+ Licensing Terms". VoiceAge Corporation. Archived from the original on 2007-10-14. Retrieved 2009-09-12.
  11. ^ FLAC website, Retrieved 2013-08-03
  12. ^ Flake website, Retrieved 2010-12-17
  13. ^ FLACCL website, Retrieved 2013-08-03
  14. ^ FLAC.js at the audiocogs website, retrieved 2013-08-03
  15. ^ "FLAC (Free Lossless Audio Codec), Version 1.1.2". www.loc.gov. December 21, 2015.
  16. ^ a b Polycom, Inc. "Siren7/Siren14/G.719 License Agreement". Polycom, Inc. Archived from the original on 2014-07-09. Retrieved 2014-07-16.
  17. ^ a b Polycom, Inc. "Polycom Siren/Codecs FAQs - What are the terms on the free license?". Polycom, Inc. Archived from the original on 2014-07-09. Retrieved 2014-07-16.
  18. ^ "Browse FreeSWITCH / FreeSWITCH - Stash". stash.freeswitch.org. Retrieved 6 May 2017.
  19. ^ a b c "Most Licensed Patents under the G.729 Consortium have expired". Archived from the original on 2017-02-02. Retrieved 2017-12-22.
  20. ^ Cisco IP Communicator 7.0 Data sheet - support for iLBC Retrieved on 2009-07-08
  21. ^ Skype Community, Current Codec Uses Archived July 16, 2011, at the Wayback Machine, Retrieved on 2009-07-08
  22. ^ "IPR Details - Google Inc.'s Statement about IPR related to RFC 3951 and RFC 3952". datatracker.ietf.org. Retrieved 6 May 2017.
  23. ^ "Additional IP rights grant - WebRTC". sites.google.com. Archived from the original on 16 September 2016. Retrieved 6 May 2017.
  24. ^ FFmpeg/Libavcodec, numerous others, see Open Source implementations FFMPEG formats
  25. ^ Kuro5hin.org (2008-07-20) Patent Status of MPEG-1, H.261 and MPEG-2, Retrieved 2009-09-05
  26. ^ JSMad at the audiocogs website, retrieved 2013-08-03
  27. ^ See the main MP3 article for full details.
  28. ^ Musepack website, Retrieved 2009-09-01
  29. ^ "License – Opus Codec". opus-codec.org. Retrieved 6 May 2017.
  30. ^ "Shorten Lossless Audio Compression Format (SHN), Version 3.5.1". www.digitalpreservation.gov. 25 February 2011. Retrieved 6 May 2017.
  31. ^ "Shorten Software License". Retrieved 6 May 2017.
  32. ^ freeswitch.org libg722_1 - README, Retrieved 2014-07-16
  33. ^ "Libmsn - is a reusable, open-source, fully documented library for connecting to Microsoft's MSN Messenger service". Libmsn project at Sourceforge.net. 2009. Retrieved 2009-09-07.
  34. ^ KaKaRoTo (2008-02-12) MSN Protocol documentation Archived 2013-05-24 at the Wayback Machine, Pidgin.im mailinglist, Retrieved 2009-09-08
  35. ^ Speex website, Retrieved 2009-09-01
  36. ^ TAU Software website, Retrieved 2009-09-01
  37. ^ FFmpeg (2009-08-24) News - August 24, 2009 - TwinVQ decoding in upcoming stable version, Retrieved 2009-10-07
  38. ^ Vorbis website Archived 2008-11-21 at the Wayback Machine, Retrieved 2009-09-01
  39. ^ aoTuV website Archived 2010-05-22 at the Wayback Machine, Retrieved 2009-09-01
  40. ^ WavPack website, Retrieved 2009-09-01
  41. ^ "Windows Media Licensing Fees and Royalties". Microsoft. Archived from the original on 2013-06-05. Retrieved 2020-04-17.
  42. ^ "Using protected files (DRM)". Microsoft. Archived from the original on 2010-08-20. Retrieved 2020-04-17.
  43. ^ "SoundCodecs". Rockbox.org Wiki.
  44. ^ "Supported media formats". Android Developers.
  45. ^ "Supported formats". Android media.
  46. ^ "Audio/Video - The Chromium Projects". www.chromium.org.
  47. ^ "Audio formats for local playback". Huawei. Retrieved 29 April 2024.
  48. ^ a b The ffmpeg project has reverse engineered some codecs of the RealAudio and Windows Media Audio (DivX Audio v1 and DivX Audio v2) formats. This enables their use on any POSIX compatible system.
  49. ^ Microsoft has outsourced their WMA support on Mac OS X to Telestream, Inc. who created and maintain Windows Media Components for QuickTime, replacing Windows Media Player for Mac OS.
  50. ^ a b Monogram DS filters Archived 2011-09-26 at the Wayback Machine, Retrieved 2009-10-22
  51. ^ About QuickTime 6.3 (Apple Knowledge Base), In QuickTime 6.3 the AMR codec is natively supported and the .AMR file format supported with the free-to-download 3GPP Component, Retrieved 2012-12-11
  52. ^ Media formats supported by QuickTime Player in Mac OS X 10.6.x (Apple Knowledge Base), "Media formats and codecs that QuickTime Player can play back in Mac OS X v10.6.x or later" AMR is listed both under "File formats" and "Codecs or components", Retrieved 2012-12-11
  53. ^ MPEG 2 AAC was limited to a 96 kHz sampling rate, however, with MPEG 4 AAC, a later version part of the MPEG 4 specification, the maximum sampling rate has been increased to 192 kHz.
  54. ^ "Algorithmic delay and synchronization in MPEG audio codecs - EE Times". EETimes. 5 May 2010. Retrieved 6 May 2017.
  55. ^ "Support Documents and Downloads". www.broadcom.com. Retrieved 6 May 2017.
  56. ^ Schnell, Markus; Schmidt, Markus; Jander, Manuel; Albert, Tobias; Geiger, Ralf; Ruoppila, Vesa; Ekstrand, Per; Bernhard, Grill (2008-10-01). "MPEG-4 Enhanced Low Delay AAC - A New Standard for High Quality Communication". Audio Engineering Society. Available from fraunhofer.de
  57. ^ a b Predrag Supurovic (September 1998). "MPEG Audio Frame Header". Retrieved 2009-07-11.
  58. ^ ISO/IEC JTC1/SC29/WG11 - Audio Subgroup. "MPEG Audio FAQ Version 9, MPEG-1 and MPEG-2 BC". Archived from the original on 2010-02-18. Retrieved 2010-02-27.{{cite web}}: CS1 maint: numeric names: authors list (link)
  59. ^ "Opus Codec". Retrieved 2014-07-02.
  60. ^ "macosforge/alac". GitHub. Retrieved 6 May 2017.
  61. ^ "Dolby Atmos for Home Theaters". Dolby.com. Archived from the original on 20 May 2018. Retrieved 4 April 2018.
  62. ^ "DTS-HD and DTS-HD Master Audio: Enabling HD Audio Across an Evolving Media Delivery Landscape", DTS, Inc., October 2012
  63. ^ sample rates from 1 up to 1048575 hertz and bit depths from 4 up to 32 bits [1]
  64. ^ "Monkey's Audio - a fast and powerful lossless audio compressor".
  65. ^ 4 bytes - sample rate
  66. ^ "Tau Projects". en.true-audio.com. Archived from the original on 27 October 2015. Retrieved 6 May 2017.
  67. ^ Britanak, Vladimir; Rao, K. R. (2017). Cosine-/Sine-Modulated Filter Banks: General Properties, Fast Algorithms and Integer Approximations. Springer. pp. 31, 478. ISBN 9783319610801.
[edit]