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: AAC quality vs MP3 (Read 12465 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

AAC quality vs MP3

I'm currently using dbPowerAmp to convert my CDs to MP4.  My library used to contain all 256kbps CBR MP3s.  I'm encoding with -extreme VBR and when playing in WinAmp I get bitrates ranging from 192-256.  I was wondering, will an MP4 sound better than an MP3 at the same bitrate?  With my limited experience I would say yes, just wondering if there was an approximate scale... like 192 MP4 ~= 256 MP3.

AAC quality vs MP3

Reply #1
AAC was indeed made to be of higher quality than MP3.

However, don't forget that these formats were designed (and advertised !) from the beginning for ~96..160 kbps. When you go higher in bitrate, at some point the maturity (or tuning, cleverness) of the encoder become more important than the format itself.

In other words:  at a given bitrate, with AAC you may get a "technically" better (ie: more accurate) sound, but there may be more spots where the encoder fails (ie: produces an artifact in the output file).  LAME will have a bit less trouble cases.

Typically, at high bitrates, short and precise artifacts can be easier to spot than an overall less accurate signal (MP3).

Don't panic though: 160+ kbps AAC will sound very good 
If you want to spare bits, yet have low pre-echo, it will be a better choice.

AAC quality vs MP3

Reply #2
Quote
In other words:  at a given bitrate, with AAC you may get a "technically" better (ie: more accurate) sound, but there may be more spots where the encoder fails (ie: produces an artifact in the output file).  LAME will have a bit less trouble cases.

I don't quite understand what you are trying to say. AAC has all what is needed to be superior to mp3 in every case. It just depends on encoder tweaking really...
If you are talking specifically about Psytel encoder (which dbPoweramp uses iirc), that is a different thing, but in that case be more specific...
Juha Laaksonheimo

AAC quality vs MP3

Reply #3
My impressions from encoding QuickTime AAC is that 192kbps AAC is good enough for almost anything, and for the really good songs 224kbps is transperant. I'd compare 192kbps AAC to 256kbps MP3 and 224 to 320. The main reason I'm using AAC, though, is that it encodes much faster, so I'd rather throw too many bits at it than too few

I don't have any data to back this; I'm a mac user so I can't ABX (and I'm too lazy to do it without software)  Some guy - who seemed to know what he was talking about - made a comparison between iTunes AAC and iTunes MP3, but I can't seem to find it...

AAC quality vs MP3

Reply #4
Quote
[...] and for the really good songs 224kbps is transparent.

Good songs don't necessarily need more kbps to be transparent than bad ones.    Take classical music for example. It is consistently easy on bitrate and is generally infinitely better than some of the pop crap out there. Hmm... ok, let's avoid about musical preferences.

EDIT: OK, I've just realized what you really meant by that. Nevermind what I just said. 

AAC quality vs MP3

Reply #5
As you probably guessed, what I meant was that I only notice minor artifacts on the songs I really like. You listen much more carefully to the good stuff (hopefully)

Actually, I'd disagree that classical music is easy to compress. There can be so many high frequency tones and fine nuances in them that even LAME alt-preset standard doesn't cut it.

AAC quality vs MP3

Reply #6
Quote
I don't have any data to back this; I'm a mac user so I can't ABX (and I'm too lazy to do it without software)

There's a mac version of ABX that you can run through the classic environment. Get it here.

http://www.pcabx.com/program/

AAC quality vs MP3

Reply #7
Quote
Actually, I'd disagree that classical music is easy to compress. There can be so many high frequency tones and fine nuances in them that even LAME alt-preset standard doesn't cut it.

Well, usually I don't take the time to compare the encoded versions to the originals, but I have never found anything wrong with APS-encoded classical music, at least in the environment where I use MP3 (portable, mostly). Besides, I am not very sensitive to artifacts, anyway. 
What I am actually referring to is that bitrate tends to be consistently lower with classical music than with most other types of music (except for harpsichord music, of course). Whether it should be otherwise or not, I can't say, but it tends to be enough for me.

AAC quality vs MP3

Reply #8
what about Nero (6.0.0.11) MP4 (AAC) VBR versus MP3 (lame 3.90.3) ? for example, --alt-preset standard versus Nero's Normal::High preset?

I've been thinking about ditching mp3 totally, and go with mp4 instead.. but im unsure about the real quality.
myspace.com/borgei - last.fm/user/borgei

AAC quality vs MP3

Reply #9
Quote from: dologan,Aug 23 2003, 09:07 PM
Quote from: danchr,Aug 23 2003, 01:38 PM
What I am actually referring to is that bitrate tends to be consistently lower with classical music than with most other types of music (except for harpsichord music, of course).

I partially disagree : lame VBR is very cool with classical, and unfortunately with harpsichord too. Vorbis and musepack have the opposite behaviour. Nero AAC encoder is similar too lame --aps : average bitrate is lower than what we can expect, and see with other kind of music, and there are problems (clear and very annoying for me). Ivan worked on the problem, but artifacts remains.

AAC quality vs MP3

Reply #10
Quote
Quote
In other words:  at a given bitrate, with AAC you may get a "technically" better (ie: more accurate) sound, but there may be more spots where the encoder fails (ie: produces an artifact in the output file).  LAME will have a bit less trouble cases.

I don't quite understand what you are trying to say. AAC has all what is needed to be superior to mp3 in every case. It just depends on encoder tweaking really...
If you are talking specifically about Psytel encoder (which dbPoweramp uses iirc), that is a different thing, but in that case be more specific...

Sorry for answering late.

What I meant was quite hard to state - so I'll try to re-express it:

With the superior format (AAC) comes higher overall quality (at equal bitrates), but there are risks associated to brand-new codecs (ie: slight psymodel "failures" from time to time).

Then I said, on some samples, a very consistent, albeit lower quality sound (LAME MP3) may be preferrable to a better sound which has more dropouts or glitches.

There is a simple testing case, which is not psymodel-related but still relevant:

At about ~80kbps, compare a Vorbis file to a crystal clear Musepack file.

As a whole Musepack could be better, but it raises a problem:  many attacks sound (to me) like broken ice ("piou-piou"). In other words, even if the sound (as a whole) is more accurate, the artifacts kill the picture. Therefore the less accurate (but more consistent) file is (for me) a better choice.

I hope this doesn't sound ridiculous 

AAC quality vs MP3

Reply #11
Heh.    I guess you're right. I was kinda mixing up my experience with MP3 and other formats. I had a look at some harpsichord tracks encoded with Lame and indeed they have a lower than average bitrate, the same as most classical. Musepack OTOH has an average bitrate with classical similar to other types of music, with harpsichord boosting it ~20 kpbs more. I don't have harpsichord music encoded with Vorbis at the moment, but it seems to have the same behaviour as Lame with classical music, that is, lower than average bitrate. I don't have any experience encoding classical with AAC yet, so I can't say anything about it.

~Dologan

AAC quality vs MP3

Reply #12
Quote
(...) Musepack OTOH has an average bitrate with classical similar to other types of music, with harpsichord boosting it ~20 kpbs more. I don't have harpsichord music encoded with Vorbis at the moment, but it seems to have the same behaviour as Lame with classical music, that is, lower than average. (...)

I think it is the price to pay for next-to-none pre-echo.  Harpsichord notes start very abruptly, look at them in a spectrogram (or simply at the waveform) 

AAC quality vs MP3

Reply #13
Quote
I think it is the price to pay for next-to-none pre-echo.  Harpsichord notes start very abruptly, look at them in a spectrogram (or simply at the waveform) 

Not true. Meditative harpsichord music, with few notes per minutes, need much more bitrate than presto, fast music, with more notes, and therefore more attacks. Mpc is very sensitive to tonal music : for exemple, a single violon is ~200 kbps with --standard profile, without any attack - compare it with  any kind of metal music, rich in percussions (~175 kbps). Musepack abnormal behaviour with this instrument can't be explain with attacks only.
Attacks is maybe lowering the average bitrate. Just try to find a rack with a tonal instrument (wind, string), playing alone for a moment, and then in duo with another instrument (percussion). The fisrt part (tonal, no attacks) is much heavier than the second (tonal with attacks).


Can't explain why, I'm not an expert (something to do with perceptual masking ?).

AAC quality vs MP3

Reply #14
Quote
Not true. Meditative harpsichord music, with few notes per minutes, need much more bitrate than presto, fast music, with more notes, and therefore more attacks. Mpc is very sensitive to tonal music : for exemple, a single violon is ~200 kbps with --standard profile, without any attack - compare it with  any kind of metal music, rich in percussions (~175 kbps). Musepack abnormal behaviour with this instrument can't be explain with attacks only.
Attacks is maybe lowering the average bitrate. Just try to find a rack with a tonal instrument (wind, string), playing alone for a moment, and then in duo with another instrument (percussion). The fisrt part (tonal, no attacks) is much heavier than the second (tonal with attacks).


Can't explain why, I'm not an expert (something to do with perceptual masking ?).

Oh. Okay, I stand corrected about meditative music vs presto.  What we could do, though, is to cut/paste identical attacks to create artificial songs with various tempos, but known properties. With identical attacks, the cause for bitrate variations would be easier to find.

One could also playback take a midi file on a high-quality soundcard, and change the bpm.

About the relatively high bitrate on tonal sounds (with low harmonics), don't forget that all other codecs work in the tonal domain (1 coefficient = 1 cosine), while Mpc stays (essentially) in the time domain (1 coefficient = 1 subband sample)..  this should explain their size advantage.

Metal music should offer various masking possibilities, because of so many harmonics. Plus it contains noisy components, for which frequency-domain encoders bring few benefits. Other than that I don't know..

AAC quality vs MP3

Reply #15
Harpsichord poses problems to codecs which use derivation of ISO/Psymodel II with tonality estimation based on prediction of the magnitude and phase of the FFT spectrum.

Problem lies because of the short-term harmonic structure harpsichord trips tonality detector which classifies that sound as more noise like than tonal (in reality - the signal is perceived as tone in human ear), and because noise-like signals have much higher masking power the final result is a undercoded signal. 

Different psymodels do not calculate measure of "tonality" at all, but derive masking power from the temporal uncertanity of the signal envelope, or use non-linear additivity of the individual maskers, or use some kind of peak filter to determine is signal tonal or noise like.

Problem with these other methods is that for some signals they overcode, giving higher bit rate than really needed and therefore making them very hard (but possible) to tune for CBR or low bit rate VBR encodings.


== edit

Pure tonal signals require high bit rate because pure tonal maskers have less masking power than the same amount (in dB) of noise-like maskers (sometimes more than 15 dB!).  So, adding few attacks in the trumpet + violin sections might give lower bit rate because of much higher masking power of the resulting signal.

AAC quality vs MP3

Reply #16
Would it then be possible to make coding pure tones in mpc more efficient? Or is this precisely a limitation of mpc as a subband codec?

AAC quality vs MP3

Reply #17
Quote
Quote
I think it is the price to pay for next-to-none pre-echo.  Harpsichord notes start very abruptly, look at them in a spectrogram (or simply at the waveform) 

Not true. Meditative harpsichord music, with few notes per minutes, need much more bitrate than presto, fast music, with more notes, and therefore more attacks. Mpc is very sensitive to tonal music : for exemple, a single violon is ~200 kbps with --standard profile, without any attack - compare it with  any kind of metal music, rich in percussions (~175 kbps). Musepack abnormal behaviour with this instrument can't be explain with attacks only.
Attacks is maybe lowering the average bitrate. Just try to find a rack with a tonal instrument (wind, string), playing alone for a moment, and then in duo with another instrument (percussion). The fisrt part (tonal, no attacks) is much heavier than the second (tonal with attacks).


Can't explain why, I'm not an expert (something to do with perceptual masking ?).

Ivan has probably explained it properly, but I always (maybe wrongly) thought that is was the "clear voice detection" at work - see original Musepack home page.

This appears to increase the bitrate where the short-term spectrum looks noise-like, but the human perception is tone-like - similar to what Ivan is suggesting I think.

Cheers,
David.

AAC quality vs MP3

Reply #18
Quote
what about Nero (6.0.0.11) MP4 (AAC) VBR versus MP3 (lame 3.90.3) ? for example, --alt-preset standard versus Nero's Normal::High preset?

yes, this is where it becomes interesting

 

AAC quality vs MP3

Reply #19
Quote
Harpsichord poses problems to codecs (...)

Nice explanation ! Thanks a lot for the time spent to write it

AAC quality vs MP3

Reply #20
Quote
The fisrt part (tonal, no attacks) is much heavier than the second (tonal with attacks).


Can't explain why, I'm not an expert (something to do with perceptual masking ?).

I believe it had something to do with Post Masking effect?? I noticed that Psytel AACEnc has a "temporal masking" settings.. I have not implemented any post masking compensation in my psychoacoustice models and I found for both  Model I and Model  II, the penalties on bitrates for switching to SHORT BLOCK during attacks is very severe.. More that 2 times the bitrates of LONG BLOCK..
As a result, the bit reservoir can be rapidly depleted in sample clips that require a lot block switching..


wkwai

AAC quality vs MP3

Reply #21
My own, subjective experience with QuickTime AAC is:

128kbps AAC ~ 160kbps MP3: This is Good Enough™ for Joe User, but an experienced listener will notice artifacts.
160kbps AAC ~ 192kbps MP3: The sound is definitely tolerable, but it's not transparent and would probably fail on numerous problem samples.
192kbps AAC ~ 256kbps MP3: "Virtually transparent" - if such a thing exists. It sounds quite good, but may fail now and then, especially on classical music, IMO.
224kbps AAC ~ 320kbps MP3: This is transparent to me. If it isn't, it's either my mind playing tricks with me, or me being too picky

Given that QuickTime AAC is a CBR codec, you can just throw as many bits at it as you want, and hopefully improve quality. I don't think that ABX makes any sense if you want to determine your preferred quality setting. With ABX testing, you heighten your awareness for artifacts, and that's counterproductive if you want to determine how low a bitrate satisfies you. I haven't seen any data that contradicts this yet

I use 192kbps AAC for normal music, and 224kbps AAC for classical music (or the really good stuff). I used LAME aps and LAME insane before I switched to AAC.

AAC quality vs MP3

Reply #22
Danchr, are you using the iTunes FhG encoder for those numbers or the mentioned Lame?  If the former and you feel like testing it there's the iTunes-LAME plugin for the LAME encoder (though you mentioned --aps/--api). I'm actually using Lame --apfs and QT AAC 160-192 for my iPod (w/Sony V6's). Which sounds better to my ears depends on the trade-offs of "clarity" versus "warmth" for specific music.

BTW, I think QT AAC is technically not CBR (with its variable bit reservoir), though it certainly performs like it (try recording silence).

AAC quality vs MP3

Reply #23
Quote
Danchr, are you using the iTunes FhG encoder for those numbers or the mentioned Lame?

Yes, I used LAME. Those numbers aren't really based on anything but a subjective feeling, though. The main reason for switching was that LAME is horribly slow on a 400MHz G3; ripping 0,6-0,7x speed is unacceptable in the long run. I can't tell the difference between 192kbps AAC and the source, so I'm pretty satisfied with it. 192kbps AAC would probably fail on problem samples, but I haven't noticed anything yet.

Quote
BTW, I think QT AAC is technically not CBR (with its variable bit reservoir), though it certainly performs like it (try recording silence).

I'm pretty certain that MP3 CBR behaves the same way. IIRC they both have a bit reservoir. CBR is maximising it's usage, VBR is minimising and varying the bit rate instead.

Anyway, I found the link to pretty much the only test on this field; it's in this thread.

EDIT: There's a thread about bit reservour in MP3 right here