Skip to content

Instantly share code, notes, and snippets.

@Geordon
Created May 10, 2020 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Geordon/41288ee5db49bea1894e42e80f639ed6 to your computer and use it in GitHub Desktop.
Save Geordon/41288ee5db49bea1894e42e80f639ed6 to your computer and use it in GitHub Desktop.
Openaudible Console output
INFO: Downloading book: Free Excerpt: Fledgling url=http://cds.audible.com/download?codec=LC_64_22050_Stereo&user_id=gnX7uqJpsOvdL4pWCyBqxrs2pv5PCvFcA2cN47ymMg1nioq_TFko6haaQgjRMA&product_id=FR_ADBL_004498&domain=www.audible.com&awtype=AAX&source=audible_adm&transfer_player=1&title=Free+Excerpt%3A+Fledgling&cust_id=gnX7uqJpsOvdL4pWCyBqxrs2pv5PCvFcA2cN47ymMg1nioq_TFko6haaQgjRMA
May 10, 2020 9:58:11 AM org.openaudible.download.DownloadJob download
INFO: Downloaded /Volumes/Plex/OpenAudible/aax/Free Excerpt Local Custom.AAX bytes=29069439 time=21420 Kbps=1325 Free Excerpt: Local Custom
May 10, 2020 9:58:11 AM org.openaudible.util.SimpleProcess <init>
INFO: Running: /Applications/OpenAudible.app/Contents/Resources/app/bin/mac/ffmpeg -i "/Volumes/Plex/OpenAudible/aax/Free Excerpt Local Custom.AAX" -f ffmetadata -
May 10, 2020 9:58:12 AM org.openaudible.Audible jobCompleted
INFO: DownloadQueue completed:Free Excerpt: Local Custom remaining queue size:499
May 10, 2020 9:58:12 AM org.openaudible.util.SimpleProcess <init>
INFO: Running: /Applications/OpenAudible.app/Contents/Resources/app/bin/mac/ffmpeg -i "/Volumes/Plex/OpenAudible/aax/Free Excerpt Local Custom.AAX" -f ffmetadata -
May 10, 2020 9:58:12 AM org.openaudible.desktop.swt.manager.AudibleGUI checkAutomation
INFO: Start auto conversion:32
May 10, 2020 9:58:12 AM org.openaudible.util.queues.ThreadedQueue run
INFO: Starting job convert Free Excerpt: Local Custom In progress:1 queue: 0 threads:
May 10, 2020 9:58:12 AM org.openaudible.Audible jobStarted
INFO: ConvertQueue started:Free Excerpt: Local Custom size:0
May 10, 2020 9:58:12 AM org.openaudible.util.SimpleProcess <init>
INFO: Running: /Applications/OpenAudible.app/Contents/Resources/app/bin/mac/ffmpeg -i "/Volumes/Plex/OpenAudible/aax/Free Excerpt Local Custom.AAX"
May 10, 2020 9:58:12 AM org.openaudible.util.queues.ThreadedQueue run
INFO: Starting job Download Free Excerpt: Agent of Change In progress:3 queue: 498 threads:
May 10, 2020 9:58:12 AM org.openaudible.Audible jobStarted
INFO: DownloadQueue started:Free Excerpt: Agent of Change size:498
May 10, 2020 9:58:12 AM org.openaudible.convert.ConvertJob doConversion
INFO: converting: Free Excerpt: Local Custom to temp file: /Users/gvantass/Library/OpenAudible/tmp/FR_ADBL_004502_temp.m4a from source /Volumes/Plex/OpenAudible/aax/Free Excerpt Local Custom.AAX length=29069439
May 10, 2020 9:58:12 AM org.openaudible.convert.ConvertJob doConversion
INFO: /Applications/OpenAudible.app/Contents/Resources/app/bin/mac/ffmpeg -activation_bytes 6fb31f01 -i "/Volumes/Plex/OpenAudible/aax/Free Excerpt Local Custom.AAX" -c:a copy -c:v copy -map_metadata 0 /Users/gvantass/Library/OpenAudible/tmp/FR_ADBL_004502_temp.m4a
May 10, 2020 9:58:12 AM org.openaudible.convert.ConvertJob doConversion
INFO: create M4A /Volumes/Plex/OpenAudible/aax/Free Excerpt Local Custom.AAX result:1
May 10, 2020 9:58:12 AM org.openaudible.convert.ConvertJob doConversion
SEVERE: conversion got non-zero result:1
stdErr:copyright : ©2001 Sharon Lee and Steve Miller (P)2012 Audible, Inc., ... date : 2012, Duration: 00:59:49.29, start: 0.000000, bitrate: 64 kb/s, Chapter #0:0: start 0.000000, end 3589.291655, Metadata:, title : Chapter 1, Stream #0:0(eng): Audio: aac (LC) (aavd / 0x64766161), 22050 Hz, stereo, fltp, 62 kb/s (default), Metadata:, creation_time : 2020-05-10T14:57:51.000000Z, handler_name : ?Apple Sound Media Handler, Stream #0:1(eng): Data: bin_data (text / 0x74786574) (default), Metadata:, creation_time : 2020-05-10T14:57:51.000000Z, handler_name : ?Apple Text Media Handler, Stream #0:2: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 500x500 [SAR 1:1 DAR 1:1], 90k tbr, 90k tbn, 90k tbc, [ipod @ 0x7f9cde031e00] Could not find tag for codec mjpeg in stream #0, codec not currently supported in container, Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument, Stream mapping:, Stream #0:2 -> #0:0 (copy), Stream #0:0 -> #0:1 (copy), Last message repeated 1 times
May 10, 2020 9:58:12 AM org.openaudible.convert.ConvertJob convert
SEVERE: Error converting book to MP3:Free Excerpt: Local Custom
java.io.IOException: Failed to convert /Volumes/Plex/OpenAudible/aax/Free Excerpt Local Custom.AAX. Check console for details.
at org.openaudible.convert.ConvertJob.doConversion(ConvertJob.java:317)
at org.openaudible.convert.ConvertJob.convert(ConvertJob.java:379)
at org.openaudible.convert.ConvertJob.processJob(ConvertJob.java:432)
at org.openaudible.util.queues.ThreadedQueue$JobThread.run(ThreadedQueue.java:420)
May 10, 2020 9:58:12 AM org.openaudible.util.queues.ThreadedQueue jobError
INFO: ConvertQueue error processing convert Free Excerpt: Local Custom
java.io.IOException: Failed to convert /Volumes/Plex/OpenAudible/aax/Free Excerpt Local Custom.AAX. Check console for details.
at org.openaudible.convert.ConvertJob.doConversion(ConvertJob.java:317)
at org.openaudible.convert.ConvertJob.convert(ConvertJob.java:379)
at org.openaudible.convert.ConvertJob.processJob(ConvertJob.java:432)
at org.openaudible.util.queues.ThreadedQueue$JobThread.run(ThreadedQueue.java:420)
May 10, 2020 9:58:12 AM org.openaudible.Audible jobCompleted
INFO: ConvertQueue completed:Free Excerpt: Local Custom remaining queue size:0
May 10, 2020 9:58:12 AM org.openaudible.desktop.swt.manager.AudibleGUI checkAutomation
INFO: Start auto conversion:31
May 10, 2020 9:58:12 AM org.openaudible.download.DownloadJob helperBodyToURL
INFO: helperBodyToURL Converted:
Free Excerpt: Agent of Change
Free+Excerpt%3A+Agent+of+Change
@openaudible
Copy link

A few more questions. Does the AAX file have an image associated with it?
Do all books fail or just some?
I have a bunch of books that I have tested this on. None have failed.

The ffmpeg command is available in the console. The goal is to copy both the audio and cover art. It may be that i need to check for artwork first... and if it it isn't there, try something else.. but I haven't found any audible books without art.

@Geordon
Copy link
Author

Geordon commented May 10, 2020

It seems to be failing on all conversion jobs to M4A. And yes, the image and the AAX files are both downloaded.

I just deleted everything in my data directories (unlimited, unmetered bandwidth FTW) and re-downloaded just a single book. When the book was downloaded, I confirmed that both the AAX and image files were present. This was the console output:

INFO: Command: Console
May 10, 2020 2:10:50 PM org.openaudible.download.DownloadJob download
INFO: Downloaded /Volumes/Plex/OpenAudible/aax/Your Guide to Forest Bathing Experience the Healing Power of Nature.AAX bytes=105554833 time=94227 Kbps=1093 Your Guide to Forest Bathing: Ex
May 10, 2020 2:10:51 PM org.openaudible.util.SimpleProcess
INFO: Running: /Applications/OpenAudible.app/Contents/Resources/app/bin/mac/ffmpeg -i "/Volumes/Plex/OpenAudible/aax/Your Guide to Forest Bathing Experience the Healing Power of Nature.AAX" -f ffmetadata -
May 10, 2020 2:10:51 PM org.openaudible.Audible jobCompleted
INFO: DownloadQueue completed:Your Guide to Forest Bathing: Ex remaining queue size:0
May 10, 2020 2:10:51 PM org.openaudible.util.SimpleProcess
INFO: Running: /Applications/OpenAudible.app/Contents/Resources/app/bin/mac/ffmpeg -i "/Volumes/Plex/OpenAudible/aax/Your Guide to Forest Bathing Experience the Healing Power of Nature.AAX" -f ffmetadata -
May 10, 2020 2:11:16 PM org.openaudible.desktop.swt.manager.menu.CommandCenter execute
INFO: Command: Convert
May 10, 2020 2:11:16 PM org.openaudible.util.queues.ThreadedQueue run
INFO: Starting job convert Your Guide to Forest Bathing: Ex In progress:1 queue: 0 threads:
May 10, 2020 2:11:16 PM org.openaudible.Audible jobStarted
INFO: ConvertQueue started:Your Guide to Forest Bathing: Ex size:0
May 10, 2020 2:11:16 PM org.openaudible.util.SimpleProcess
INFO: Running: /Applications/OpenAudible.app/Contents/Resources/app/bin/mac/ffmpeg -i "/Volumes/Plex/OpenAudible/aax/Your Guide to Forest Bathing Experience the Healing Power of Nature.AAX"
May 10, 2020 2:11:16 PM org.openaudible.convert.ConvertJob doConversion
INFO: converting: Your Guide to Forest Bathing: Ex to temp file: /Users/gvantass/Library/OpenAudible/tmp/BK_BLAK_011585_temp.m4a from source /Volumes/Plex/OpenAudible/aax/Your Guide to Forest Bathing Experience the Healing Power of Nature.AAX length=105554833
May 10, 2020 2:11:16 PM org.openaudible.convert.ConvertJob doConversion
INFO: /Applications/OpenAudible.app/Contents/Resources/app/bin/mac/ffmpeg -activation_bytes 6fb31f01 -i "/Volumes/Plex/OpenAudible/aax/Your Guide to Forest Bathing Experience the Healing Power of Nature.AAX" -c:a copy -c:v copy -map_metadata 0 /Users/gvantass/Library/OpenAudible/tmp/BK_BLAK_011585_temp.m4a
May 10, 2020 2:11:16 PM org.openaudible.convert.ConvertJob doConversion
INFO: create M4A /Volumes/Plex/OpenAudible/aax/Your Guide to Forest Bathing Experience the Healing Power of Nature.AAX result:1
May 10, 2020 2:11:16 PM org.openaudible.convert.ConvertJob doConversion
SEVERE: conversion got non-zero result:1
stdErr:Blackstone Publishing, ... date : 2018, Duration: 03:37:29.93, start: 0.000000, bitrate: 64 kb/s, Chapter #0:0: start 0.000000, end 765.143946, Metadata:, title : Chapter 1, Chapter #0:1: start 765.143946, end 1887.178594, Metadata:, title : Chapter 2, Chapter #0:2: start 1887.178594, end 3985.055057, Metadata:, title : Chapter 3, Chapter #0:3: start 3985.055057, end 5486.364444, Metadata:, title : Chapter 4, Chapter #0:4: start 5486.364444, end 7225.910567, Metadata:, title : Chapter 5, Chapter #0:5: start 7225.910567, end 10875.390839, Metadata:, title : Chapter 6, Chapter #0:6: start 10875.390839, end 11499.357460, Metadata:, title : Chapter 7, Chapter #0:7: start 11499.357460, end 12435.260952, Metadata:, title : Chapter 8, Chapter #0:8: start 12435.260952, end 12724.117188, Metadata:, title : Chapter 9, Chapter #0:9: start 12724.117188, end 13049.928345, Metadata:, title : Chapter 10, Stream #0:0(eng): Audio: aac (LC) (aavd / 0x64766161), 22050 Hz, stereo, fltp, 62 kb/s (default), Metadata:, creation_time : 2020-05-10T19:09:17.000000Z, handler_name : ?Apple Sound Media Handler, Stream #0:1(eng): Data: bin_data (text / 0x74786574) (default), Metadata:, creation_time : 2020-05-10T19:09:18.000000Z, handler_name : ?Apple Text Media Handler, Stream #0:2: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 500x500 [SAR 1:1 DAR 1:1], 90k tbr, 90k tbn, 90k tbc, [ipod @ 0x7fdd2c80f000] Could not find tag for codec mjpeg in stream #0, codec not currently supported in container, Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument, Stream mapping:, Stream #0:2 -> #0:0 (copy), Stream #0:0 -> #0:1 (copy), Last message repeated 1 times
May 10, 2020 2:11:16 PM org.openaudible.convert.ConvertJob convert
SEVERE: Error converting book to MP3:Your Guide to Forest Bathing: Ex
java.io.IOException: Failed to convert /Volumes/Plex/OpenAudible/aax/Your Guide to Forest Bathing Experience the Healing Power of Nature.AAX. Check console for details.
at org.openaudible.convert.ConvertJob.doConversion(ConvertJob.java:317)
at org.openaudible.convert.ConvertJob.convert(ConvertJob.java:379)
at org.openaudible.convert.ConvertJob.processJob(ConvertJob.java:432)
at org.openaudible.util.queues.ThreadedQueue$JobThread.run(ThreadedQueue.java:420)

May 10, 2020 2:11:16 PM org.openaudible.util.queues.ThreadedQueue jobError
INFO: ConvertQueue error processing convert Your Guide to Forest Bathing: Ex
java.io.IOException: Failed to convert /Volumes/Plex/OpenAudible/aax/Your Guide to Forest Bathing Experience the Healing Power of Nature.AAX. Check console for details.
at org.openaudible.convert.ConvertJob.doConversion(ConvertJob.java:317)
at org.openaudible.convert.ConvertJob.convert(ConvertJob.java:379)
at org.openaudible.convert.ConvertJob.processJob(ConvertJob.java:432)
at org.openaudible.util.queues.ThreadedQueue$JobThread.run(ThreadedQueue.java:420)

May 10, 2020 2:11:16 PM org.openaudible.Audible jobCompleted
INFO: ConvertQueue completed:Your Guide to Forest Bathing: Ex remaining queue size:0
May 10, 2020 2:11:16 PM org.openaudible.desktop.swt.manager.AudibleGUI checkAutomation
INFO: Start auto web page:
May 10, 2020 2:11:16 PM org.openaudible.desktop.swt.manager.ImportExport exportWebPage
SEVERE: Expected index file not found: /Volumes/Plex/OpenAudible/web/index.html
May 10, 2020 2:11:16 PM org.openaudible.desktop.swt.manager.AudibleGUI getTaskString
WARNING: error converting Your Guide to Forest Bathing: Ex: Failed to convert /Volumes/Plex/OpenAudible/aax/Your Guide to Forest Bathing Experience the Healing Power of Nature.AAX. Check console for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment