How to convert Audible aax files to mp3 in Linux


Streamlined

The below are for the audible site at the UK (notice the -l uk switch):

mperdikeas@mp-t420:~/aax2mp3tools-hp-5/audible-activator-master
$ ./audible-activator.py -l uk
Username: scharamousou@gmail.com
Password: 
[*] Player ID is 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
activation_bytes: 6328eb28
mperdikeas@mp-t420:~/aax2mp3tools-hp-5/audible-activator-master#
$ cd ../AAXtoMP3-master/
mperdikeas@mp-t420:~/aax2mp3tools-hp-5/AAXtoMP3-master#
$ ./AAXtoMP3 --authcode 6328eb28 ../HarryPotterandtheOrderofthePhoenixBook5_ep6.aax 
        

previous messy instructions

I followed the instructions from here which I found in this stackexchange answer.

Every step of that guide worked flawlessly except for a minor snag at the last step. That last incantation should actually read:

./AAXtoMP3 --authcode <authcode> <aax-file>

I.e. you need to explicitly type the --authcode option.

A PDF printout of that page (obtained 2019-01-07) is here.

The work was executed on the T420 machine, directory ~/aax2mp3tools. The history (with the audible authentication code anonymized) is given below:

  apt-get install ffmpeg
  sudo apt-get install ffmpeg
  echo $?
  mkdir aax2mp3tools
  cd aax2mp3tools
  wget https://github.com/inAudible-NG/audible-activator/archive/master.zip
  unzip master.zip
  rm master.zip
  cd audible-activator-master/
  sudo pip install requests
  sudo pip install selenium
  wget https://chromedriver.storage.googleapis.com/2.35/chromedriver_linux64.zip
  unzip chromedriver_linux64.zip
  ./chromedriver
  mv ~/Downloads/HarryPotterandtheHalf-BloodPrinceBook6_ep6.aax .
  ./audible-activator.py -1 us
  ./audible-activator.py -l us
  cd ..
  cd audible-activator-master/
  cd ..
  wget https://github.com/KrumpetPirate/AAXtoMP3/archive/master.zip
  unzip master.zip
  rm master.zip
  cd AAXtoMP3-master/
  mv ../audible-activator-master/HarryPotterandtheHalf-BloodPrinceBook6_ep6.aax ..
  ./AAXtoMP3 XXXXXXXX ../HarryPotterandtheHalf-BloodPrinceBook6_ep6.aax
* ./AAXtoMP3 -h
  ./AAXtoMP3 --authcode XXXXXXXX ../HarryPotterandtheHalf-BloodPrinceBook6_ep6.aax
  ls ../Audiobook/