Problem exporting to AAC… Help!
Forum rules
This forum is for Audacity on Windows.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".
Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".
Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
-
poetofpiano
- Posts: 8
- Joined: Thu Jan 08, 2015 4:44 am
- Operating System: Please select
Problem exporting to AAC… Help!
I am trying to achieve the highest possible quality in the content that I export from Audacity while still using a lossy codec. Following the instructions found at http://manual.audacityteam.org/index.ph ... rt_Options, I have been encoding to MP3 using a variable bit rate value of zero at fast encoding speed, and I have been using joint stereo as opposed to stereo. But then I realized that since the consensus seems to be that AAC is better quality than MP3, why am I not exporting to AAC? So I uninstalled Audacity 2.0.3 from my computer and installed Audacity 2.0.6, and I downloaded and installed ffmpeg 2.2.2 as instructed by http://manual.audacityteam.org/o/man/fa ... tml#ffdown, and now I can indeed import AAC files and export to AAC. As instructed by http://manual.audacityteam.org/index.ph ... rt_Options, I have been exporting AAC files with a quality setting of 500 (best possible quality).
My problem comes from the fact that my AAC-file exports are absolute garbage in comparison to the MP3 export settings that I was using before. There are all kinds of scratching and artifacts that are not detectable in an MP3 export of the same file. Did I do something wrong, or is this a known issue with Audacity? Is Audacity not the best software to use to write good AAC files. I have used GarageBand for years, always exporting to 256 kbps, and I’ve never had such a quality problem with AAC files. Also I noticed that the resulting AAC file only exported to 195 kbps despite being set to 500 quality when exporting. If this is all Audacity is capable of, that would be kind of disappointing. Any help would be much appreciated!
My problem comes from the fact that my AAC-file exports are absolute garbage in comparison to the MP3 export settings that I was using before. There are all kinds of scratching and artifacts that are not detectable in an MP3 export of the same file. Did I do something wrong, or is this a known issue with Audacity? Is Audacity not the best software to use to write good AAC files. I have used GarageBand for years, always exporting to 256 kbps, and I’ve never had such a quality problem with AAC files. Also I noticed that the resulting AAC file only exported to 195 kbps despite being set to 500 quality when exporting. If this is all Audacity is capable of, that would be kind of disappointing. Any help would be much appreciated!
-
kozikowski
- Forum Staff
- Posts: 69384
- Joined: Thu Aug 02, 2007 5:57 pm
- Operating System: macOS 10.13 High Sierra
Re: Problem exporting to AAC… Help!
I believe this is a known problem. AAC/M4A exports do not have a complete range of quality options. Someone will correct me.
Koz
Koz
-
waxcylinder
- Forum Staff
- Posts: 14687
- Joined: Tue Jul 31, 2007 11:03 am
- Operating System: Windows 10
Re: Problem exporting to AAC… Help!
And since you are using AAC, I assume you are using iTunes (and probably an iPod) - if so why not export WAV files from Audacity and use iTunes to make the AAC conversion? That's what I do.
WC
WC
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * FAQ * * * * * Tutorials * * * * * Audacity Manual * * * * *
* * * * * FAQ * * * * * Tutorials * * * * * Audacity Manual * * * * *
-
waxcylinder
- Forum Staff
- Posts: 14687
- Joined: Tue Jul 31, 2007 11:03 am
- Operating System: Windows 10
Re: Problem exporting to AAC… Help!
See this page in the Manual: http://manual.audacityteam.org/o/man/tu ... conversion
And this one may help too: http://manual.audacityteam.org/o/man/sa ... tunes.html
WC
And this one may help too: http://manual.audacityteam.org/o/man/sa ... tunes.html
WC
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * FAQ * * * * * Tutorials * * * * * Audacity Manual * * * * *
* * * * * FAQ * * * * * Tutorials * * * * * Audacity Manual * * * * *
-
Gale Andrews
- Quality Assurance
- Posts: 41761
- Joined: Fri Jul 27, 2007 12:02 am
- Operating System: Windows 10
Re: Problem exporting to AAC… Help!
Yes, as per the release notes: http://wiki.audacityteam.org/wiki/Relea ... 8FFmpeg.29:kozikowski wrote:I believe this is a known problem. AAC/M4A exports do not have a complete range of quality options.
I think the reason the slider does not work is simply that it's designed for the libfaac encoder that the previous recommended FFmpeg used. Libvo-aac specifies a constant bit rate, not target quality, and is maximum 2 channels output.M4A (AAC) exports: The Quality Slider in "Specify AAC Options" has no effect if the FFmpeg library is built with the libvo-aac encoder, as are recommended builds of FFmpeg for Windows and Mac OS X. Workaround: Given the alternative AAC encoders for FFmpeg have other problems as described in these notes, you can instead export as WAV and convert to AAC in iTunes on Windows and Mac.
You can however specify the constant bit rate if you choose "Custom FFmpeg Export" instead of "M4A (AAC) Files (FFmpeg)". Click the Options... button, choose "mp4" in the formats list and "libvo_aacenc" in the codecs list, then set bit rate in bits per second. Up to 320 kbps is supported. For example, to export at 256 kbps, enter "256000" (without quotes). This does work - I've now tested it.
I'll update the release notes for 2.1.0. I see the above facts about libvo_aacenc make the Audacity Manual incorrect so I had better deal with that for next release.
Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual
Re: Problem exporting to AAC… Help!
That seems to be true and AAC was intended to be an improvement over MP3. But, at higher bitrates there will usually be no difference. Most of these lossy encoders (MP3, AAC, OGG, AC3, etc.) can be transparent with most music. That is, all of these formats can often sound identical to the uncompressed original in a proper blind ABX test.But then I realized that since the consensus seems to be that AAC is better quality than MP3...
This depends on the program material (some music is "easier" to compress than other music) and the ability of the listener to hear compression artifacts. It turns-out that the playback equipment isn't that important... If you can hear a compression artifact on a high-end system, you can hear it on everyday headphones.
We can't say that 320kbps MP3 is "better" than 240kbs MP3, or that AAC is "better" if they all sound identical to the uncompressed original!
The differences may be greater at lower bitrates... A 128kbps AAC file may sound better than a 128kbps MP3. Or, a 192kbps AAC may be transparent, whereas a 192kbps MP3 might have audible artifacts. Or, there may be some music where the best MP3 settings leave audible compression artifacts, but the AAC file may be transparent.
-
poetofpiano
- Posts: 8
- Joined: Thu Jan 08, 2015 4:44 am
- Operating System: Please select
Re: Problem exporting to AAC… Help!
Thanks everyone so much for your help! All answers were super helpful. I think I will just use iTunes for conversion from WAV to AAC as recommended, though I will definitely experiment with Custom FFmpeg Export as suggested by Gale Andrews too.
While I have your attention, I had one more question I just encountered. The Sample workflow for exporting to iTunes at http://manual.audacityteam.org/o/man/sa ... tunes.html mentions that you can export to 44.1kHz 16-bit PCM WAV files and then convert to AAC in itunes. Then it mentions that “It is possible to export 32-bit PCM files too, by choosing ‘Other uncompressed files’ in either export dialog, then clicking Options.... These files will theoretically be of marginally higher quality but twice the size of 16-bit files. Latest versions of iTunes will play them, but other players may not.” My question is could you export to 32-bit PCM files and then convert those to AAC in itunes so as to achieve that “marginally higher quality,” or is it not possible (or worth it) to do this?
Also I don’t seem to find an option to mark this forum post as solved, but it definitely has been. I’m assuming the administrator does this.
While I have your attention, I had one more question I just encountered. The Sample workflow for exporting to iTunes at http://manual.audacityteam.org/o/man/sa ... tunes.html mentions that you can export to 44.1kHz 16-bit PCM WAV files and then convert to AAC in itunes. Then it mentions that “It is possible to export 32-bit PCM files too, by choosing ‘Other uncompressed files’ in either export dialog, then clicking Options.... These files will theoretically be of marginally higher quality but twice the size of 16-bit files. Latest versions of iTunes will play them, but other players may not.” My question is could you export to 32-bit PCM files and then convert those to AAC in itunes so as to achieve that “marginally higher quality,” or is it not possible (or worth it) to do this?
Also I don’t seem to find an option to mark this forum post as solved, but it definitely has been. I’m assuming the administrator does this.
-
waxcylinder
- Forum Staff
- Posts: 14687
- Joined: Tue Jul 31, 2007 11:03 am
- Operating System: Windows 10
Re: Problem exporting to AAC… Help!
I don't see why you wouldn't be able to do that - my understanding is that iTunes will convert from any format it supports to any other format it supports. Give it a try and report back.poetofpiano wrote: The Sample workflow for exporting to iTunes at http://manual.audacityteam.org/o/man/sa ... tunes.html mentions that you can export to 44.1kHz 16-bit PCM WAV files and then convert to AAC in itunes. Then it mentions that “It is possible to export 32-bit PCM files too, by choosing ‘Other uncompressed files’ in either export dialog, then clicking Options.... These files will theoretically be of marginally higher quality but twice the size of 16-bit files. Latest versions of iTunes will play them, but other players may not.” My question is could you export to 32-bit PCM files and then convert those to AAC in itunes so as to achieve that “marginally higher quality,” or is it not possible (or worth it) to do this?
I suspect that you would not notice the difference between a 32-bit and a 16-bit WAV conversion to AAC
But once again give it a try - and do some careful listening tests.
Personally I work in Audacity in the default 32-bit floating and to Export 16-bit WAVs with shaped dither (default). I use these for three things
1) Direct use on my Cocktail X30 (a sort of hi-fi mains iPod with a big 2TB disk) connected to my hi-fi rig
2) Load into iTunes and convert to AAC 256 VBR - for use on an iPod Classic 160 gig
3) archive/backup - copies on two separate external 1TB disks
WC
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * FAQ * * * * * Tutorials * * * * * Audacity Manual * * * * *
* * * * * FAQ * * * * * Tutorials * * * * * Audacity Manual * * * * *
-
poetofpiano
- Posts: 8
- Joined: Thu Jan 08, 2015 4:44 am
- Operating System: Please select
Re: Problem exporting to AAC… Help!
I tried exporting to WAV signed 32-bit PCM and converting that to AAC in itunes, and the resulting file was exactly the same size as an AAC file converted in itunes from a 16-bit WAV, and you were right — I don't think I could tell the difference even with good headphones!
All this trouble with AAC encoding in Audacity gives me one more important question: when exporting from Audacity directly to ALAC as instructed by http://manual.audacityteam.org/o/man/tu ... conversion, is there any risk of not producing a lossless output? I have tried this method and I don’t think I could tell the difference from the same file exported to WAV, but maybe I could? Probably not though…
Also one thing I’ve noticed is that when you export directly to ALAC from Audacity, you get a file that is 1411 kbps, while if you convert a WAV file to ALAC in itunes, you get a file that is only 745 kbps, but both ALAC files are still the same exact size. Interesting…
I also tried this, and though the quality was marginally better than just exporting using the standard M4A (AAC) Files (FFmpeg) option, and though itunes did say the resulting file was 319 kbps, the file still wasn’t nearly as good as a WAV converted to AAC with iTunes. So I think I'll stick to converting to AAC in iTunes for now.Gale Andrews wrote:You can however specify the constant bit rate if you choose "Custom FFmpeg Export" instead of "M4A (AAC) Files (FFmpeg)". Click the Options... button, choose "mp4" in the formats list and "libvo_aacenc" in the codecs list, then set bit rate in bits per second. Up to 320 kbps is supported. For example, to export at 256 kbps, enter "256000" (without quotes). This does work - I've now tested it.
All this trouble with AAC encoding in Audacity gives me one more important question: when exporting from Audacity directly to ALAC as instructed by http://manual.audacityteam.org/o/man/tu ... conversion, is there any risk of not producing a lossless output? I have tried this method and I don’t think I could tell the difference from the same file exported to WAV, but maybe I could? Probably not though…
Also one thing I’ve noticed is that when you export directly to ALAC from Audacity, you get a file that is 1411 kbps, while if you convert a WAV file to ALAC in itunes, you get a file that is only 745 kbps, but both ALAC files are still the same exact size. Interesting…
-
kozikowski
- Forum Staff
- Posts: 69384
- Joined: Thu Aug 02, 2007 5:57 pm
- Operating System: macOS 10.13 High Sierra
Re: Problem exporting to AAC… Help!
Oh, by the way.
AAC supports FairPlay Copy Management and additional file/music information.
MP3's full family name is MPEG1, Layer 3, part of the video format developed in 1992. Your widely accepted, cutting edge audio format is 22 years old.
Koz
AAC supports FairPlay Copy Management and additional file/music information.
MP3's full family name is MPEG1, Layer 3, part of the video format developed in 1992. Your widely accepted, cutting edge audio format is 22 years old.
Koz