HydrogenAudio

Lossy Audio Compression => AAC => AAC - Tech => Topic started by: F J Walter on 2007-11-08 05:41:00

Title: FAAC lower quality per bitrate than MP3lame?
Post by: F J Walter on 2007-11-08 05:41:00
I have done some personal testing which is ABX style where I put the control and the compressed version into a playlist, hide the playlist window, then I listen to the first one and the second one, then shuffle and see if I can identify whether the next one is the control or the compressed version.

But I have found some strange results and that is that I am able to consistently identify the AAC at -q 120 and above, whereas I can't reliably identify (ABX) the MP3 LAME encodings at q 6 and below.  Q 6 is actually a much lower bitrate than -q 120 in FAAC!  So if you believe my results, you may conclude that LAME MP3 is more efficient in a perceived quality per bitrate than FAAC, which is AAC-LC!

I am doing the encoding with ffmpeg, using the latest snapshot libraries of libmp3lame and libfaac which I compiled recently.  The reason for using ffmpeg is twofold - first, I can encode such that the only variable is the audio codec; the container format is the same.  Second, because the whole purpose behind me doing this is figuring out a format to use as audio when encoding videos, (some of which are music videos, so I want good quality).

Is it possible that MP3 is just more transparent to me in general?  Or that LAME is a lot more efficient than FAAC?  Or am I not hearing artifacts in MP3 because they are masked due to the nature of the source material, and with other material I might have different experiences?  The source material is an acoustic band, with a male vocalist, doing a slow ballad - quite a good recording I think.

Command lines (typical)
ffmpeg -y -i testsong.wav -ss 9.5 -t 25 -vn -acodec libfaac -aq 120 out.a120.mp4
ffmpeg -y -i testsong.wav -ss 9.5 -t 25 -vn -acodec libmp3lame -aq 6 out.m6.mp4

1st line generates 435KB file, 2nd line generates 361KB file, plus I generated a control file which copies the raw audio.
Title: FAAC lower quality per bitrate than MP3lame?
Post by: F J Walter on 2007-11-08 07:15:26
Hmmm, after looking at some published tests, I see that my results are not so strange after all.

http://www.hydrogenaudio.org/forums/index....showtopic=38792 (http://www.hydrogenaudio.org/forums/index.php?showtopic=38792)
Shows insignificant difference between MP3 LAME and iTunes AAC on most sources

http://www.rjamorim.com/test/multiformat128/results.html (http://www.rjamorim.com/test/multiformat128/results.html)
Shows the same

http://www.rjamorim.com/test/aac128v2/results.html (http://www.rjamorim.com/test/aac128v2/results.html)
Shows that iTunes AAC to be significantly better than FAAC.

Therefore from the above, one could infer that since iTunes AAC performed signicantly better than FAAC, and iTunes AAC did not perform significantly better than MP3 LAME, then MP3 LAME is at least as good as FAAC at a given bitrate and possibly better.

By 'not significantly better' I mean that the mean of iTunes AAC seems to be within the margin of error of MP3 LAME.
Title: FAAC lower quality per bitrate than MP3lame?
Post by: xmixahlx on 2007-11-08 07:33:46
i'm missing the part where this is supposed to be confusing...
Title: FAAC lower quality per bitrate than MP3lame?
Post by: benski on 2007-11-08 14:46:19
FAAC is generally considered to be an inferior AAC encoder.  iTunes AAC is improving but is still not that great.

For state-of-the-art, you should use Nero (for VBR) or Coding Technologies (for CBR).
Title: FAAC lower quality per bitrate than MP3lame?
Post by: kornchild2002 on 2007-11-08 16:40:16
FAAC is generally considered to be an inferior AAC encoder.  iTunes AAC is improving but is still not that great.

For state-of-the-art, you should use Nero (for VBR) or Coding Technologies (for CBR).


Umm...  I thought the iTunes AAC encoder was on the same par as the Nero AAC encoder.  Haven't past tests shown this?  I know guru completed a test not too long ago but it used the February build of Nero (the August one didn't show as good of results) and the older version of the iTunes AAC encoder (not the new one).  Anyway, the February build of the Nero AAC encoder seemed to beat the iTunes AAC encoder but not by much.

My point is that I thought the iTunes AAC encoder was always regarded as being of high quality.  There were even times in the past where it beat Nero AAC (again, not by much).
Title: FAAC lower quality per bitrate than MP3lame?
Post by: guruboolez on 2007-11-08 18:33:43
"iTunes AAC is improving but is still not that great."

 

Small history of listening tests on HA.org:

2003: QuickTime AAC came first (collective listening test)
Title: FAAC lower quality per bitrate than MP3lame?
Post by: F J Walter on 2007-11-09 01:03:02
I believe I had just been misled by information I have read about AAC replacing MP3 as a preferred MPEG audio solution due to its increased quality per bitrate.

In reality it seems that AAC encoders are not nearly as superior to advanced MP3 encoders such as LAME as I thought they were (though I hadn't seen guruboolez's most recent test, thanks for that), and that in some cases such as FAAC (the main open source implementation) they are actually significant inferior.

As I was posting this in the AAC technical forum, I was hoping that someone could give me a likely technical explanation of why LAME MP3 performs better for me in my listening tests than FAAC even when FAAC uses a higher bitrate.  IE I am curious as to why is it so - I don't fully understand the way LAME MP3 achieves such performance out of what some describe as a more simple format than AAC, and why FAAC doesn't try and implement the same sort of thing for AAC, when iTunes, and now Nero, prove that it is definitely possible.
Title: FAAC lower quality per bitrate than MP3lame?
Post by: guruboolez on 2007-11-09 01:16:10
AAC has some tools and a new design which makes it technically superior to MP3. But to be superior in practice, any AAC encoder need strong tunings and development. Kenyans runner are virtually faster than me, but with a lot of training I can still beat several untrained, ISO,  kenyans people

LAME is very mature and actively developed for years. Faac isn't. I guess that porting MP3 tunings to FAAC is a very complex (maybe impossible task) and need much more work than a simple copy-and-paste.
Title: FAAC lower quality per bitrate than MP3lame?
Post by: muaddib on 2007-11-09 08:12:58
One test was missed: http://www.hydrogenaudio.org/forums/index....showtopic=51171 (http://www.hydrogenaudio.org/forums/index.php?showtopic=51171)
This one was public listening test at 80kbps.
Here are the results:

(http://www.audiocoding.com/ha/All.gif)
This one is with all participants

(http://www.audiocoding.com/ha/Experts.gif)
This one is only with 'expert' participants (those that could find at most low anchor were removed).

Nero AAC Encoder doesn't use IS nor PNS because of these test results. So, the left most results are the results that match current Nero LC at 80kbps