Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: spectral analysis question (Read 3014 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Re: spectral analysis question

Reply #1
The ONLY way to know which one sounds better is by listening.   ;)   You can have a "pretty" spectrum that doesn't sound pretty.

It's  probably easier to make a compression algorithm that makes good looking spectrums than it is to make one that makes good sound.

If you are hear something particular in the sound sometimes the spectrum can help to diagnose the issue.

Quote
because of the blue above the 16 khz?
If you're hearing a loss of high frequencies that might explain it.   But usually when we hear compression artifacts we hear something else.     We don't usually hear any loss above 16kHz because even if you can hear above 16kHz the highest frequencies are weak and masked (drowned-out) by lower frequencies that you can hear.

Re: spectral analysis question

Reply #2
They are both low pass filtered at 16 kHz so looking at the spectrum here is especially uninformative.  It just tells you that similar settings were used with both encoders.

Re: spectral analysis question

Reply #3
Youtube transcodes to  faac 128. I'd pick the mp3

 

Re: spectral analysis question

Reply #4
@airtas I don't know if this is the youtube link used, but I went out on a limb and used it.

The aac (m4a) spectral looks very similar, so hopefully it's the same as you grabbed.

I then grabbed the Opus (webm) file and from a spectral perspective it looks better than the aac and mp3.

So, based just on spectrals, then the Opus is the one to go for. If you can't play it then convert to wav or flac.

Re: spectral analysis question

Reply #5
They are both low pass filtered at 16 kHz so looking at the spectrum here is especially uninformative.  It just tells you that similar settings were used with both encoders.
  wouldn't the file with blue above the 16khz be better though?

Re: spectral analysis question

Reply #6
They are both low pass filtered at 16 kHz so looking at the spectrum here is especially uninformative.  It just tells you that similar settings were used with both encoders.
  wouldn't the file with blue above the 16khz be better though?

I would not assume that without knowing more about the files.  Especially at low bitrates and/or with older formats (e.g. MP3) the opposite may be true.

Re: spectral analysis question

Reply #7
Quote
wouldn't the file with blue above the 16khz be better though?
It's not that simple.      The spectrum shows ONE ASPECT of the sound.    Sometimes it's a hint or sometimes if you hear something wrong you can confirm it with the spectrum.  But for example, harmonic distortion is added higher-frequency harmonics so a badly-distorted track can show "nice" high frequency content! 

With lossy compression the algorithm HAS to throw-away SOMETHING.    MP3 analyzes the audio and tries to figure-out which sounds are masked (drowned-out) by other sounds then it tries to throw-away sounds you can't hear anyway.   In general it does a very good job and with high quality settings the MP3 can often sound identical to the uncompressed original, in a proper blind listening test. 

If it sounds like the original or not depends on program material and the listener's ability to hear compression artifacts.   Usually, if you do hear a difference (compared to the uncompressed original) it's not the loss of high frequencies you hear.

It turns out that even if you can hear sounds up to 20kHz in a hearing test, your ears aren't as-sensitive at these frequencies, plus higher frequencies in music are usually "weak" and they are masked by other sounds so you (usually) can't hear a difference if these high frequencies are filtered-out.

There are MP3 options for filtering as sort-of a shortcut so the encoder doesn't have to analyze the highest-frequency masking and often you get better results by just throwing away the high frequencies and using the "limited bits" for other stuff you are more-likely to hear.