2
$\begingroup$

Recently, I found I had this song duplicated in my music library, but when listening to them I noticed one version was of noticeably higher quality than the other despite both claiming to have a 320kbps bitrate.

I plotted the spectrograms of some random 5 seconds of each version using python. This is the spectrogram of both channels of the "high quality" MP3:

High quality spectrogram of both channels

and this is the "low quality" spectrogram:

Low quality spectrogram of both channels

And the differences I notice are:

  1. The overall intensity of the low quality version is a lot lower than the high quality file. This difference is more evident as the frequency goes higher.
  2. The low quality song has this weird choppiness above 16 kHz (which I think is the most interesting feature) while the high quality spectrogram seems to be more uniform.

In the power spectrums, I confirmed point number 1 and that the files indeed have a 20 kHz cutoff frequency matching a 320 kbps MP3.

This is the high quality power spectrum: High quality power spectrum

And this is the low quality power spectrum: enter image description here

I have been reading about MP3s and first I suspected that the low quality file might be an upscale of a 192kbps (because the spectrum stops being uniform above 16kHz which matches the cutoff frequency of a 192kbps mp3), but I compared my plots to actual 192kbps spectrums and they definitely don't have any information above the 16kHz, so I don't think this is the case.

I also read that this choppiness might be due to the encoding algorithm used, but then that doesn't explain why the power of the whole song is so low (which is easy to notice when you listen to both versions).

Has anyone with more experience with MP3s give me a hint on what may be going on here? I mean, what could cause these differences in both files or any other hints I am missing from the spectrums.

In the end, my goal is to quantify these possible differences to be able to programmatically detect which songs in my library are of "low quality" despite showing a 320 kbps bitrate, so any ideas are also welcomed.

$\endgroup$

2 Answers 2

1
$\begingroup$

From the power spectrums you have plotted, it seems like there are a lot more deviations with the data. Perhaps when the song was recorded or encoded, the sampling rate (number of samples in each second) was less than the original one.

$\endgroup$
0
$\begingroup$

Unfortunately that boils down to who it encoded it, what encoder was used, what were the encoder settings (and there a lots of them), where did the original file came from and what pre-processing happened.

MP3 doesn't specify the encoding algorithm and there many encoders with varying quality out there. Some of those are freeware (like http://lame.sourceforge.net/) They are used a lot by hobbyist (since they are free) but wouldn't have been used in a professional setting and that can account for significant quality differences. These days, no profressional would use MP3 anyway (unless Amazon forces them to), since there are much better options available (AAC, Opus, OGG, etc.)

It may be best to check the original source. If it's from a reputable retailer like Amazon, it's probably ok. If it's from a random internet site, you probably got what you paid for.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.