An open API service indexing awesome lists of open source software.

https://github.com/ckuethe/aax2mp3_py

Python script to convert AAX files to MP3
https://github.com/ckuethe/aax2mp3_py

aax audible-converter audiobook ffmpeg-wrapper mp3 python

Last synced: 8 months ago
JSON representation

Python script to convert AAX files to MP3

Awesome Lists containing this project

README

          

# AAX2MP3_py

This is a rough rewrite of [KrumpetPirate AAXtoMP3](https://github.com/KrumpetPirate/AAXtoMP3) but in python. As with `AAXtoMP3` you will need to use a tool like [audible-activator](https://github.com/inAudible-NG/audible-activator) to get the authcode needed to decrypt the audio.

An advantage this script has over the original is that it uses [mp3splt](https://github.com/search?l=C&q=mp3splt&type=Repositories) 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