How to convert Audible AAX file audiobook M4B on a Mac using Terminal [duplicate]
Solution 1:
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 and click enter:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
-
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. If you get an error, you can usebrew install chromedriver -cask
. -
Paste
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
and press enter. -
Paste
python get-pip.py
and press enter.
- If you get an error about the version of Python, paste
python3 get-pip.py
instead to force it to use the Python 3 version.
-
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.
- If you had to use 'python3' in the command above in step 8, paste
python3 audible-activator.py
here.
-
Now, enter your Audible account username and password.
-
Enter your one-time password (if you have one) and go to terminal and press enter.
- You may get a pop-up about 'chromedriver' not being a signed application. Click 'Cancel' then go to System preferences > Security > General tab and click the allow button. Then try running the command again.
-
Terminal should print your 8 digit activation key.
-
Paste
ffmpeg -activation_bytes <<<YOUR KEY HERE>>> -i
(replacing<<<YOUR KEY HERE>>>
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.