Bitrate settings for M4A (AAC) Export

Feedback and Reviews for Audacity 2.x
Forum rules
This board is ONLY for general feedback and discussion about Audacity 2.X.

If you require help, or think you have found a "bug", please post on the forum board relevant to your operating system.
Windows
Mac OS X
GNU/Linux and Unix-like
Post Reply
lucid79
Posts: 2
Joined: Sun Jul 07, 2013 10:36 pm
Operating System: Please select

Bitrate settings for M4A (AAC) Export

Post by lucid79 » Sun Jul 07, 2013 11:21 pm

Hi, would it be possible to have bitrate settings in the AAC export options? The quality slider is quite useless as I don't have a clue what the actual bitrate the file will be. I'm always shooting in the dark and hoping for the best when exporting to AAC. Bitrate settings exist for MP3 export but I don't understand why they don't for M4A.

Thanks!

kozikowski
Forum Staff
Posts: 69374
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: Bitrate settings for M4A (AAC) Export

Post by kozikowski » Mon Jul 08, 2013 1:47 am

Someone will correct me, but I don't think M4A has a fixed bitrate. One of the advances over MP3 was intelligent, recursive compression making it a complete crap shoot what the bitrate was going to be at the end. It depends a great deal on what the source material is.

Koz

steve
Site Admin
Posts: 81627
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Bitrate settings for M4A (AAC) Export

Post by steve » Mon Jul 08, 2013 11:19 am

AAC encoding for Audacity exporting is provided by the optional FFMpeg library. The exact bit-rate and other encoder options are determined by FFMpeg (which may vary between FFMpeg versions). For more control over AAC encoding options you could try converting with QuickTime or iTunes.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

waxcylinder
Forum Staff
Posts: 14685
Joined: Tue Jul 31, 2007 11:03 am
Operating System: Windows 10

Re: Bitrate settings for M4A (AAC) Export

Post by waxcylinder » Mon Jul 08, 2013 12:10 pm

Personally I find it easier to export WAV files and then use iTunes to convert these to AAC for me - in iTunes there is a relatively straightforward dialog to control the settings:
itunes aac encoder dialog.png
itunes aac encoder dialog.png (10.14 KiB) Viewed 17165 times
I think it's actually quicker to make the AAC in iTunes than it is in Audacity - plus I then get the WAV files for archive backup.

Have a look at this workflow I wrote for the manual: http://manual.audacityteam.org/o/man/sa ... tunes.html

WC
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * FAQ * * * * * Tutorials * * * * * Audacity Manual * * * * *

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Bitrate settings for M4A (AAC) Export

Post by Gale Andrews » Mon Jul 08, 2013 6:25 pm

AAC is almost never implemented as a constant bit rate (and it isn't constant bit rate in iTunes). I wrote a couple of responses in the past about this which may be useful:

http://forum.audacityteam.org/viewtopic ... 260#p53260

http://forum.audacityteam.org/viewtopic ... 23#p165223 .

Basically the maximum Audacity quality of 500 will be "not too dissimilar" to the maximum iTunes bit rate.

I can add a vote for lucid79 that the Audacity AAC encoder should be expressed in target bit rates, but since FFmpeg exposes a quality control and not bit rate targets, it would need a lot of thought and possibly be misleading.

It would not be directly comparable to the iTunes bit rates or indeed to other AAC encoders because slightly different algorithms seem to be used from one encoder to another.

All these encoders though have the same idea, that the bit rate is increased as the music becomes more complex to encode, and decreased as it becomes simpler, in order to keep the same level of quality within the bit rate or quality target chosen.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

kozikowski
Forum Staff
Posts: 69374
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: Bitrate settings for M4A (AAC) Export

Post by kozikowski » Mon Jul 08, 2013 6:34 pm

Which leads to production decisions in both audio and video: "We should not use that particular content because it won't compress well."
Koz

sinrise
Posts: 2
Joined: Thu Jan 30, 2014 9:46 pm
Operating System: Please select

Re: Bitrate settings for M4A (AAC) Export

Post by sinrise » Thu Jan 30, 2014 9:52 pm

I've been experimenting with it and I found a quality setting of 200 gets you close to the 224 standard found in iTunes AAC files. Since it's variable, it won't be exactly the same for each file, if you're looking at the file properties in Explorer or Finder. Anyway, it should get you upwards of 200, which is a good target for file size/quality to avoid diminishing returns.

Post Reply