Jump to content

MP3: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Undid revision 710488054 by Giraffedata (talk) was fine before
CosineP (talk | contribs)
m Removed original research, replaced with source, rephrased to match source.
Line 33: Line 33:
'''MPEG-1 or MPEG-2 Audio Layer III''',<ref name="rfc5219" /> more commonly referred to as '''MP3''', is an [[audio coding format]] for [[digital audio]] which uses a form of [[lossy data compression]]. It is a common audio format for consumer audio [[streaming media|streaming]] or storage, as well as a [[de facto standard]] of digital audio compression for the transfer and playback of music on most [[digital audio player]]s.
'''MPEG-1 or MPEG-2 Audio Layer III''',<ref name="rfc5219" /> more commonly referred to as '''MP3''', is an [[audio coding format]] for [[digital audio]] which uses a form of [[lossy data compression]]. It is a common audio format for consumer audio [[streaming media|streaming]] or storage, as well as a [[de facto standard]] of digital audio compression for the transfer and playback of music on most [[digital audio player]]s.


The use of lossy compression is designed to greatly reduce the amount of data required to represent the audio recording and still sound like a faithful reproduction of the original uncompressed audio for most listeners. An MP3 file that is created using the setting of 128 [[kbit/s]] will result in a file that is about 1/11 the size of the [[Red Book (audio CD standard)|CD]] file created from the original audio source (44,100 samples per second × 16 bits per sample × 2 channels = 1,411,200 bit/s;<ref name="CD Audio" /> MP3 compressed at 128 kbit/s: 128,000 bit/s [1 k = 1,000, not 1024, because it is a [[bit rate]]]. Ratio: 1,411,200/128,000 = 11.025). An MP3 file can also be constructed at higher or lower bit rates, with higher or lower resulting quality.
The use of lossy compression is designed to greatly reduce the amount of data required to represent the audio recording and still sound like a faithful reproduction of the original uncompressed audio for most listeners. An MP3 file that is created using the setting of 128 [[kbit/s]] will result in a file that is about 1/11 the size of a [[Red Book (audio CD standard)|CD]]-quality file.<ref>{{Cite web|url=http://www.digitalpreservation.gov/formats/fdd/fdd000012.shtml|title=MP3 (MPEG Layer III Audio Encoding)|date=2012-03-02|website=www.digitalpreservation.gov|access-date=2016-03-30}}</ref> An MP3 file can also be constructed at higher or lower bit rates, with higher or lower resulting quality.


The compression works by reducing the accuracy of certain parts of a sound that are considered to be beyond the [[Hearing (sense)|auditory]] resolution ability of most people. This method is commonly referred to as [[psychoacoustics|perceptual coding]].<ref name="Jayant1993" /> It uses psychoacoustic models to discard or reduce precision of components less audible to human hearing, and then records the remaining information in an efficient manner.
The compression works by reducing the accuracy of certain parts of a sound that are considered to be beyond the [[Hearing (sense)|auditory]] resolution ability of most people. This method is commonly referred to as [[psychoacoustics|perceptual coding]].<ref name="Jayant1993" /> It uses psychoacoustic models to discard or reduce precision of components less audible to human hearing, and then records the remaining information in an efficient manner.

Revision as of 22:25, 30 March 2016

MP3
Filename extension.mp3[1]
Internet media type
  • audio/mpeg[2]
  • audio/MPA[3]
  • audio/mpa-robust[4]
Developed byFraunhofer Institute
Initial release1993; 31 years ago (1993)[5]
Type of formatDigital audio
StandardISO/IEC 11172-3,[5] ISO/IEC 13818-3[6]
Free format?Active patents in the United States

MPEG-1 or MPEG-2 Audio Layer III,[4] more commonly referred to as MP3, is an audio coding format for digital audio which uses a form of lossy data compression. It is a common audio format for consumer audio streaming or storage, as well as a de facto standard of digital audio compression for the transfer and playback of music on most digital audio players.

The use of lossy compression is designed to greatly reduce the amount of data required to represent the audio recording and still sound like a faithful reproduction of the original uncompressed audio for most listeners. An MP3 file that is created using the setting of 128 kbit/s will result in a file that is about 1/11 the size of a CD-quality file.[7] An MP3 file can also be constructed at higher or lower bit rates, with higher or lower resulting quality.

The compression works by reducing the accuracy of certain parts of a sound that are considered to be beyond the auditory resolution ability of most people. This method is commonly referred to as perceptual coding.[8] It uses psychoacoustic models to discard or reduce precision of components less audible to human hearing, and then records the remaining information in an efficient manner.

MP3 was designed by the Moving Picture Experts Group (MPEG) as part of its MPEG-1 standard and later extended in the MPEG-2 standard. The first subgroup for audio was formed by several teams of engineers at Fraunhofer IIS, University of Hannover, AT&T-Bell Labs, Thomson-Brandt, CCETT, and others.[9] MPEG-1 Audio (MPEG-1 Part 3), which included MPEG-1 Audio Layer I, II and III was approved as a committee draft of ISO/IEC standard in 1991,[10][11] finalised in 1992[12] and published in 1993 (ISO/IEC 11172-3:1993[5]). Backwards compatible MPEG-2 Audio (MPEG-2 Part 3) with additional bit rates and sample rates was published in 1995 (ISO/IEC 13818-3:1995).[6][13]

History

Development

The MP3 lossy audio data compression algorithm takes advantage of a perceptual limitation of human hearing called auditory masking. In 1894, the American physicist Alfred M. Mayer reported that a tone could be rendered inaudible by another tone of lower frequency.[14] In 1959, Richard Ehmer described a complete set of auditory curves regarding this phenomenon.[15] Ernst Terhardt et al. created an algorithm describing auditory masking with high accuracy.[16] This work added to a variety of reports from authors dating back to Fletcher, and to the work that initially determined critical ratios and critical bandwidths.

The psychoacoustic masking codec was first proposed in 1979, apparently independently, by Manfred R. Schroeder, et al.[17] from Bell Telephone Laboratories, Inc. in Murray Hill, NJ, and M. A. Krasner[18] both in the United States. Krasner was the first to publish and to produce hardware for speech (not usable as music bit compression), but the publication of his results as a relatively obscure Lincoln Laboratory Technical Report did not immediately influence the mainstream of psychoacoustic codec development. Manfred Schroeder was already a well-known and revered figure in the worldwide community of acoustical and electrical engineers, but his paper was not much noticed, since it described negative results due to the particular nature of speech and the linear predictive coding (LPC) gain present in speech. Both Krasner and Schroeder built upon the work performed by Eberhard F. Zwicker in the areas of tuning and masking of critical bands,[19][20] that in turn built on the fundamental research in the area from Bell Labs of Harvey Fletcher and his collaborators.[21] A wide variety of (mostly perceptual) audio compression algorithms were reported in IEEE's refereed Journal on Selected Areas in Communications.[22] That journal reported in February 1988 on a wide range of established, working audio bit compression technologies, some of them using auditory masking as part of their fundamental design, and several showing real-time hardware implementations.

The immediate predecessors of MP3 were "Optimum Coding in the Frequency Domain" (OCF),[23] and Perceptual Transform Coding (PXFM).[24] These two codecs, along with block-switching contributions from Thomson-Brandt, were merged into a codec called ASPEC, which was submitted to MPEG, and which won the quality competition, but that was mistakenly rejected as too complex to implement. The first practical implementation of an audio perceptual coder (OCF) in hardware (Krasner's hardware was too cumbersome and slow for practical use), was an implementation of a psychoacoustic transform coder based on Motorola 56000 DSP chips.

As a doctoral student at Germany's University of Erlangen-Nuremberg, Karlheinz Brandenburg began working on digital music compression in the early 1980s, focusing on how people perceive music. He completed his doctoral work in 1989.[25] MP3 is directly descended from OCF and PXFM, representing the outcome of the collaboration of Brandenburg—working as a postdoc at AT&T-Bell Labs with James D. Johnston ("JJ") of AT&T-Bell Labs—with the Fraunhofer Institut for Integrated Circuits, Erlangen, with relatively minor contributions from the MP2 branch of psychoacoustic sub-band coders. In 1990, Brandenburg became an assistant professor at Erlangen-Nuremberg. While there, he continued to work on music compression with scientists at the Fraunhofer Society (in 1993 he joined the staff of the Fraunhofer Institute).[25]

The song "Tom's Diner" by Suzanne Vega was the first song used by Karlheinz Brandenburg to develop the MP3. Brandenburg adopted the song for testing purposes, listening to it again and again each time refining the scheme, making sure it did not adversely affect the subtlety of Vega's voice.[26]

Standardization

In 1991, there were only two proposals available that could be completely assessed for an MPEG audio standard: Musicam (Masking pattern adapted Universal Subband Integrated Coding And Multiplexing) and ASPEC (Adaptive Spectral Perceptual Entropy Coding). The Musicam technique, as proposed by Philips (the Netherlands), CCETT (France) and Institut für Rundfunktechnik (Germany) was chosen due to its simplicity and error robustness, as well as its low computational power associated with the encoding of high quality compressed audio.[27] The Musicam format, based on sub-band coding, was the basis of the MPEG Audio compression format (sampling rates, structure of frames, headers, number of samples per frame).

Much of its technology and ideas were incorporated into the definition of ISO MPEG Audio Layer I and Layer II and the filter bank alone into Layer III (MP3) format as part of the computationally inefficient hybrid filter bank. Under the chairmanship of Professor Musmann (University of Hannover) the editing of the standard was made under the responsibilities of Leon van de Kerkhof (Layer I) and Gerhard Stoll (Layer II).

ASPEC was the joint proposal of AT&T Bell Laboratories, Thomson Consumer Electronics, Fraunhofer Society and CNET.[28] It provided the highest coding efficiency.

A working group consisting of Leon van de Kerkhof (The Netherlands), Gerhard Stoll (Germany), Leonardo Chiariglione (Italy), Yves-François Dehery (France), Karlheinz Brandenburg (Germany) and James D. Johnston (USA) took ideas from ASPEC, integrated the filter bank from Layer 2, added some of their own ideas and created MP3, which was designed to achieve the same quality at 128 kbit/s as MP2 at 192 kbit/s.

All algorithms for MPEG-1 Audio Layer I, II and III were approved in 1991[10][11] and finalized in 1992[12] as part of MPEG-1, the first standard suite by MPEG, which resulted in the international standard ISO/IEC 11172-3 (a.k.a. MPEG-1 Audio or MPEG-1 Part 3), published in 1993.[5]

Further work on MPEG audio[29] was finalized in 1994 as part of the second suite of MPEG standards, MPEG-2, more formally known as international standard ISO/IEC 13818-3 (a.k.a. MPEG-2 Part 3 or backwards compatible MPEG-2 Audio or MPEG-2 Audio BC[13]), originally published in 1995.[6][30] MPEG-2 Part 3 (ISO/IEC 13818-3) defined additional bit rates and sample rates for MPEG-1 Audio Layer I, II and III. The new sampling rates are exactly half that of those originally defined in MPEG-1 Audio. This reduction in sampling rate serves to cut the available frequency fidelity in half while likewise cutting the bitrate by 50%. MPEG-2 Part 3 also enhanced MPEG-1's audio by allowing the coding of audio programs with more than two channels, up to 5.1 multichannel.[29]

An additional extension to MPEG-2 is named MPEG-2.5 audio, as MPEG-3 already had a different meaning. This extension was developed at Fraunhofer IIS, the registered MP3 patent holders. Like MPEG-2, MPEG-2.5 adds new sampling rates exactly half of that previously possible with MPEG-2. It thus widens the scope of MP3 to include human speech and other applications requiring only 25% of the frequency reproduction possible with MPEG-1. While not an ISO recognized standard, MPEG-2.5 is widely supported by both inexpensive and brand name digital audio players as well as computer software based MP3 encoders and decoders. A sample rate comparison between MPEG-1, 2 and 2.5 is given further down.[31][32] MPEG-2.5 was not developed by MPEG and was never approved as an international standard. MPEG-2.5 is thus an unofficial or proprietary extension to the MP3 format.

MPEG Audio Layer III versions[5][6][11][31][32][33]
Version International Standard[*] First edition public release date Latest edition public release date
MPEG-1 Audio Layer III ISO/IEC 11172-3 (MPEG-1 Part 3) 1993
MPEG-2 Audio Layer III ISO/IEC 13818-3 (MPEG-2 Part 3) 1995 1998
MPEG-2.5 Audio Layer III nonstandard, proprietary

  • The ISO standard ISO/IEC 11172-3 (a.k.a. MPEG-1 Audio) defined three formats: the MPEG-1 Audio Layer I, Layer II and Layer III. The ISO standard ISO/IEC 13818-3 (a.k.a. MPEG-2 Audio) defined extended version of the MPEG-1 Audio: MPEG-2 Audio Layer I, Layer II and Layer III. MPEG-2 Audio (MPEG-2 Part 3) should not be confused with MPEG-2 AAC (MPEG-2 Part 7 – ISO/IEC 13818-7).[13]

Compression efficiency of encoders is typically defined by the bit rate, because compression ratio depends on the bit depth and sampling rate of the input signal. Nevertheless, compression ratios are often published. They may use the Compact Disc (CD) parameters as references (44.1 kHz, 2 channels at 16 bits per channel or 2×16 bit), or sometimes the Digital Audio Tape (DAT) SP parameters (48 kHz, 2×16 bit). Compression ratios with this latter reference are higher, which demonstrates the problem with use of the term compression ratio for lossy encoders.

Karlheinz Brandenburg used a CD recording of Suzanne Vega's song "Tom's Diner" to assess and refine the MP3 compression algorithm. This song was chosen because of its nearly monophonic nature and wide spectral content, making it easier to hear imperfections in the compression format during playbacks. Some refer to Suzanne Vega as "The mother of MP3".[34] This particular track has an interesting property in that the two channels are almost, but not completely, the same, leading to a case where Binaural Masking Level Depression causes spatial unmasking of noise artifacts unless the encoder properly recognizes the situation and applies corrections similar to those detailed in the MPEG-2 AAC psychoacoustic model. Some more critical audio excerpts (glockenspiel, triangle, accordion, etc.) were taken from the EBU V3/SQAM reference compact disc and have been used by professional sound engineers to assess the subjective quality of the MPEG Audio formats.

Going public

A reference simulation software implementation, written in the C language and later known as ISO 11172-5, was developed (in 1991–1996) by the members of the ISO MPEG Audio committee in order to produce bit compliant MPEG Audio files (Layer 1, Layer 2, Layer 3). It was approved as a committee draft of ISO/IEC technical report in March 1994 and printed as document CD 11172-5 in April 1994.[35] It was approved as a draft technical report (DTR/DIS) in November 1994,[36] finalized in 1996 and published as international standard ISO/IEC TR 11172-5:1998 in 1998.[37] The reference software in C language was later published as a freely available ISO standard.[38] Working in non-real time on a number of operating systems, it was able to demonstrate the first real time hardware decoding (DSP based) of compressed audio. Some other real time implementation of MPEG Audio encoders were available for the purpose of digital broadcasting (radio DAB, television DVB) towards consumer receivers and set top boxes.

On 7 July 1994, the Fraunhofer Society released the first software MP3 encoder called l3enc.[39] The filename extension .mp3 was chosen by the Fraunhofer team on 14 July 1995 (previously, the files had been named .bit).[1] With the first real-time software MP3 player WinPlay3 (released 9 September 1995) many people were able to encode and play back MP3 files on their PCs. Because of the relatively small hard drives back in that time (~ 500–1000 MB) lossy compression was essential to store non-instrument based (see tracker and MIDI) music for playback on computer.

As sound scholar Jonathan Sterne notes, "An Australian hacker acquired l3enc using a stolen credit card. The hacker then reverse-engineered the software, wrote a new user interface, and redistributed it for free, naming it "thank you Fraunhofer"".[40]

Internet distribution

In the second half of '90s, MP3 files began to spread on the Internet. The popularity of MP3s began to rise rapidly with the advent of Nullsoft's audio player Winamp, released in 1997. In 1998, the first portable solid state digital audio player MPMan, developed by SaeHan Information Systems which is headquartered in Seoul, South Korea, was released and the Rio PMP300 was sold afterwards in 1998, despite legal suppression efforts by the RIAA.[41]

In November 1997, the website mp3.com was offering thousands of MP3s created by independent artists for free.[41] The small size of MP3 files enabled widespread peer-to-peer file sharing of music ripped from CDs, which would have previously been nearly impossible. The first large peer-to-peer filesharing network, Napster, was launched in 1999.

The ease of creating and sharing MP3s resulted in widespread copyright infringement. Major record companies argued that this free sharing of music reduced sales, and called it "music piracy". They reacted by pursuing lawsuits against Napster (which was eventually shut down and later sold) and against individual users who engaged in file sharing.[42]

Unauthorized MP3 file sharing continues on next-generation peer-to-peer networks. Some authorized services, such as Beatport, Bleep, Juno Records, eMusic, Zune Marketplace, Walmart.com, Rhapsody, the recording industry approved re-incarnation of Napster, and Amazon.com sell unrestricted music in the MP3 format.

Design

File structure

Diagram of the structure of an MP3 file
Diagram of the structure of an MP3 file (MPEG version 2.5 not supported, hence 12 instead of 11 bits for MP3 Sync Word).

An MP3 file is made up of MP3 frames, which consist of a header and a data block. This sequence of frames is called an elementary stream. Due to the "byte reservoir", frames are not independent items and cannot usually be extracted on arbitrary frame boundaries. The MP3 Data blocks contain the (compressed) audio information in terms of frequencies and amplitudes. The diagram shows that the MP3 Header consists of a sync word, which is used to identify the beginning of a valid frame. This is followed by a bit indicating that this is the MPEG standard and two bits that indicate that layer 3 is used; hence MPEG-1 Audio Layer 3 or MP3. After this, the values will differ, depending on the MP3 file. ISO/IEC 11172-3 defines the range of values for each section of the header along with the specification of the header. Most MP3 files today contain ID3 metadata, which precedes or follows the MP3 frames, as noted in the diagram.

The data stream can contain an optional checksum, but the checksum only protects the header data, not the audio data.

Joint stereo is done only on a frame-to-frame basis.[43]

Encoding and decoding

The MPEG-1 standard does not include a precise specification for an MP3 encoder, but does provide example psychoacoustic models, rate loop, and the like in the non-normative part of the original standard.[44] At present, these suggested implementations are quite dated. Implementers of the standard were supposed to devise their own algorithms suitable for removing parts of the information from the audio input. As a result, there are many different MP3 encoders available, each producing files of differing quality. Comparisons are widely available, so it is easy for a prospective user of an encoder to research the best choice. An encoder that is proficient at encoding at higher bit rates (such as LAME) is not necessarily as good at lower bit rates.

During encoding, 576 time-domain samples are taken and are transformed to 576 frequency-domain samples.[clarification needed] If there is a transient, 192 samples are taken instead of 576. This is done to limit the temporal spread of quantization noise accompanying the transient. (See psychoacoustics.)

Frequency resolution is limited by the small long block window size, which decreases coding efficiency.[43]

Time resolution can be too low for highly transient signals and may cause smearing of percussive sounds.[43]

Due to the tree structure of the filter bank, pre-echo problems are made worse, as the combined impulse response of the two filter banks does not, and cannot, provide an optimum solution in time/frequency resolution.[43] Additionally, the combining of the two filter banks' outputs creates aliasing problems that must be handled partially by the "aliasing compensation" stage; however, that creates excess energy to be coded in the frequency domain, thereby decreasing coding efficiency.[citation needed]

Decoding, on the other hand, is carefully defined in the standard. Most decoders are "bitstream compliant", which means that the decompressed output that they produce from a given MP3 file will be the same, within a specified degree of rounding tolerance, as the output specified mathematically in the ISO/IEC high standard document (ISO/IEC 11172-3). Therefore, comparison of decoders is usually based on how computationally efficient they are (i.e., how much memory or CPU time they use in the decoding process).

Encoder / decoder overall delay is not defined, which means there is no official provision for gapless playback. However, some encoders such as LAME can attach additional metadata that will allow players that can handle it to deliver seamless playback.

Quality

When performing lossy audio encoding, such as creating an MP3 file, there is a trade-off between the amount of space used and the sound quality of the result. Typically, the creator is allowed to set a bit rate, which specifies how many kilobits the file may use per second of audio. The higher the bit rate, the larger the compressed file will be, and, generally, the closer it will sound to the original file.

With too low a bit rate, compression artifacts (i.e., sounds that were not present in the original recording) may be audible in the reproduction. Some audio is hard to compress because of its randomness and sharp attacks. When this type of audio is compressed, artifacts such as ringing or pre-echo are usually heard. A sample of applause compressed with a relatively low bit rate provides a good example of compression artifacts.

Besides the bit rate of an encoded piece of audio, the quality of MP3 files also depends on the quality of the encoder itself, and the difficulty of the signal being encoded. As the MP3 standard allows quite a bit of freedom with encoding algorithms, different encoders may feature quite different quality, even with identical bit rates. As an example, in a public listening test featuring two different MP3 encoders at about 128 kbit/s,[45] one scored 3.66 on a 1–5 scale, while the other scored only 2.22.

Quality is dependent on the choice of encoder and encoding parameters.[46]

The simplest type of MP3 file uses one bit rate for the entire file: this is known as Constant Bit Rate (CBR) encoding. Using a constant bit rate makes encoding simpler and faster. However, it is also possible to create files where the bit rate changes throughout the file. These are known as Variable Bit Rate (VBR) files. The idea behind this is that, in any piece of audio, some parts will be much easier to compress, such as silence or music containing only a few instruments, while others will be more difficult to compress. So, the overall quality of the file may be increased by using a lower bit rate for the less complex passages and a higher one for the more complex parts. With some encoders, it is possible to specify a given quality, and the encoder will vary the bit rate accordingly. Users who know a particular "quality setting" that is transparent to their ears can use this value when encoding all of their music, and generally speaking not need to worry about performing personal listening tests on each piece of music to determine the correct bit rate.

Perceived quality can be influenced by listening environment (ambient noise), listener attention, and listener training and in most cases by listener audio equipment (such as sound cards, speakers and headphones).

A test given to new students by Stanford University Music Professor Jonathan Berger showed that student preference for MP3-quality music has risen each year. Berger said the students seem to prefer the 'sizzle' sounds that MP3s bring to music.[47]

An in-depth study of MP3 audio quality, sound artist and composer Ryan Maguire's project "The Ghost in the MP3" isolates the sounds lost during MP3 compression. In 2015, he released the track "moDernisT" (an anagram of "Tom's Diner"), composed exclusively from the sounds deleted during MP3 compression of the song "Tom's Diner",[48][49][50] the track originally used in the formulation of the MP3 standard. A detailed account of the techniques used to isolate the sounds deleted during MP3 compression, along with the conceptual motivation for the project, was published in the 2014 Proceedings of the International Computer Music Conference.[51]

Bit rate

MPEG Audio Layer III
available bit rates (kbit/s)[11][31][32][33][52]
MPEG-1
Audio Layer III
MPEG-2
Audio Layer III
MPEG-2.5
Audio Layer III
- 8 8
- 16 16
- 24 24
32 32 32
40 40 40
48 48 48
56 56 56
64 64 64
80 80
96 96
112 112
128 128
144
160 160
192 - -
224 - -
256 - -
320 - -
Supported sampling rates
by MPEG Audio Format[11][31][32][33]
MPEG-1
Audio Layer III
MPEG-2
Audio Layer III
MPEG-2.5
Audio Layer III
- - 8000 Hz
- - 11025 Hz
- - 12000 Hz
- 16000 Hz -
- 22050 Hz -
- 24000 Hz -
32000 Hz - -
44100 Hz - -
48000 Hz - -

Several bit rates are specified in the MPEG-1 Audio Layer III standard: 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256 and 320 kbit/s, with available sampling frequencies of 32, 44.1 and 48 kHz.[32] MPEG-2 Audio Layer III allows bit rates of 8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160 kbit/s with sampling frequencies of 16, 22.05 and 24 kHz.[32] MPEG-2.5 Audio Layer III is restricted to bit rates of 8, 16, 24, 32, 40, 48, 56 and 64 kbit/s with sampling frequencies of 8, 11.025, and 12 kHz.[citation needed] Because of the Nyquist–Shannon sampling theorem, frequency reproduction is always strictly less than half of the sampling frequency, and imperfect filters requires a larger margin for error (noise level versus sharpness of filter), so 8 kHz sampling rate limits the maximum frequency to 4 kHz, while 48 kHz maximum sampling rate limits an MP3 to 24 kHz sound reproduction.

A sample rate of 44.1 kHz is almost always used, because this is also used for CD audio, the main source used for creating MP3 files. A greater variety of bit rates are used on the Internet. The rate of 128 kbit/s is commonly used,[53] at a compression ratio of 11:1, offering adequate audio quality in a relatively small space. As Internet bandwidth availability and hard drive sizes have increased, higher bit rates up to 320 kbit/s are widespread.

Uncompressed audio as stored on an audio-CD has a bit rate of 1,411.2 kbit/s, (16 bit/sample × 44100 samples/second × 2 channels / 1000 bits/kilobit), so the bitrates 128, 160 and 192 kbit/s represent compression ratios of approximately 11:1, 9:1 and 7:1 respectively.

Non-standard bit rates up to 640 kbit/s can be achieved with the LAME encoder and the freeformat option, although few MP3 players can play those files. According to the ISO standard, decoders are only required to be able to decode streams up to 320 kbit/s.[54]

Early MPEG Layer III encoders used what is now called Constant Bit Rate (CBR). The software was only able to use a uniform bitrate on all frames in an MP3 file. Later more sophisticated MP3 encoders were able to use the bit reservoir to target an average bit rate selecting the encoding rate for each frame based on the complexity of the sound in that portion of the recording.

A more sophisticated MP3 encoder can produce variable bitrate audio. MPEG audio may use bitrate switching on a per-frame basis, but only layer III decoders must support it.[32][55][56][57] VBR is used when the goal is to achieve a fixed level of quality. The final file size of a VBR encoding is less predictable than with constant bitrate. Average bitrate is VBR implemented as a compromise between the two: the bitrate is allowed to vary for more consistent quality, but is controlled to remain near an average value chosen by the user, for predictable file sizes. Although an MP3 decoder must support VBR to be standards compliant, historically some decoders have bugs with VBR decoding, particularly before VBR encoders became widespread.

Layer III audio can also use a "bit reservoir", a partially full frame's ability to hold part of the next frame's audio data, allowing temporary changes in effective bitrate, even in a constant bitrate stream.[32][55] Internal handling of the bit reservoir increases encoding delay.[citation needed]

There is no scale factor band 21 (sfb21) for frequencies above approx 16 kHz, forcing the encoder to choose between less accurate representation in band 21 or less efficient storage in all bands below band 21, the latter resulting in wasted bitrate in VBR encoding.[58]

Ancillary Data

The ancillary data field can be used to store user defined data. The ancillary data is optional and the number of bits available is not explicitly given. The ancillary data is located after the Huffman code bits and ranges to where the next frame’s main_data_begin points to. mp3PRO uses ancillary data to encode their bits to improve audio quality.

Metadata

A "tag" in an audio file is a section of the file that contains metadata such as the title, artist, album, track number or other information about the file's contents. The MP3 standards do not define tag formats for MP3 files, nor is there a standard container format that would support metadata and obviate the need for tags.

However, several de facto standards for tag formats exist. As of 2010, the most widespread are ID3v1 and ID3v2, and the more recently introduced APEv2. These tags are normally embedded at the beginning or end of MP3 files, separate from the actual MP3 frame data. MP3 decoders either extract information from the tags, or just treat them as ignorable, non-MP3 junk data.

Playing & editing software often contains tag editing functionality, but there are also tag editor applications dedicated to the purpose.

Aside from metadata pertaining to the audio content, tags may also be used for DRM.[59]

ReplayGain is a standard for measuring and storing the loudness of an MP3 file (audio normalization) in its metadata tag, enabling a ReplayGain-compliant player to automatically adjust the overall playback volume for each file. MP3Gain may be used to reversibly modify files based on ReplayGain measurements so that adjusted playback can be achieved on players without ReplayGain capability.

Licensing, ownership and legislation

The basic MP3 decoding and encoding technology is patent-free in the European Union, all patents having expired there. In the United States, the technology will be substantially patent-free on 31 December 2017 (see below). The majority of MP3 patents expired in the US between 2007 and 2015.

In the past, many organizations have claimed ownership of patents related to MP3 decoding or encoding. These claims led to a number of legal threats and actions from a variety of sources. As a result, uncertainty about which patents must be licensed in order to create MP3 products without committing patent infringement in countries that allow software patents was a common feature of the early stages of adoption of the technology.

The initial near-complete MPEG-1 standard (parts 1, 2 and 3) was publicly available on 6 December 1991 as ISO CD 11172.[60][61] In most countries, patents cannot be filed after prior art has been made public, and patents expire 20 years after the initial filing date, which can be up to 12 months later for filings in other countries. As a result, patents required to implement MP3 expired in most countries by December 2012, 21 years after the publication of ISO CD 11172.

An exception is the United States, where patents filed prior to 8 June 1995 expire 17 years after the publication date of the patent, but application extensions make it possible for a patent to issue much later than normally expected (see submarine patents). The various MP3-related patents expire on dates ranging from 2007 to 2017 in the U.S.[62] Patents filed for anything disclosed in ISO CD 11172 a year or more after its publication are questionable. If only the known MP3 patents filed by December 1992 are considered, then MP3 decoding has been patent-free in the US since 22 September 2015 when U.S. patent 5,812,672 expired which had a PCT filing in October 1992.[63][64][65] If the longest-running patent mentioned in the aforementioned references is taken as a measure, then the MP3 technology will be patent-free in the United States on 30 December 2017 when U.S. patent 5,703,999, held by the Fraunhofer-Gesellschaft[66] and administered by Technicolor,[67] expires.

Technicolor (formerly called Thomson Consumer Electronics) claims to control MP3 licensing of the Layer 3 patents in many countries, including the United States, Japan, Canada and EU countries.[68] Technicolor has been actively enforcing these patents.[69]

MP3 license revenues generated about €100 million for the Fraunhofer Society in 2005.[70]

In September 1998, the Fraunhofer Institute sent a letter to several developers of MP3 software stating that a license was required to "distribute and/or sell decoders and/or encoders". The letter claimed that unlicensed products "infringe the patent rights of Fraunhofer and Thomson. To make, sell and/or distribute products using the [MPEG Layer-3] standard and thus our patents, you need to obtain a license under these patents from us."[71]

Sisvel S.p.A. and its U.S. subsidiary Audio MPEG, Inc. previously sued Thomson for patent infringement on MP3 technology,[72] but those disputes were resolved in November 2005 with Sisvel granting Thomson a license to their patents. Motorola followed soon after, and signed with Sisvel to license MP3-related patents in December 2005.[73] Except for three patents, the US patents administered by Sisvel[74] had all expired in 2015, however (the exceptions are: U.S. patent 5,878,080, expires February 2017, U.S. patent 5,850,456, expires February 2017 and U.S. patent 5,960,037, expires 9. April 2017.[75]

In September 2006, German officials seized MP3 players from SanDisk's booth at the IFA show in Berlin after an Italian patents firm won an injunction on behalf of Sisvel against SanDisk in a dispute over licensing rights. The injunction was later reversed by a Berlin judge,[76] but that reversal was in turn blocked the same day by another judge from the same court, "bringing the Patent Wild West to Germany" in the words of one commentator.[77]

In February 2007, Texas MP3 Technologies sued Apple, Samsung Electronics and Sandisk in eastern Texas federal court, claiming infringement of a portable MP3 player patent that Texas MP3 said it had been assigned. Apple, Samsung, and Sandisk all settled the claims against them in January 2009.[78][79]

Alcatel-Lucent has asserted several MP3 coding and compression patents, allegedly inherited from AT&T-Bell Labs, in litigation of its own. In November 2006, before the companies' merger, Alcatel sued Microsoft for allegedly infringing seven patents. On 23 February 2007, a San Diego jury awarded Alcatel-Lucent US $1.52 billion in damages for infringement of two of them.[80] The court subsequently tossed the award, however, finding that one patent had not been infringed and that the other was not even owned by Alcatel-Lucent; it was co-owned by AT&T and Fraunhofer, who had licensed it to Microsoft, the judge ruled.[81] That defense judgment was upheld on appeal in 2008.[82] See Alcatel-Lucent v. Microsoft for more information.

Alternative technologies

Other lossy formats exist. Among these, mp3PRO, AAC, and MP2 are all members of the same technological family as MP3 and depend on roughly similar psychoacoustic models. The Fraunhofer Gesellschaft owns many of the basic patents underlying these formats as well, with others held by Alcatel-Lucent, and Thomson Consumer Electronics.[83]

There are also open compression formats like Opus and Vorbis that are available free of charge and without any known patent restrictions. Some of the newer audio compression formats, such as AAC, WMA Pro and Vorbis, are free of some limitations inherent to the MP3 format that cannot be overcome by any MP3 encoder.[62]

Besides lossy compression methods, lossless formats are a significant alternative to MP3 because they provide unaltered audio content, though with an increased file size compared to lossy compression. Lossless formats include FLAC (Free Lossless Audio Codec), Apple Lossless and many others.

See also

References

  1. ^ a b "Happy Birthday MP3!". Fraunhofer IIS. 12 July 2005. Retrieved 18 July 2010.
  2. ^ "The audio/mpeg Media Type — RFC 3003". IETF. November 2000. Retrieved 7 December 2009.
  3. ^ "MIME Type Registration of RTP Payload Formats — RFC 3555". IETF. July 2003. Retrieved 7 December 2009.
  4. ^ a b "A More Loss-Tolerant RTP Payload Format for MP3 Audio — RFC 5219". IETF. February 2008. Retrieved 4 December 2014.
  5. ^ a b c d e "ISO/IEC 11172-3:1993 – Information technology — Coding of moving pictures and associated audio for digital storage media at up to about 1,5 Mbit/s — Part 3: Audio". ISO. 1993. Retrieved 14 July 2010.
  6. ^ a b c d "ISO/IEC 13818-3:1995 – Information technology — Generic coding of moving pictures and associated audio information — Part 3: Audio". ISO. 1995. Retrieved 14 July 2010.
  7. ^ "MP3 (MPEG Layer III Audio Encoding)". www.digitalpreservation.gov. 2 March 2012. Retrieved 30 March 2016.
  8. ^ Jayant, Nikil; Johnston, James; Safranek, Robert (October 1993). "Signal Compression Based on Models of Human Perception". Proceedings of the IEEE. 81 (10): 1385–1422. doi:10.1109/5.241504.
  9. ^ Chiariglione, Leonardo (6 September 2009). "Riding the Media Bits — MPEG's first Steps". Retrieved 4 December 2014.
  10. ^ a b ISO (November 1991). "MPEG Press Release, Kurihama, November 1991". ISO. Retrieved 17 July 2010.
  11. ^ a b c d e ISO (November 1991). "CD 11172-3 - CODING OF MOVING PICTURES AND ASSOCIATED AUDIO FOR DIGITAL STORAGE MEDIA AT UP TO ABOUT 1.5 MBIT/s Part 3 AUDIO" (PDF). Retrieved 17 July 2010.
  12. ^ a b ISO (6 November 1992). "MPEG Press Release, London, 6 November 1992". Chiariglione. Retrieved 17 July 2010.
  13. ^ a b c ISO (October 1998). "MPEG Audio FAQ Version 9 - MPEG-1 and MPEG-2 BC". ISO. Retrieved 28 October 2009.
  14. ^ Mayer, Alfred Marshall (1894). "Researches in Acoustics". London, Edinburgh and Dublin Philosophical Magazine. 37 (226): 259–288. doi:10.1080/14786449408620544.
  15. ^ Ehmer, Richard H. (1959). "Masking by Tones Vs Noise Bands". The Journal of the Acoustical Society of America. 31 (9): 1253. Bibcode:1959ASAJ...31.1253E. doi:10.1121/1.1907853.
  16. ^ Terhardt, E.; Stoll, G.; Seewann, M. (March 1982). "Algorithm for Extraction of Pitch and Pitch Salience from Complex Tonal Signals". The Journal of the Acoustical Society of America. 71 (3): 679. Bibcode:1982ASAJ...71..679T. doi:10.1121/1.387544.
  17. ^ Schroeder, M.R.; Atal, B.S.; Hall, J.L. (December 1979). "Optimizing Digital Speech Coders by Exploiting Masking Properties of the Human Ear". The Journal of the Acoustical Society of America. 66 (6): 1647. Bibcode:1979ASAJ...66.1647S. doi:10.1121/1.383662.
  18. ^ Krasner, M. A. (18 June 1979). "Digital Encoding of Speech and Audio Signals Based on the Perceptual Requirements of the Auditory System". {{cite journal}}: Cite journal requires |journal= (help)
  19. ^ Zwicker, E. F. (1974). "On the Psycho-acoustical Equivalent of Tuning Curves". Proceedings of the Symposium on Psychophysical Models and Physiological Facts in Hearing; held at Tuzing, Oberbayern, April 22–26, 1974.
  20. ^ Zwicker, Eberhard; Feldtkeller, Richard (1999) [1967]. Das Ohr als Nachrichtenempfänger. Trans. by Hannes Müsch, Søren Buus, and Mary Florentine. {{cite book}}: Unknown parameter |trans_title= ignored (|trans-title= suggested) (help)
  21. ^ Fletcher, Harvey (1995). Speech and Hearing in Communication. Acoustical Society of America. ISBN 1-56396-393-0.
  22. ^ "Voice Coding for Communications". IEEE Journal on Selected Areas in Communications. 6 (2). February 1988.
  23. ^ Brandenburg, Karlheinz; Seitzer, Dieter (3–6 November 1988). OCF: Coding High Quality Audio with Data Rates of 64 kbit/s. 85th Convention of Audio Engineering Society.
  24. ^ Johnston, James D. (February 1988). "Transform Coding of Audio Signals Using Perceptual Noise Criteria". IEEE Journal on Selected Areas in Communications. 6 (2): 314–323. doi:10.1109/49.608.
  25. ^ a b Ewing, Jack (5 March 2007). "How MP3 Was Born". BusinessWeek. Retrieved 24 July 2007.
  26. ^ Sterne, Jonathan (2012). MP3: The Meaning of a Format Reproduction. Durham: Duke University Press.
  27. ^ "Status report of ISO MPEG" (Press release). International Organization for Standardization. September 1990.
  28. ^ "Aspec-Adaptive Spectral Entropy Coding of High Quality Music Signals". AES E-Library. 1991. Retrieved 24 August 2010.
  29. ^ a b "Adopted at 22nd WG11 meeting" (Press release). International Organization for Standardization. 2 April 1993. Retrieved 18 July 2010.
  30. ^ Brandenburg, Karlheinz; Bosi, Marina (February 1997). "Overview of MPEG Audio: Current and Future Standards for Low-Bit-Rate Audio Coding". Journal of the Audio Engineering Society. 45 (1/2): 4–21. Retrieved 30 June 2008.
  31. ^ a b c d "MP3 technical details (MPEG-2 and MPEG-2.5)". Fraunhofer IIS. September 2007. Archived from the original on 24 January 2008. "MPEG-2.5" is the name of a proprietary extension developed by Fraunhofer IIS. It enables MP3 to work satisfactorily at very low bitrates and introduces the additional sampling frequencies 8 kHz, 11.025 kHz and 12 kHz.
  32. ^ a b c d e f g h Supurovic, Predrag (22 December 1999). "MPEG Audio Frame Header". Retrieved 29 May 2009.
  33. ^ a b c "ISO/IEC 13818-3:1994(E) - Information Technology — Generic Coding of Moving Pictures and Associated Audio: Audio" (ZIP). 11 November 1994. Retrieved 4 August 2010.
  34. ^ "Fun Facts: Music". The Official Community of Suzanne Vega.
  35. ^ MPEG (25 March 1994). "Approved at 26th meeting (Paris)". Retrieved 5 August 2010.
  36. ^ MPEG (11 November 1994). "Approved at 29th meeting". Retrieved 5 August 2010.
  37. ^ ISO. "ISO/IEC TR 11172-5:1998 - Information technology -- Coding of moving pictures and associated audio for digital storage media at up to about 1,5 Mbit/s -- Part 5: Software simulation". Retrieved 5 August 2010.
  38. ^ "ISO/IEC TR 11172-5:1998 - Information technology -- Coding of moving pictures and associated audio for digital storage media at up to about 1,5 Mbit/s -- Part 5: Software simulation (Reference Software)" (ZIP). Retrieved 5 August 2010.
  39. ^ "MP3 Todays Technology". Lots of Informative Information about Music. 2005. Archived from the original on 4 July 2008. Retrieved 10 December 2015. {{cite web}}: Unknown parameter |deadurl= ignored (|url-status= suggested) (help)
  40. ^ Sterne, Jonathan (2012). MP3: The Meaning of a Format Reproduction. Durham: Duke University Press, p. 201-202
  41. ^ a b Schubert, Ruth (10 February 1999). "Tech-savvy Getting Music For A Song; Industry Frustrated That Internet Makes Free Music Simple". Seattle Post-Intelligencer. Retrieved 22 November 2008.
  42. ^ Giesler, Markus (2008). "Conflict and Compromise: Drama in Marketplace Evolution". Journal of Consumer Research. 34 (6): 739–753. doi:10.1086/522098.
  43. ^ a b c d Bouvigne, Gabriel (2003). "MP3 Tech — Limitations".
  44. ^ "ISO/IEC 11172-3:1993/Cor 1:1996". International Organization for Standardization. 2006. Retrieved 27 August 2009.
  45. ^ Amorim, Roberto (3 August 2003). "Results of 128 kbit/s Extension Public Listening Test". Retrieved 17 March 2007.
  46. ^ Mares, Sebastian (December 2005). "Results of the public multiformat listening test @ 128 kbps". Retrieved 17 March 2007.
  47. ^ Dougherty, Dale (1 March 2009). "The Sizzling Sound of Music". O'Reilly Radar.
  48. ^ http://noisey.vice.com/blog/yntht-there-are-ghosts-in-your-mp3s
  49. ^ http://kernelmag.dailydot.com/issue-sections/features-issue-sections/12144/ghost-in-mp3-compression-audio/
  50. ^ [1]
  51. ^ http://speech.di.uoa.gr/ICMC-SMC-2014/images/VOL_1/0243.pdf
  52. ^ "Guide to command line options (in CVS)". Retrieved 4 August 2010.
  53. ^ Woon-Seng Gan; Sen-Maw Kuo (2007). Embedded signal processing with the Micro Signal Architecture. Wiley-IEEE Press. p. 382. ISBN 978-0-471-73841-1.
  54. ^ Bouvigne, Gabriel (28 November 2006). = &showtopic = 38808&view = findpost&p = 452751 "freeformat at 640 kbit/s and foobar2000, possibilities?". Retrieved 17 March 2007. {{cite web}}: Check |url= value (help)
  55. ^ a b "GPSYCHO – Variable Bit Rate". LAME MP3 Encoder. Retrieved 11 July 2009.
  56. ^ "TwoLAME: MPEG Audio Layer II VBR". Retrieved 11 July 2009.
  57. ^ ISO MPEG Audio Subgroup. "MPEG Audio FAQ Version 9: MPEG-1 and MPEG-2 BC". Retrieved 11 July 2009.
  58. ^ "LAME Y switch". Hydrogenaudio Knowledgebase. Retrieved 23 March 2015.
  59. ^ Rae, Casey. "Metadata and You". Future of Music Coalition. Retrieved 12 December 2014.
  60. ^ [Performance of a Software MPEG Video Decoder, Ketan Patel, Brian C. Smith, and Lawrence A. Rowe, ACM Multimedia 1993 Conference, http://bmrc.berkeley.edu/research/mpeg/software/Old/Mpeg93.ps.gz Berkeley.edu][dead link]
  61. ^ Berkeley.edu Archived 2009-07-23 at the Wayback Machine
  62. ^ a b "A Big List of MP3 Patents (and supposed expiration dates)". tunequest. 26 February 2007.
  63. ^ Cogliati, Josh (20 July 2008). "Patent Status of MPEG-1, H.261 and MPEG-2". Kuro5hin. This work failed to consider patent divisions and continuations.
  64. ^ US5812672
  65. ^ http://www.osnews.com/story/24954/US_Patent_Expiration_for_MP3_MPEG-2_H_264
  66. ^ http://www.google.com/patents/US5703999
  67. ^ http://mp3licensing.com/patents/index.html
  68. ^ "Acoustic Data Compression – MP3 Base Patent". Foundation for a Free Information Infrastructure. 15 January 2005. Archived from the original on 15 July 2007. Retrieved 24 July 2007. {{cite web}}: Unknown parameter |deadurl= ignored (|url-status= suggested) (help)
  69. ^ [2] Archived 2011-05-04 at the Wayback Machine
  70. ^ Kistenfeger, Muzinée (July 2007). "The Fraunhofer Society (Fraunhofer-Gesellschaft, FhG)". British Consulate-General Munich. Archived from the original on 13 December 2007. Retrieved 24 July 2007.
  71. ^ "Early MP3 Patent Enforcement". Chilling Effects Clearinghouse. 1 September 1998. Retrieved 24 July 2007.
  72. ^ "Audio MPEG and Sisvel: Thomson sued for patent infringement in Europe and the United States — MP3 players stopped by customs". ZDNet India. 6 October 2005. Archived from the original on 11 October 2007. Retrieved 24 July 2007.
  73. ^ "grants Motorola an MP3 and MPEG 2 audio patent license". SISVEL. 21 December 2005. Retrieved 18 January 2014.
  74. ^ http://217.27.95.141/media/files/US%20MPEG%20Audio%20Patents%281%29.pdf
  75. ^ http://www.google.com/patents/US5850456
  76. ^ Ogg, Erica (7 September 2006). "SanDisk MP3 seizure order overturned". CNET News. Archived from the original on 14 July 2012. Retrieved 24 July 2007.
  77. ^ "Sisvel brings Patent Wild West into Germany". IPEG blog. 7 September 2006. Retrieved 24 July 2007.
  78. ^ "Apple, SanDisk Settle Texas MP3 Patent Spat". IP Law360. 26 January 2009. Retrieved 16 August 2010.
  79. ^ = 2aa26940-06f4-44a3-865e-12b66912eed5 "Baker Botts LLP Professionals: Lisa Catherine Kelly — Representative Engagements". Baker Botts LLP. Retrieved 16 August 2010. {{cite web}}: Check |url= value (help)
  80. ^ "Microsoft faces $1.5bn MP3 payout". BBC News. 22 February 2007. Retrieved 30 June 2008.
  81. ^ "Microsoft wins reversal of MP3 patent decision". CNET. 6 August 2007. Retrieved 17 August 2010.
  82. ^ "Court of Appeals for the Federal Circuit Decision" (PDF). 25 September 2008.
  83. ^ Brandenburg, Karlheinz (1999). "MP3 and AAC Explained" (PDF).
Cite error: A list-defined reference named "CD Audio" is not used in the content (see the help page).

Further reading

Template:Z148