Convert an audiobook .aax to .m4b using ffmpeg

brew install chromedriver ffmpeg
sudo easy_install pip
pip install selenium requests
git clone https://github.com/inAudible-NG/audible-activator
cd audible-activator
sed -i '' 's,chromedriver_path = "./chromedriver",chromedriver_path = "/usr/local/bin/chromedriver",' audible-activator.py
./audible-activator.py

When running audible-activator.py It will ask for the audible username/password it will open chrome, and when finish print the activation bytes:

$ ./audible-activator.py
Username: your@email
Password:
[*] Player ID is 1xmjyl5rSw0yVb/olWBYuU/NBxk=
activation_bytes: b97f4709

One having the activation_bytes, use ffmpeg:

ffmpeg -activation_bytes b97f4709 -i input.aax -vn -c:a copy output.m4a;mv output.m4{a,b}

More info: https://apple.stackexchange.com/a/243670/104123