Wednesday, July 19, 2006

MPEG Audio

MPEG 1 - ISO/IEC 11172-3
  • Till 1.5 MBPS
  • Layer 3 (MP3)
  • Layer 1 & 2 can be split and do not contain highjacked data
  • Layer 3 decodes layer 1 & layer 2 data
MPEG 2
  • Supports Lower Sampling Rate

Compliance - ISO/IEC 13818-4 : 2004(E)


Steps for Mp3 Encoder

1. Break Down Stream into Frames
2. Split into Subbands - determine its "spectral energy distribution."
3. Take Encoding bitrate, compare freq. spread for each frame with human psychoacoustics (reference table) Allocate bits
* Borrow bits from Reservoir if needed
4. Huffman coding -lossless - lookup to do bit substitution

Steps for Mp3 Decoder

1. examining the bitstream of header and data frames for spectral components and the side information stored alongside them
2. reconstructing this information to create an audio signal.


Mp3 - Imperciability

1. While certain frequencies may not be distinctly perceptible, their cumulative effect contributes to the overall "presence" and ambience of recorded music. may not be distinctly perceptible, their cumulative effect contributes to the overall "presence" and ambience of recorded music.
2. Joint Stereo - One ear better than the other

Misc Info

* MPEG1 Frame - always 1,152 samples per frame
o 44.1Khz Sampling = 26.12ms (38.46... fps aka frames per second
* FrameSize (bytes) = 144 * BitRate / (SampleRate + Padding)
o 44.1Khz Sampling + 128kbps -> FrameSize = 144 * 128000 / (44100 + 0) = 417.96 bytes


Links

* How MP3 Works: Inside the Codec - http://www.mp3-converter.com/mp3codec/
* For more information on psychoacoustics, read any of the excellent papers on the subject at www.cpl.umn.edu/auditory.htm
* www.mp3-tech.org/
* www.iso.ch.

Human Ear

The human ear is largely insensitive to the location of the source of sounds at the very low and very high ends of the frequency spectrum - therefore the subwoofer can be placed anywhere.

Peak Sensitivity ~ 2K to 4K
90dB dynamic Range

Friday, April 07, 2006

An efficient method of Huffman decoding for MPEG-2 AAC and its performance analysis

An efficient method of Huffman decoding for MPEG-2 AAC and its performance analysis

Jae-Sik Lee Jong-Hoon Jeong Tae-Gyu Chang
Sch. of Electr. & Electron. Eng., Chung-Ang Univ. Seoul, South Korea;

This paper appears in: Speech and Audio Processing, IEEE Transactions on
Publication Date: Nov. 2005
Volume: 13, Issue: 6
On page(s): 1206- 1209
ISSN: 1063-6676
INSPEC Accession Number: 8622572
Digital Object Identifier: 10.1109/TSA.2005.852989
Posted online: 2005-10-17 08:45:36.0

Abstract
This paper presents a new method for Huffman decoding specially designed for the MPEG-2 AAC audio. The method significantly enhances the processing efficiency of the conventional Huffman decoding realized with the ordinary binary tree search method. A data structure of one-dimensional array is newly designed based on the numerical interpretation of the incoming bit stream and its utilization for the offset oriented nodes allocation. The Huffman tree implemented with the proposed data structure allows the direct computation of the branching location, eliminating the need for the pipeline-violating "compare and jump" instructions. The experimental results show the average performance enhancement of 67% and 285%, compared to those of the conventional binary tree search method and the sequential search method, respectively. The proposed method also shows slightly better processing efficiency, while requiring much less memory space, compared even with those up-to-date efficient search methods of Hashemian and its variants.