The solution is simple, and requires the following programs (Windows solution):
- FFmpeg
- AtomicParsley
With these programs (either located where the AAX files are or available via PATH), create the following Windows batch file:
FOR /r %%a IN (*.aax) DO (^
del cover.jpg /Q & del "%%~na.mp4" /Q & del "%%~na.m4b" /Q & ^
ffmpeg -activation_bytes XXXXXXXX -i "%%a" -vcodec copy cover.jpg & ^
ffmpeg -activation_bytes XXXXXXXX -i "%%a" -vn -c:a copy -map_metadata 0:g "%%~na.mp4" & ^
ren "%%~na.mp4" "%%~na.m4b" & ^
IF exist cover.jpg (AtomicParsley.exe "%%~na.m4b" --artwork cover.jpg --overWrite) & ^
del cover.jpg /Q )
Or in one line:
FOR /r %%a IN (*.aax) DO (del cover.jpg /Q & del "%%~na.mp4" /Q & del "%%~na.m4b" /Q & ffmpeg -activation_bytes XXXXXXXX -i "%%a" -vcodec copy cover.jpg & ffmpeg -activation_bytes XXXXXXXX -i "%%a" -vn -c:a copy -map_metadata 0:g "%%~na.mp4" & ren "%%~na.mp4" "%%~na.m4b" & IF exist cover.jpg (AtomicParsley.exe "%%~na.m4b" --artwork cover.jpg --overWrite) & del cover.jpg /Q )
where XXXXXXXX is the secret extracted using audible-activator,
which is the same for all files owned (bought) by the same user.
What this batch file is doing:
- delete possible files from previous conversion attempts
- extract the audible album art (if available) into a file called "cover.jpg", using FFmpeg
- extract the AAC audio from the AAX file, and all metadata and save them into MP4 file, using FFmpeg
- rename MP4 file to M4B
- (if available) add album art to MP4 file using AtomicParsley
- delete the cover.jpg file