M4A (AAC) export fails with FFmpeg error 0x15002

Help for Audacity on macOS.
Forum rules
ImageThis forum is for Audacity on macOS 10.4 and later.
Please state which version of macOS you are using,
and the exact three-section version number of Audacity from "Audacity 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.
Post Reply
shadyshed
Posts: 1
Joined: Sun May 24, 2020 6:04 am
Operating System: macOS 10.15 Catalina or later

M4A (AAC) export fails with FFmpeg error 0x15002

Post by shadyshed » Sun May 24, 2020 6:37 am

I'm on macOS Catalina 10.15.4, using Audacity 2.4.1.

I installed FFmpeg as per the instructions (64-bit using the pkg). I can export to AC3 and WMA. But when I try to export to M4A (AAC), it gives:

FFmpeg Error
Can't open audio codec "aac" (0x15002)
Experimental feature

I've tried with Project Rate of 44.1 kHz and 48 kHz, with a single mono track and a single stereo track, with different quality settings (though mostly with the default). I have tried uninstalling the app and deleting all settings/libraries - i.e.
* Deleted ~/Library/Application Support/audacity
* Deleted /Library/Application Support/audacity

I then reinstalled Audacity and FFmpeg, but with the same result.

Nothing gets registered in the log file.

The only possible reason I can think of is that I had previous installed audacity using Homebrew. I discovered that isn't possible any more, so uninstalled it (with brew uninstall). I also had ffmpeg 4.2.2 installed independently through Homebrew, and uninstalled that as well. Still no luck.

Incidentally, the log file gives the following for the FFmpeg library version numbers:

16:09:04: AVCodec version 0x373466 - 55.52.102 (built against 0x373466 - 55.52.102)
16:09:04: AVFormat version 0x372164 - 55.33.100 (built against 0x372164 - 55.33.100)
16:09:04: AVUtil version 0x344264 - 52.66.100 (built against 0x344264 - 52.66.100)

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

Re: M4A (AAC) export fails with FFmpeg error 0x15002

Post by steve » Sun May 24, 2020 7:42 pm

According to the manual (https://manual.audacityteam.org/man/faq ... 5003.29.3F)
Error 0x15002 occurs if you export more than a 2-channel M4A file (such as a 5.1 surround sound file), using the "M4A (AAC) Files (FFmpeg)" export choice. To correct the error and export up to 8 channels, choose (external program) and specify a command that tells Audacity to explicitly use the native FFmpeg AAC encoder.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

bwerner
Posts: 1
Joined: Wed May 27, 2020 1:42 pm
Operating System: macOS 10.15 Catalina or later

Re: M4A (AAC) export fails with FFmpeg error 0x15002

Post by bwerner » Wed May 27, 2020 2:01 pm

I too am receiving the same error in 2.4.1 when trying to create the M4A file. My setup and workflow is identical to what I had in 2.3.3: Stereo input from a tape deck and output to bluetooth Logitech headphones. No fancy multi channel mixing which is what the FAQ refers to.

I tried the explicit export as per the FAQ as pointed out in the prior msg, but that failed the same way. I reinstalled both Audacity and the FFmpeg code and received the same error.

Macbook air / Catalina 10.15.4

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

Re: M4A (AAC) export fails with FFmpeg error 0x15002

Post by steve » Wed May 27, 2020 3:31 pm

One of the Audacity developers has been looking into this.
It appears that there has been a problem with the AAC encoder for a long time, but it has been mostly hidden by another bug. That other bug has now been fixed, exposing this bug. This is now logged on the Audacity bug tracker.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

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

Re: M4A (AAC) export fails with FFmpeg error 0x15002

Post by waxcylinder » Wed Jun 03, 2020 8:54 am

You may be glad to know that we have fixed this for the upcoming 2.4.2 - I just did the QA testing of the fix made by Leland Lucius.

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

cchervit
Posts: 1
Joined: Wed Jun 03, 2020 9:35 pm
Operating System: macOS 10.15 Catalina or later

Re: M4A (AAC) export fails with FFmpeg error 0x15002

Post by cchervit » Wed Jun 03, 2020 9:37 pm

Excellent news. Any ETA on 2.4.2 GA?

Post Reply