dns
2nd December 2022, 06:58
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
Where:
-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. (https://i.imgur.com/W2I5Wuo.jpg)
https://i.imgur.com/792Pmur.jpg
Here are (https://disk.yandex.ru/d/ILvlWgScxRuoUg) 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
| ...
L---
And here are (https://docs.google.com/spreadsheets/d/1vTu7mG7IlY0otsadateDg400rjYhA_b7ewwDOmQk1g4/edit?usp=sharing) 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.
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
Where:
-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. (https://i.imgur.com/W2I5Wuo.jpg)
https://i.imgur.com/792Pmur.jpg
Here are (https://disk.yandex.ru/d/ILvlWgScxRuoUg) 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
| ...
L---
And here are (https://docs.google.com/spreadsheets/d/1vTu7mG7IlY0otsadateDg400rjYhA_b7ewwDOmQk1g4/edit?usp=sharing) 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.