Audacity Bug Summary
••• Introduction •••
••• Keywords •••
    Audacity 3.0.3 development began 19th April 2021

Audacity Bugzilla



Bug 2449 - Mac: Attempting to export as M4A(AAC) yields an FFmpeg error message
Mac: Attempting to export as M4A(AAC) yields an FFmpeg error message
Status: RESOLVED FIXED
Product: Audacity
Classification: Unclassified
Component: Application Core
2.4.1
Mac macOS
: P1 Repeatable
Assigned To: Default Assignee for New Bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-05-25 06:17 UTC by Peter Sampson
Modified: 2020-06-03 04:52 UTC (History)
7 users (show)

See Also:
Steps To Reproduce:
1) get some audio 2) File > Export > Export Audio 3) choose M4A (AAC) 4) press Save 5) Observe error message and no export
Release Note:
First Git SHA:
Group: ---
Workaround:
Closed: 2020-06-03 00:00:00
petersampsonaudacity: Quickfix‑Requested+
petersampsonaudacity: Regression+
petersampsonaudacity: Test‑OK‑Win+
petersampsonaudacity: Test‑OK‑Mac+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Sampson 2020-05-25 06:17:37 UTC
Attempting to export as M4A(AAC) on a Mac yields an FFmpeg error message

>FFmpeg error
>Can't open audio codec "aac" (0x15002)
>Experimental feature.

This is a regression on 2.3.3 and affects 2.4.2 alpha as well as 2.4.1

It is a serious regression as AAC is a native format for Mac computers.


This does not affect Windows
Comment 1 Leland Lucius 2020-05-25 14:09:59 UTC
We did this on purpos...reference:

https://bugzilla.audacityteam.org/show_bug.cgi?id=2378#c30

See comment 20 for a resolution:

https://bugzilla.audacityteam.org/show_bug.cgi?id=2378#c20

   So, the gist is that this IS a problem, but one that is "solvable" in two ways:

   1) On Windows and Mac, don't use the "aac" codec, use "libvo_aacenc" instead.
   2) Upgrade to a newer version of FFmpeg on Windows and Mac.
Comment 2 Peter Sampson 2020-05-26 04:33:21 UTC
(In reply to Leland Lucius from comment #1)
>the gist is that this IS a problem, but one that is "solvable" in two ways:
>   1) On Windows and Mac, don't use the "aac" codec, use "libvo_aacenc" instead.
>   2) Upgrade to a newer version of FFmpeg on Windows and Mac.

what is your advice here Leland?

I am somewhat loath to opt for option 2 as there will mean that 2.4.2 upgraders on those platforms will need to reload the newer FFmpeg

Plus Buanzo would have to host the newer FFmpeg AND the existing one (at least for a while - for those users who have not upgraded to 2.4.2)



This would be a much easier call if we could bundle FFmpeg with Audacity - at least for the FFmpeg formats we have in Export Audio:  M4a(AAC), AC3 and WMA
Comment 3 Leland Lucius 2020-05-31 13:57:01 UTC
(In reply to Peter Sampson from comment #2)
> (In reply to Leland Lucius from comment #1)
> >the gist is that this IS a problem, but one that is "solvable" in two ways:
> >   1) On Windows and Mac, don't use the "aac" codec, use "libvo_aacenc" instead.
> >   2) Upgrade to a newer version of FFmpeg on Windows and Mac.
> 
> what is your advice here Leland?
> 
> I am somewhat loath to opt for option 2 as there will mean that 2.4.2
> upgraders on those platforms will need to reload the newer FFmpeg
> 
> Plus Buanzo would have to host the newer FFmpeg AND the existing one (at
> least for a while - for those users who have not upgraded to 2.4.2)
> 
I could rebuild FFmpeg using the exact same version, but with the missing bits.  But, that would make it even more confusing.  :-(

I think the only option at this point is to allow experimental codecs.  This means that the silenced export we encountered in:

https://bugzilla.audacityteam.org/show_bug.cgi?id=2378

Will again be possible.
Comment 4 Leland Lucius 2020-06-02 11:29:24 UTC
Experimental codecs reinstated in:

https://github.com/audacity/audacity/commit/722da17
https://github.com/audacity/audacity/actions/runs/122701554

This is really the only solution available to us until we can create a new FFmpeg package or adjust our support to accommodate "official" packages.
Comment 5 Leland Lucius 2020-06-02 11:30:43 UTC
This really only needs testing on Mac and it just puts a flag back to the way it was before:

https://bugzilla.audacityteam.org/show_bug.cgi?id=2378
Comment 6 Peter Sampson 2020-06-03 04:52:14 UTC
Testing on macOS 10.15.5 with Audacity 2.4.2 8e6c5c0

There is no error message and the file is exported.

--------------------------------

I do note that, like we used to have with MP3 export, there is a small amount of silence padding at the beginning of the exported AAC file