Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.


Go Back   Doom9's Forum > General > Audio encoding

Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 2nd December 2022, 06:58   #1  |  Link
Registered User
Join Date: Jan 2022
Posts: 4
AAC encoding and comparison method. So can you compare?

Hi people.

I decided to compare several audio codecs. I want to know what the community thinks about this method of comparison?
I used:
  • faac-1.30
  • fdkaac-0.6.3 (libfdk-aac_3.4.22p3) ("p" version stands for modified by Poikosoft audio laboratories.)
  • fdkaac-1.0.4
  • ffmpeg-N-109149-g459527108a-20221121
  • qaac-2.76
  • sox-14.4.2
  • ImageMagick-7.1.0-48
I took 15 tracks and encoded with different settings.
  • [faac*.m4a] faac ( -b 128, -b 256, -b 384, -b 512, -q 300, -q 500 )
  • [fdk1*.m4a] fdkaac-0.6.3 ( -b 128k, -b 256k, -b 384k, -b 512k, -q 3, -q 5, -q 8 )
  • [fdk2*.m4a] fdkaac-1.0.4 ( -b 128k, -b 256k, -b 384k, -b 512k, -q 3, -q 5 )
  • [fdk3*.m4a] fdkaac-1.0.4 ( -b 128k, -b 256k, -b 384k, -b 512k, -q 3, -q 5 ) --bandwidth 20000
  • [fhg*.m4a] fhgaacenc ( --cbr 128, --cbr 256, --cbr 384, --cbr 512, --vbr 3, --vbr 6)
  • [qaac*.m4a] qaac ( --cbr 128, --cbr 256,--cbr 320, --tvbr 90, --tvbr 127 )
  • [nero*.m4a] nero ( -cbr 128000, -cbr 256000, -cbr 384000, -cbr 512000, -q 0.5, -q 1 )
  • [ff*.mp4] ffmpeg -c:a aac ( -b:a 128k, -b:a 256k, -b:a 384k, -q:a 3, -q:a 5 )

Spectrograms of all received m4a files.
  • sox INPUT_FILE.wav -n spectrogram -x 1024 -z 120 -w Hann -t -h -o *.m4a.png
Then I compared the spectrogram of each file with the original (changing fuzz several times)
  • magick.exe compare -metric AE -fuzz ( 0%, 1%, 2%, 3% ) SPECTROGRAM.png *.m4a.png CMP_FILE.png
-metric type - measure differences between images with this metric
* AE - absolute error count, number of different pixels (-fuzz affected)
-fuzz distance - colors within this distance are considered equal
For one track I made a collage, for visual comparison (more red - worse). Full resolution here.

Here are all the tracks in m4a, as well as their spectrograms
|	*.png		- original spectrograms
+-- [TRACK NAME\m4a]
|		*.m4a		- recoded tracks
|		...
+-- [TRACK NAME\m4a]
|		*.png		- spectrograms of all .m4a files
|		n-cmp_*.png	- comparative spectrograms
|		...
And here are the comparative tables of all tracks (in cell D1 you can enter the name of the encoder)
It is difficult to draw conclusions, but for myself I drew conclusions
  • that ffmeg isn't that bad
  • that the old fdkaac-0.6.3 is much better than the new fdkaac-1.0.4
  • that ...
Or is it all nonsense and I just wasted my time and yours?

Thanks to all.

Last edited by dns; 2nd December 2022 at 20:19. Reason: Changed the links to the collages. There were infidels.
dns is offline   Reply With Quote

aac, fdkaac, ffmpeg, qaac

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +1. The time now is 00:19.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.