Click here to Skip to main content
15,899,126 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Finally, after all these years! Pin
Sander Rossel7-Dec-20 4:35
professionalSander Rossel7-Dec-20 4:35 
GeneralRe: Finally, after all these years! Pin
  Forogar  7-Dec-20 4:41
professional  Forogar  7-Dec-20 4:41 
GeneralRe: Finally, after all these years! Pin
Sander Rossel7-Dec-20 8:21
professionalSander Rossel7-Dec-20 8:21 
GeneralRe: Finally, after all these years! Pin
Jörgen Andersson7-Dec-20 20:12
professionalJörgen Andersson7-Dec-20 20:12 
GeneralRe: Finally, after all these years! Pin
trønderen8-Dec-20 14:55
trønderen8-Dec-20 14:55 
GeneralRe: Finally, after all these years! Pin
Mircea Neacsu7-Dec-20 4:38
Mircea Neacsu7-Dec-20 4:38 
GeneralRe: Finally, after all these years! Pin
jeron17-Dec-20 7:41
jeron17-Dec-20 7:41 
GeneralRe: Finally, after all these years! Pin
trønderen8-Dec-20 15:26
trønderen8-Dec-20 15:26 
Now you are mixing up things completely!

For taking the very basics: 44100 is the number of samples, each sample being two 16-bit values. The bit rate is a 1411 kilobits/sec - more than four times 320 kilobits/sec.

Those 320 kbps has nothing to do with the sample rate or the sample width. We are talking about compressed data, like a .zip file. To make a super-trivial example: If there is a five second pause in the music, 5 * 44100 * 2 * 16 = 7055 kbits, in the CD format. In a compressed file, you can rather store this with a code that means "repeat sample value 0 for both channels 220500 times", using far less than 7 megabits.

The MP3 coding is using quite different techniques than counting repeated sample values, and it is't giving you back a perfect copy of the original uncompressed sound (so it cannot be directly compared to zip). One of the basic ideas between the MPx compression is to identify which details you wouldn't hear anyway, they will drown in other sounds. The higher you set the bit rate, the more such inaudible detals are considered for compression. An MP3@128 file has "simplified" the sound more than an MP3@224 file - but if you couldn't hear anyway the details that were removed, it is just a waste of space.

One more thing: Contrary to common belief, MP3 encoding is not standardized. MP3 decoding is. Given an MP3 file, all decoders will produce exactly the same sound. But given an .wav file, the encoder has a multitude of alternate ways to generate a valid MP3 file; they will generate different files, all decoding to approximately the same sound, some very close to the original .wav file, some that could have audible differences. Encoders use a whole back of tricks, often proprietary, for determining the best alternative. E.g. they may try out several alternatives, decode them back and compare to the the original file. The encoding alternative that differs the least from the original is chosen for the encoding. A simpler, poorer quality encoder may make a single attempt at something that resembles the original file, and leave it at that.

So, the sound quality of an MP3 file strongly depends on the encoder. Neither 128 kbps nor 224 kbps sets the quality. A top rate encoder at 128 kbps may produce a better result than a mediocre one at 224 kbps.
GeneralRe: Finally, after all these years! Pin
Mircea Neacsu8-Dec-20 15:32
Mircea Neacsu8-Dec-20 15:32 
GeneralRe: Finally, after all these years! Pin
Scott Serl7-Dec-20 7:23
Scott Serl7-Dec-20 7:23 
GeneralRe: Finally, after all these years! Pin
Mircea Neacsu7-Dec-20 7:41
Mircea Neacsu7-Dec-20 7:41 
GeneralRe: Finally, after all these years! Pin
Sander Rossel7-Dec-20 8:27
professionalSander Rossel7-Dec-20 8:27 
GeneralRe: Finally, after all these years! Pin
trønderen8-Dec-20 15:57
trønderen8-Dec-20 15:57 
GeneralRe: Finally, after all these years! Pin
Sander Rossel8-Dec-20 22:10
professionalSander Rossel8-Dec-20 22:10 
GeneralRe: Finally, after all these years! Pin
Nelek7-Dec-20 19:18
protectorNelek7-Dec-20 19:18 
GeneralWSO CCC OTD 2020-12-07 Pin
OriginalGriff6-Dec-20 21:33
mveOriginalGriff6-Dec-20 21:33 
GeneralRe: WSO CCC OTD 2020-12-07 Pin
yacCarsten6-Dec-20 22:20
yacCarsten6-Dec-20 22:20 
GeneralRe: WSO CCC OTD 2020-12-07 - we have a winner! Pin
OriginalGriff6-Dec-20 22:40
mveOriginalGriff6-Dec-20 22:40 
GeneralRe: WSO CCC OTD 2020-12-07 Pin
super6-Dec-20 22:22
professionalsuper6-Dec-20 22:22 
GeneralRe: WSO CCC OTD 2020-12-07 Pin
musefan6-Dec-20 23:27
musefan6-Dec-20 23:27 
GeneralRe: WSO CCC OTD 2020-12-07 Pin
Greg Utas7-Dec-20 2:06
professionalGreg Utas7-Dec-20 2:06 
GeneralI'm having a hard time with articles lately. Pin
honey the codewitch6-Dec-20 13:31
mvahoney the codewitch6-Dec-20 13:31 
GeneralRe: I'm having a hard time with articles lately. Pin
Mircea Neacsu6-Dec-20 14:50
Mircea Neacsu6-Dec-20 14:50 
GeneralRe: I'm having a hard time with articles lately. Pin
honey the codewitch6-Dec-20 14:51
mvahoney the codewitch6-Dec-20 14:51 
GeneralRe: I'm having a hard time with articles lately. Pin
Gerry Schmitz6-Dec-20 21:10
mveGerry Schmitz6-Dec-20 21:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   448 votes