MPEG = Motion Picture Experts Group
JPEG = Joint Photographic Experts Group
Basically, MPEG and JPEG are acronyms for groups of people who develop encoding algorithms and establish spec standards...like specialized versions of the ISO (International Standards Organization). The algorithms used in JPEG and MPEG Audio Layer is similar, but not the same...the JPEG algorithm creates a specialized palette and removes pixel data for pixels that are either not used at all, or are not easily perceivable by human vision...for example, if you have blue 132 with blue 140 in some small areas, it would remove some or all of the blue 140. If you have a 24-bit bitmap image in 800x600, that means you have 480,000 pixels, each requiring 3 bytes of memory (1.5 megabytes total). Most pictures do not have 16.7 million individual colors...so the JPEG algorithm can safely remove a large portion of pixel data without reducing the image quality, it then proceeds to remove the lesser amount of similar colors.
MPEG encoding of audio uses quantization, meaning it breaks the wave file apart into "frames", then each frame is passed through the algorithm. This algorithm first removes data for sound that is not audible to human ears at all, it then removes data for sounds that are not audible due to another sound being louder (example, if a song has a string section for ambience, you will not hear the string section when a bass drum is struck, so the algorithm would remove the data for the string section for each occurence of the bass drum). The extent to which the algorithm removes data is determined by the bitrate...so if you are encoding at 128kbps, then the algorithm will remove data from the frame until it is in spec with 128 kilobits.
Bonus: This is why CBR encoding sucks...you are applying a "once size fits all" kind of algorithm to the sound. Say a song starts out with just cymbals and a bass drum...you don't need 128 kbps to store data for those sounds...with VBR encoding, the bitrate will adjust to accomodate the requirements of the song. After the song gets going, you might have bass and vocals...along with other ambient sounds. This will require more than 128 kbps to sound good. Remember, the algorithm can adjust bitrate for each frame it processes, so you make the most efficient AND best performing use of MPEG Layer 3 by using a quality VBR encoder, such as LAME.
-= SsZERO =-
<<
I thought JPG and MP3's were the same technology? Hence JPEG and MPEG? >>