Converts Audible aax audiobooks to m4a while keeping chapters and the cover image intact. The cover is added as a looped image so it is shown while playing on Plex Media Server
Also available as NodeJS package: https://github.com/r15ch13/audible-converter
> convert-aax-to-m4a.cmd <filename> <device> <debug>
<filename>
: is your aax file. duh!<device>
: is the number of the registry entry inHKLM\SOFTWARE\WOW6432Node\Audible\SWGIDMAP
.<debug>
: adddebug
as 3rd parameter to get moreffmpeg
output
Example:
> convert-aax-to-m4a.cmd AgenttotheStars_ep6_A1SZN9UBXNTEA2.aax
Using Device 0 (Activation Bytes: 74FF0506)
Reading audiobook information ...
John Scalzi - Agent to the Stars (Unabridged) [2010] (Duration: 8h44m)
Converting to m4a ...
size= 246321kB time=08:49:45.00 bitrate= 63.5kbits/s speed=7.09e+003x
Adding looped cover image audiobook
frame=31844 fps=645 q=17.0 Lsize= 256060kB time=08:49:45.00 bitrate= 66.0kbits/s speed= 644x
Done!
- Extract cover image:
ffmpeg -y -i audiobook.aax cover.png
- Decrypted and convert to m4a:
ffmpeg -y -activation_bytes 1CEB00DA -i audiobook.aax -c:a copy -vn audiobook-tmp.m4a
- Add looped cover image:
ffmpeg -y -r 1 -loop 1 -i cover.png -i audiobook-tmp.m4a -c:a copy -shortest audiobook.m4a
Does this copy over the chapter information?