The time has come, I've decided to minimize the effort involved in Audible conversion. Since I've wanted to learn Pathon for a long time, I decided to implement it with Python.
I want to describe here how to convert Audible format to MP3 and how I implemented it.
First of all: I am not going to describe a way to free audio books from DRM restrictions, just how to convert Audible content you have bought yourself into MP3 format for use on devices that do not support the AAX format.
Since July 2015, the freely available utility ffmpeg supports AAX decoding. The matching parameter is „-activation_bytes xxxxxxxx“. This works fine once you get the value for xxxxxxxx, but more on that later. Using ffmpeg is a science in itself though .
I'm lazy, so I wanted to come up with the most elegant way to do everything with a double click. Audible files can work with a wide variety of programs, so I had to make the right choice here. You can choose from:
You can find exactly how to get the activation bytes here as a step-by-step guide
After successfully converting a complete audiobook into a single MP3 with „ffmpeg -activation_bytes 7db19102 -i <hoerbuch.aax> <hoerbuch.mp3>“, a few points went through my mind and I found the following answers:
Now get to work and solve the task with a programming language that I only know rudimentarily. Three days later, after heavy use of a search engine, after analyzing existing code (see https://stackoverflow.com/questions/30305953/is-there-an-elegant-way-to-split-a-file-by -chapter-using-ffmpeg), a lot of detail work and optimization of the ffmpeg options was done. I now have 2 Python scripts and can automatically convert the audiobooks downloaded from the Audible app to MP3 format. I'm making this freely available to everyone, but please let me know about any improvements, bug fixes, etc. You can find the email address in the imprint my website.
download directory at GitLab