How to convert Audible AAX file audiobook M4B on a Mac using Terminal
How to convert Audible AAX files to M4B audiobook.


Open terminal by pressing CMD + Space and then typing "terminal".


Once terminal is open, paste the following command: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" and click enter.


Follow the instructions given (pressing enter, typing password, ect...)


Once Homebrew is installed, paste the following command: brew install ffmpeg and press enter.
Now paste brew install cask and press enter.
Paste brew cask install chromedriver and press enter.
Paste curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py and press enter.
Paste python get-pip.py and press enter.
Paste pip install selenium requests and press enter.
Paste git clone https://github.com/inAudible-NG/audible-activator and press enter.

10b. If you have a one-time password, please use git clone https://github.com/weliveindetail/audible-activator/tree/pause-enter-otp instead.
Paste cd audible-activator and press enter.
Paste sed -i '' 's,chromedriver_path = "./chromedriver",chromedriver_path = "/usr/local/bin/chromedriver",' audible-activator.py and press enter.
Paste python audible-activator.py and press enter.
Now, enter your Audible account username and password.
Enter your one-time password (if you have one) and go to terminal and press enter.
Terminal should print your 8 digit activation key.
Paste ffmpeg -activation_bytes &lt;&lt;&lt;YOUR KEY HERE&gt;&gt;&gt; -i (replacing &lt;&lt;&lt;YOUR KEY HERE&gt;&gt;&gt; with your 8 digit activation key), then drag your Audible AAX file into terminal, paste -c copy ~/Downloads/output.m4b and finally press enter. You can use any path/name instead of "~/Downloads/output.m4b".  The command should look like this:




That's it!

Also, this is not a duplicate... I hope that people can see how it is different than other posts about this topic.