

The m4a and m4b extensions were originally introduced by Apple. mp4, m4a, and m4b are alternative filename extensions for the MPEG-4 Part 14 container format. To download a book from Audible as aax instead of aa, choose "Enhanced" from the "Audio Quality" dropdown in the view for downloading a book.Īax files are encrypted mp4 / m4a / m4b files so the ffmpeg command above does not re-encode audio and it preserves metadata such as chapters. If you try to use the ffmpeg command above with an aa file instead of an aax file, it results in an error like Option activation_bytes not found. (I edited the command above based on the comments by LiWang and marcus erronius to replace output.m4a mv output.m4 with output.m4b and to replace -vn -c:v copy with -c copy.) If your sed is GNU sed, replace sed -i '' with sed -i.Īfter that run a command like this: ffmpeg -activation_bytes youractivationkey -i input.aax -c copy output.m4b audible-activator.py results in an error like 'chromedriver' executable needs to be in PATH even if chromedriver is on the path or in the audible-activator directory. If you do not run the sed command that changes the value of the chromedriver_path variable. Then enter your Audible username and password and wait for a while for the eight character activation key to be printed. Sed -i '' 's,chromedriver_path = "./chromedriver",chromedriver_path = "/usr/local/bin/chromedriver",' audible-activator.py

First run these commands: brew install chromedriver ffmpeg
