aax2mp3_py icon indicating copy to clipboard operation
aax2mp3_py copied to clipboard

Python script to convert AAX files to MP3

AAX2MP3_py

This is a rough rewrite of KrumpetPirate AAXtoMP3 but in python. As with AAXtoMP3 you will need to use a tool like audible-activator to get the authcode needed to decrypt the audio.

An advantage this script has over the original is that it uses mp3splt to split the decrypted audio into chapter files which is much faster than using ffmpeg. A disadvantage this script has compared to the original is that it only supports MP3 output (for now)

Usage

usage: aax2mp3 [-h] [-a AUTH] [-f {mp3}] [-o OUTDIR] [-p PROCESSES] [-c] [-i]
               [-m] [-s] [-t] [-v] input [input ...]

positional arguments:
  input

optional arguments:
  -h, --help            show this help message and exit
  -a AUTH, --authcode AUTH
                        Authorization Bytes
  -f {mp3}, --format {mp3}
                        output format. Default: mp3
  -o OUTDIR, --outputdir OUTDIR
                        output directory. Default: Audiobooks
  -p PROCESSES, --processes PROCESSES
                        number of parallel transcoder processes to run.
                        Default: 1
  -c, --clobber         overwrite existing files
  -i, --coverimage      only extract cover image
  -m, --mono            downmix to mono
  -s, --single          don't split into chapters
  -t, --test            test input file(s)
  -v, --verbose         extra verbose output

To Do

  • support more audio formats
  • fix metadata (id3) generation