HydrogenAudio

Lossy Audio Compression => Other Lossy Codecs => Topic started by: AudibleAddict on 2010-09-01 15:29:00

Title: Convert Audible files to MP3, AAC or Flac
Post by: AudibleAddict on 2010-09-01 15:29:00
As my car radio only accepts MP3 files (and audio CDs of course), I was annoyed that Audible do not provide any files that a standard HIFI device can play (and MP3 is pretty much standard nowadays). Of course I started with burning the audible files to CDs, but honestly who wants to have tens of CDs laying around in the car?
Therefore I tried to write a small program which takes the burned CDs and converts them to MP3 (or AAC or Flac) files, fully tagged and divided at the chapter points. Further it automatically removes the annoying "Presented by Audible" comments at the beginning and the end (it should work for english and german fileS). Please let me know what you think of it!

Here comes a full documentation of how to convert the audible files (no cracking or hacking involved!):

1. Burn your audible file to (real or virtual) audio CD(s) using ITunes. Best is to deactivate "Gap Between Songs" (set it to "none") - but I don't know whether it really has any impact in this case... Now the DRM is gone and we can work with the CDs.
2. Extract the CDs to an "image" file (whole audio CD in one single file). ITunes will insert a new track roughly every 7 minutes, it doesn't look whether there is a pause at the track junction or not! Also ITunes will repeat roughly 20 seconds of audio when starting a further CD. So this division in tracks is not helpful, that is why we just extract the CDs to CD image files. Use Exact Audio Copy (EAC) for enhanced security - or just any other Audio CD Grabber. Extract the images to uncompressed WAV files and name them xxxxx01.wav, xxxxx02.wav, etc. (xxxxx can be any name).
3. Locate the according Audible file (either .aa or .aax) on your harddisk, e.g. right click the audiobook in ITunes and select "Show in Windows Explorer".
4. Use my tool to create WAV files (untagged) or fully tagged AAC, MP3 or Flac files.

Now the documentation of my tool:

1. Installation
Extract the files to a directory of your choice, it comes with the Flac Encoder preinstalled. If you want to encode to MP3, you need to copy a current version of the LAME MP3 Encoder in that directory (LAME.EXE), and if you want to get a single(!) AAC file (including chapter marks), just drop the Nero AAC Encoder package in that directory (NeroAACEnc.exe and NeroAACTag.exe are necessary). The tool will detect which encoders are in the same directory and create such files - if you have three encoders installed, the tool will create all three encoding schemes! Only if no encoder is found, the tool will produce untagged and uncompressed WAV files.

2. Usage
The tool is a command line tool only, so open a dos box and change the current directory to the path where you installed the EXEs.
Just starting the tool without any parameters will show you all possible options.
If you start the program with only the audible file name (with extension .aa or .aax), it will just show you the title and chapters of the Audible audio book. These information are stored unencrypted in the Audible files, so no hacking of a DRM or whatever is needed - all information can be read in plain text using a hexeditor.
In order to convert the files to the "selected" output formats, use this command line:
AudibleChapters.exe <audible filename> <first WAV image> <target directory>
<audible filename> is the name (and full path) of the Audible file with an extensio nof .aa or .aax
<first WAV image> is the name (and full path) of the first extracted WAV image (which must end with "01.wav"!)
<target directory> is a full specified path, in which a subdirectory will be created (from the name of the audio book)
If the audio book is an .aax file, everything is probably fine. If not, you can do something about it!
I also found a book, which has real chapters (the speaker really tells "Chapter Five"), but the audible chapters where just somewhere inbetween! This is not nice, so I decided to implement also a function for automatically find possible chapter markers (the chapter marks from the Audible file will be ignored completely).
There is a fully automated usage possible when just specifying -d on the command line. You can also specify a rough minimum and maximum length of a chapter in minutes (e.g. -d10:20 will create chapters which will be mostly between 10 and 20 minutes in length). The program will find the best matching positions, but of course can not be perfect without any user interaction. Therefore the -i option provides this user interactivity (used in conjunction with -d). After having searched the file, the tool will play a position within the file (the audio just after the "beep" will be in a new chapter). If the book has real chapters, which can be identified easily, you can decide whether you want to have a chapter mark at the "beep" position. Press "y" for yes and "n" for no. If you want to listen again to that piece of audio, press the "r" key. If you have enough chapters and want to start processing, press "q". Usually if there are no new chapter starts after 10-20 false propositions, there will be no further chapter start...
Any problems with the tool should be shown on the command line, have a look for WARNING and ERROR messages...

The tool can be found here : [a href='index.php?act=findpost&pid=720907']AudibleChapters[/a]

Please share your thoughts!

Regards,

Anonymous Audible Addict
Title: Convert Audible files to MP3, AAC or Flac
Post by: AudibleAddict on 2010-09-15 10:51:18
I have prepared a new version (version 1.1) of the AudibleChapters tool. It basically still behaves exactly like described above, but has the following changes:

- Adding a pause (defaults to 2.8 seconds) after the last extracted track. This is because in case of multi-file audiobooks otherwise the last track of one file and the first track of the following file have no pause between (which can be distractive, as there should be a pause between chapter changes - and usually there should be a chapter change between two Audible files). The length of the added pause (in milliseconds, also length of 0 is possible) can be set via the new -p parameter (e.g. -p0 )
- A warning message is now reworded, as it might have been misleading

It would be quite helpful, if there would be some feedback - does it work, where and how does it fail? There must be at least somebody who did some tests!

Download here: [a href='index.php?showtopic=83668']AudibleChapters[/a]

Regards,

Anonymous Audible Addict
Title: Convert Audible files to MP3, AAC or Flac
Post by: Synthetic Soul on 2010-09-15 18:45:59
IIUC ".aa" files are MP3 audio files, and ".aax" are AAC.  Is there no way to simply demux the existing audio?

I am currently listening to The Girl with The Dragon Tattoo, following the free offer in the Guardian.
Title: Convert Audible files to MP3, AAC or Flac
Post by: Synthetic Soul on 2010-09-16 09:16:11
Code: [Select]
audiblechapters "M:\My Music\iTunes\iTunes Music\Stieg Larsson\Unknown Album\TheGirlwiththeDragonTattoo_mp332_xxxxxxxxxx.aa" test01.wav L:\

Audible CD Image Converter 1.1, Copyright 2010 by Anonymous Audible Addict


ERROR: Can not open first wav image file!
Cannot get anything but this message.  NB: I have tried various combinations of paths for the 2nd and 3rd parameters, and tried both aax and aa files.

Edit: It will read the file (both AA and AAX):
Code: [Select]
audiblechapters "M:\My Music\iTunes\iTunes Music\Stieg Larsson\The Girl with the Dragon Tattoo\TheGirlwiththeDragonTattoo_ep6_xxxxxxxxxx.aax"

Audible CD Image Converter 1.1, Copyright 2010 by Anonymous Audible Addict


The Girl with the Dragon Tattoo: The Millennium Trilogy, Volume 1 (2008)
Stieg Larsson (Martin Wenner)

Chapter   1: 00:00:00:000  :  Chapter 1
Chapter   2: 00:37:08:442  :  Chapter 2
Chapter   3: 01:13:25:243  :  Chapter 3
Chapter   4: 01:50:37:633  :  Chapter 4
Chapter   5: 02:27:41:338  :  Chapter 5
Chapter   6: 03:04:57:791  :  Chapter 6

Total Dur. : 03:43:22:952
Title: Convert Audible files to MP3, AAC or Flac
Post by: AudibleAddict on 2010-09-16 11:02:26
Code: [Select]
audiblechapters "M:\My Music\iTunes\iTunes Music\Stieg Larsson\Unknown Album\TheGirlwiththeDragonTattoo_mp332_xxxxxxxxxx.aa" test01.wav L:\

Audible CD Image Converter 1.1, Copyright 2010 by Anonymous Audible Addict


ERROR: Can not open first wav image file!
Cannot get anything but this message.  NB: I have tried various combinations of paths for the 2nd and 3rd parameters, and tried both aax and aa files.


It should be the second parameter (as the error message tells so) which is bad. Please specifiy the full(!) path to the first wav file (try also using quotes). In the above example it is probably unsufficient to just give the filename without path (but it could work nevertheless). Also try using admin rights!?

Anyway, the given error message happens if the file can't be found - this test is done using "FindFirstFile", if the handle value is not "INVALID_HANDLE_VALUE", the file does exist (for further processing), otherwise the error message is thrown. If you have specified quotes (as above for the .aa file), then I am a bit out of wit... What OS do you use? Does anybody else experience the same behaviour? I use and test under Windows 7 Ultimate 64 bit (but of course it should also run under 32 bit, as it is a 32 bit app).

EDIT: I have tried with local path (without specifying path) and without any quotes, and it worked... So I have no clue why it doesn't work for you!

If the problem persists I could do a test version which will output several information about the files etc for debugging...

The problem with .aa and .aax files is not the demultiplexing (there are a lot of tools out there for just demuxing), but the encryption. It would be necessary to be broken, and at least where I live this would be illegal (while my way is perfectly legal). Of course the second compression hurts the audio, but as the encoding is done usually with a slightly higher bitrate and quality based, the loss is hopefully small. The speed would of course also be higher, but I usually convert a 6 hours audiobook within 1 hour (using VirtualCD)...

Regards,

Anonymous Audible Addict
Title: Convert Audible files to MP3, AAC or Flac
Post by: Synthetic Soul on 2010-09-16 12:14:06
I think I have misunderstood the purpose of your application.  I thought it was a converter of aax files, but I now see that it is an automated encoder and tagger of wave files.

I misread your instructions, sorry.
Title: Convert Audible files to MP3, AAC or Flac
Post by: pacohaas on 2010-11-11 06:16:02
Neat little tool! Takes up lots of temporary space, but gets the job done. I just tried it on the first part of a 13 hour audio book using just iTunes and a CDRW.

Here's how I used it:

-Burn audible playlist to CD
-Each time it ejects I put the CDRW into a different computer and import via iTunes with the "Join CD Tracks" option to get my single WAV file for each CD
-Run the program with Nero encoder (would be nice to have encoding options, especially for LAME)

I haven't listened to it yet, but it seems to have found chapters although I got this warning:
Searching for Audible texts
WARNING: audio duration differs from chapter list, missing 24350 seconds!
Found audible introduction speech, removing it
Found audible ending speech, removing it

So I am skeptical that something may be missing here. When I play the audible files on my iPhone, I can see that some of the "chapters" are actually broken up into 2 parts, so when playing a chapter it will say "1 of 2" at the top, then "2 of 2" before going on to the next chapter, perhaps this has something to do with the missing seconds?
Title: Convert Audible files to MP3, AAC or Flac
Post by: AudibleAddict on 2010-11-12 13:26:19
Mmmm... Never encountered such an audiobook before. But I only have some few audiobooks for testing. Please check the chapter marks with the file in Itunes, are at the given position really a chapter point?
Which audio book did have the problems? Did you also tried a different audio book?
By the way, usually such large audiobooks are divided into around 6 hour .aa or .aax files, how is it on that audible file? What is the total running time of each of the files?
The missing seconds are around 6 hours 45 minutes, I guess this is the total length of the file. It is funny that it found the beginning and ending speech at all... Perhaps that message was wrong (though it shouldn't).
If you want specific compression options, you should encode to flac and from there (e.g. using Foobar2000) into any other compression format.

Best regards,

Anonymous Audible Addict
Title: Convert Audible files to MP3, AAC or Flac
Post by: hmayer321 on 2010-12-16 16:48:35
Hi Anonymous Audible Addict,

thanks for the app. Unfortunately, it's not working for me.

After starting with a call like the following the app stopps without error code after a few seconds:


===========================
D:\Programme\AudibleRip>AudibleChapters "D:\Eigene Musik\Book.aa" "D:\Eigene Musik\Book_01.wav" "D:\Eigene Musik\"

Audible CD Image Converter 1.1, Copyright 2010 by Anonymous Audible Addict


File Searching for Audible texts

D:\Programme\AudibleRip>
===========================

I already played with some false filenames and the app responded with the expected error codes (like "file not found").
The "Book_01.wav" filesize is 2.042.835 Bytes and is playable by iTunes. Also the "Book.aa" can be played by iTunes.
When using only the "Book.aa" as single parameter the app lists correctly 15 chapters as well as author and book title.
I'm working on a Windows XP Professional, Version 2002, SP 3.
I just downloaded the acutal versions of neroAacTag.exe and neroAacEnc.exe which reside in the same directory as AudibleChapters.exe.
My goal is to produce an apple like audiobook with chapters included.

What's going wrong?

Thanks for your help,
Heinz.
Title: Convert Audible files to MP3, AAC or Flac
Post by: Napkin on 2011-03-16 16:08:21
Just wanted to say Thank you! It works like a charm

I'm using mp4v2 utils afterwards to adjust the tags, to add the cover image and to add a Quicktime-compatible (m4b) chapters list.

My main OS is Debian/Linux, though - Any chance you could create a binary for that? Or maybe even let me try to compile it there?

Anyways, thank you so much for this tool!
Title: Convert Audible files to MP3, AAC or Flac
Post by: AudibleAddict on 2011-03-25 13:01:41
Hello,

New version 1.3 available, mainly fixed the problem of not finding "next volume" speech at the end for some german audio books...

A unix version is probably not impossible, but how do you get the ITunes files burned at all with unix? Perhaps a static compile against Wine would already do?

[a href='index.php?showtopic=87677']Download here[/a]

/Anonymous Audible Addict
Title: Convert Audible files to MP3, AAC or Flac
Post by: kbaerwald on 2011-03-25 16:51:05
Hello,

New version 1.3 available, mainly fixed the problem of not finding "next volume" speech at the end for some german audio books...

A unix version is probably not impossible, but how do you get the ITunes files burned at all with unix? Perhaps a static compile against Wine would already do?

[a href='index.php?showtopic=87677']Download here[/a]

/Anonymous Audible Addict


Hi AAA
thanks for your PM. Downloaded now the aax versions of some Audible files and tested your programme v1.3: works like a charme  . Thank you for that! The aax Quality is much better than with the aa files. Removal of the announcements and other filler data is a real kick!
Klaus
Title: Convert Audible files to MP3, AAC or Flac
Post by: Napkin on 2011-03-25 16:52:28
Yeah, no chance to burn them in Linux. I hadn't thought of wine when I asked - but it works like a charm as I found out a few days later.

I've created a small script to convert all my audiobooks (various formats: aax, mp3, m4a) into standard-compliant mp4/m4b. I wasn't aware in the beginning that aax are actually normal mp4 containers with a protected audiotracks on which mp4chaps & mp4art works just fine. But without your tool to detect the announcements and the overlapping of audio (when burning to multiple disks), I'd be screwed.

If you are interested, I'll gladly share this small bash script.

Thanks again for your invaluable tool! I'll try the 1.3 version as soon as possible.
Title: Convert Audible files to MP3, AAC or Flac
Post by: Napkin on 2011-03-25 18:45:05
It still works fine with wine  It feels like it takes a lot longer now to search for the audible texts (20-30s compared to 3-5s previously), but I guess it's also better in finding them, too.
Title: Convert Audible files to MP3, AAC or Flac
Post by: kbaerwald on 2011-03-30 16:28:57
Hi AudibleAddict

just to tell you that I worked on approx 40 audiobooks with multiple parts meanwhile. The new version 1.3 did not show any flats or problems (  I controlled some arbitrary chapters per audiobook and found no deviation). Filler data are cut out completely. Win 7 Professional 64 with Noteburner used here. I take the wav files as they come out of Noteburner and rename them to xx_wav01 etc. With a small MSDOS batch script I can work with a multiple-part audiobook in one batch at a time. This converts a four part audiobook in 45 min plus cosmetics.

Thanks again...

Klaus
Title: Convert Audible files to MP3, AAC or Flac
Post by: pacohaas on 2011-04-10 08:56:18
Mmmm... Never encountered such an audiobook before. But I only have some few audiobooks for testing. Please check the chapter marks with the file in Itunes, are at the given position really a chapter point?
Which audio book did have the problems? Did you also tried a different audio book?
By the way, usually such large audiobooks are divided into around 6 hour .aa or .aax files, how is it on that audible file? What is the total running time of each of the files?
The missing seconds are around 6 hours 45 minutes, I guess this is the total length of the file. It is funny that it found the beginning and ending speech at all... Perhaps that message was wrong (though it shouldn't).
If you want specific compression options, you should encode to flac and from there (e.g. using Foobar2000) into any other compression format.

Best regards,

Anonymous Audible Addict
The book mentioned above was indeed two ~6hr aax files, it's called "Loving Frank".

Also, just tried another one and got a similar issue, also interactive mode doesn't appear to do anything:
Code: [Select]
Audible CD Image Converter 1.3, Copyright 2011 by Anonymous Audible Addict

Using interactive mode

Determining overlap between file 1 and file 2...
WARNING: couldn't match the two WAV files (ignore if files not overlapping)!
Determining overlap between file 2 and file 3...
WARNING: couldn't match the two WAV files (ignore if files not overlapping)!
Determining overlap between file 3 and file 4...
WARNING: couldn't match the two WAV files (ignore if files not overlapping)!
Determining overlap between file 4 and file 5...
WARNING: couldn't match the two WAV files (ignore if files not overlapping)!
Determining overlap between file 5 and file 6...
Searching for Audible texts
WARNING: audio duration differs from chapter list, missing 24346 seconds!
Found audible introduction speech, removing it
Found audible ending speech, removing it
This is with Adam Carolla's book In Fifty Years We'll All Be Chicks. I haven't listened to this one yet, but at first glance the chapters seem to be ok although the total time of the individual WAV chapters is 6:45:12 and the single .aax file is 6:44:24, so even after removing intro and ending, the files seem to be longer, most likely because the overlapping wasn't able to find it even though it does indeed overlap if I listen to the 6 CD's I made.
Title: Convert Audible files to MP3, AAC or Flac
Post by: pacohaas on 2011-04-10 19:10:21
also interactive mode doesn't appear to do anything:

I think I see the problem, Interactive mode was meant to help detect chapters (and I wasn't using the -d option, only -i). I was hoping it could be used to detect the overlap which the program doesn't seem to be doing on this book for some reason even though the overlaps are there in the resulting file (20 seconds is repeated at each CD change).
Title: Convert Audible files to MP3, AAC or Flac
Post by: kbaerwald on 2011-04-11 16:58:12
also interactive mode doesn't appear to do anything:

I think I see the problem, Interactive mode was meant to help detect chapters (and I wasn't using the -d option, only -i). I was hoping it could be used to detect the overlap which the program doesn't seem to be doing on this book for some reason even though the overlaps are there in the resulting file (20 seconds is repeated at each CD change).


pacohaas

Did you try to run audiblechapters.exe with just the aax file name as parameter? Did it recognize the audible chapters properly? It should report this on the screen. Your screen shot says 6 chapters - no more. I once had an error message saying 12 seconds missing: this was due to a recording problem with iTunes. I could not repeat this.

The programme says "missing 24346 seconds!" - that is too much. If the chapter recognition by audiblechapters works fine you MUST have a recording problem. Try to check the beginnings and endings of your individual wav files. Also - the individual wav files should not be larger than 2GB!

Klaus
Title: Convert Audible files to MP3, AAC or Flac
Post by: AudibleAddict on 2011-04-12 11:02:42
Try to check the beginnings and endings of your individual wav files. Also - the individual wav files should not be larger than 2GB!


Yes, and even more it would be interesting where you got such large files from...
If you burn them with ITunes it should be at max one CD size (around 700-800MB).

Regards,

AAA
Title: Convert Audible files to MP3, AAC or Flac
Post by: pacohaas on 2011-04-12 17:05:50
Your screen shot says 6 chapters - no more.

No, the screenshot says there are 6 files. I did not post the chapter information. It does find 57 chapters in these 6 files (all ~74 minutes as would be expected from a CD-R). What I am concerned with is that it doesn't find the 20 seconds of overlap that is clearly there when I listen to the files.
Title: Convert Audible files to MP3, AAC or Flac
Post by: pacohaas on 2011-04-13 03:51:37
I tried something different this time using Audacity to record the entire 6h45m audio file and then split it up into 6 files. First I tried this by generating 6 files that had 20 seconds of overlap, but I was getting the same error about not matching the 2 wave files, so I figured I'd try it again by generating files that did not overlap, the first 5 are 1h10m, the last is 54m22s. This seems to have worked. I still had to remove the intro and outro Audible tags ("This is Audible" and "Audible hopes you have enjoyed this program"), but other than that looks good, now time to convert it back to AAC...

Code: [Select]
Audible CD Image Converter 1.3, Copyright 2011 by Anonymous Audible Addict


Determining overlap between file 1 and file 2...
WARNING: couldn't match the two WAV files (ignore if files not overlapping)!
Determining overlap between file 2 and file 3...
WARNING: couldn't match the two WAV files (ignore if files not overlapping)!
Determining overlap between file 3 and file 4...
WARNING: couldn't match the two WAV files (ignore if files not overlapping)!
Determining overlap between file 4 and file 5...
WARNING: couldn't match the two WAV files (ignore if files not overlapping)!
Determining overlap between file 5 and file 6...
WARNING: couldn't match the two WAV files (ignore if files not overlapping)!
Searching for Audible texts
WARNING: audio duration differs from chapter list, missing 24264 seconds!
Found audible ending speech, removing it
Writing chapter 1...
Writing chapter 2...
Writing chapter 3...
Writing chapter 4...
Writing chapter 5...
Writing chapter 6...
Writing chapter 7...
Writing chapter 8...
Writing chapter 9...
Writing chapter 10...
Writing chapter 11...
Writing chapter 12...
Writing chapter 13...
Writing chapter 14...
Writing chapter 15...
Writing chapter 16...
Writing chapter 17...
Writing chapter 18...
Writing chapter 19...
Writing chapter 20...
Writing chapter 21...
Writing chapter 22...
Writing chapter 23...
Writing chapter 24...
Writing chapter 25...
Writing chapter 26...
Writing chapter 27...
Writing chapter 28...
Writing chapter 29...
Writing chapter 30...
Writing chapter 31...
Writing chapter 32...
Writing chapter 33...
Writing chapter 34...
Writing chapter 35...
Writing chapter 36...
Writing chapter 37...
Writing chapter 38...
Writing chapter 39...
Writing chapter 40...
Writing chapter 41...
Writing chapter 42...
Writing chapter 43...
Writing chapter 44...
Writing chapter 45...
Writing chapter 46...
Writing chapter 47...
Writing chapter 48...
Writing chapter 49...
Writing chapter 50...
Writing chapter 51...
Writing chapter 52...
Writing chapter 53...
Writing chapter 54...
Writing chapter 55...
Writing chapter 56...
Writing chapter 57...
Title: Convert Audible files to MP3, AAC or Flac
Post by: pacohaas on 2011-04-13 14:20:36
Here's an error I'm getting on another file, what can I do about this:
Code: [Select]
Writing chapter 1...
ERROR: Could not create output file! Is the path valid and is created?
Writing chapter 2...
ERROR: Could not create output file! Is the path valid and is created?
Writing chapter 3...
ERROR: Could not create output file! Is the path valid and is created?
Writing chapter 4...
ERROR: Could not create output file! Is the path valid and is created?
Writing chapter 5...
ERROR: Could not create output file! Is the path valid and is created?
Writing chapter 6...
ERROR: Could not create output file! Is the path valid and is created?
Done!

It does create the folder appropriately so I'm not sure the problem:
C:\Users\aaaa\Desktop\The Decision Tree Taking Control of Your Health in the New Era
Title: Convert Audible files to MP3, AAC or Flac
Post by: pacohaas on 2011-04-14 05:09:56
It does create the folder appropriately so I'm not sure the problem:
C:\Users\aaaa\Desktop\The Decision Tree Taking Control of Your Health in the New Era

FYI, I found the problem with this one, it has an illegal windows filename character in the name ":"
The Decision Tree: Taking Control of Your Health in the New Era of Personalized Medicine (Unabridged) Part 1

I just changed the trackname in iTunes and now it works although it still can't detect overlapping audio in files that I generated purposefully with 20 seconds of overlap from a single 5hr wave. So I just split that WAVE in half and did the same as with the last book "ignore since not overlapping". Again it appears as though the "This is Audible" intro and "Audible hopes you have enjoyed this program" were not deleted, but I can do that manually.
Title: Convert Audible files to MP3, AAC or Flac
Post by: JBark on 2011-04-14 08:36:03
In regards to the chapter breaks being incorrect for the long aax files, it seems they are off by a factor of 2.  For example, here's a book I just tried:

Audible CD Image Converter 1.3, Copyright 2011 by Anonymous Audible Addict

The Shadow of the Torturer (Unabridged) Part 1 ()
Gene Wolfe (Jonathan Davis)

Chapter  1: 00:00:00:000  :  Chapter 1
Chapter  2: 00:11:49:207  :  Chapter 2
Chapter  3: 00:22:51:347  :  Chapter 3
Chapter  4: 00:34:36:212  :  Chapter 4
Chapter  5: 00:46:47:664  :  Chapter 5
Chapter  6: 00:55:37:032  :  Chapter 6
Chapter  7: 01:12:15:955  :  Chapter 7
Chapter  8: 01:26:05:766  :  Chapter 8
Chapter  9: 01:34:52:696  :  Chapter 9
Chapter  10: 01:44:41:996  :  Chapter 10
Chapter  11: 01:55:29:275  :  Chapter 11
Chapter  12: 02:04:33:922  :  Chapter 12
Chapter  13: 02:14:58:539  :  Chapter 13
Chapter  14: 02:25:35:091  :  Chapter 14
Chapter  15: 02:34:07:555  :  Chapter 15
Chapter  16: 02:46:05:470  :  Chapter 16
Chapter  17: 02:55:42:021  :  Chapter 17
Chapter  18: 03:04:37:358  :  Chapter 18

Total Dur. : 03:04:47:319

However, the actual file is 06:09:34 in length, Chapter 2 starts at 23:40, Chapter 3 starts at 45:43, and so on.  It also gives me the "missing 22171 seconds" message if I try to create the output files, which makes sense, as that's basically half the file.
Title: Convert Audible files to MP3, AAC or Flac
Post by: JBark on 2011-04-14 10:19:53
And even more odd, the files are correctly split in the end, even though it reports the chapter breaks incorrectly.  Not sure how that works out, but files were fine in the end.
Title: Convert Audible files to MP3, AAC or Flac
Post by: kbaerwald on 2011-04-15 19:20:49
The following workflow is my very individual one: it depends on iTunes, Noteburner and (of course) AudibleChapters from AudibleAddict. It is being used now for nearly 100 audiobooks which I bought over the last 3 years from Audible. Most of the errors occuring were due to problems with special characters either in file names or even CD-Text (maybe Noteburner is very sensible here). A few problems came from the iTunes burning process but could be eliminated.

So far I had no real problems with my 100 audiobooks (thanks AudibleAddict).

This is my workflow example for the following audiobook 17h33min total:

- DieStadtderTraeumendenBuecher-Teil1_ep7.aax (8h44)
- DieStadtderTraeumendenBuecher-Teil2_ep7.aax (8h49)

After burning with iTunes I get 14 virtual CDROMs with approx. 10 tracks per CD-R and a total of 134 tracks/wav files (66 for part1 and 68 for part2 of the audiobook). After conversion into wav I usually put them into one subdir with the structure:

- 01wav01 ... 01wav66
- 02wav01 ... 02wav68

And I am frequently checking the beginnings and endings of the audiobook parts for the audible messages to be sure of correct burning and conversion into wav.

Now I start a short batch file (sometimes I have 4 or 5 parts per audiobook):

audiblechapters H:\AUDIBLE\DieStadtderTraeumendenBuecher-Teil1_ep7.aax F:\TEMP\01wav01.wav F:\DATA
audiblechapters H:\AUDIBLE\DieStadtderTraeumendenBuecher-Teil2_ep7.aax F:\TEMP\02wav01.wav F:\DATA

snip--------------------------------------

C:\Users\Besitzer\Desktop\Audible\AudibleChapters11>audiblechapters H:\AUDIBLE\D
ieStadtderTraeumendenBuecher-Teil1_ep7.aax F:\TEMP\01wav01.wav F:\DATA

Audible CD Image Converter 1.3, Copyright 2011 by Anonymous Audible Addict

Determining overlap between file 1 and file 2...
WARNING: couldn't match the two WAV files (ignore if files not overlapping)!
Determining overlap between file 2 and file 3...
WARNING: couldn't match the two WAV files (ignore if files not overlapping)!
Determining overlap between file 3 and file 4...
WARNING: couldn't match the two WAV files (ignore if files not overlapping)!
Determining overlap between file 4 and file 5...
WARNING: couldn't match the two WAV files (ignore if files not overlapping)!
Determining overlap between file 5 and file 6...
WARNING: couldn't match the two WAV files (ignore if files not overlapping)!
Determining overlap between file 6 and file 7...
WARNING: couldn't match the two WAV files (ignore if files not overlapping)!
Determining overlap between file 7 and file 8...
WARNING: couldn't match the two WAV files (ignore if files not overlapping)!
Determining overlap between file 8 and file 9...
WARNING: couldn't match the two WAV files (ignore if files not overlapping)!
Determining overlap between file 9 and file 10...
WARNING: couldn't match the two WAV files (ignore if files not overlapping)!
Determining overlap between file 10 and file 11...
Determining overlap between file 11 and file 12...
WARNING: couldn't match the two WAV files (ignore if files not overlapping)!
....
....
Determining overlap between file 64 and file 65...
WARNING: couldn't match the two WAV files (ignore if files not overlapping)!
Determining overlap between file 65 and file 66...
WARNING: couldn't match the two WAV files (ignore if files not overlapping)!
Searching for Audible texts
Found audible introduction speech, removing it
Found audible ending speech, removing it
Found audible end of volume speech, removing it
Writing chapter 1...
Writing chapter 2...
Writing chapter 3...
Writing chapter 4...
Writing chapter 5...
Writing chapter 6...
Writing chapter 7...
Writing chapter 8...
...
...
Writing chapter 111...
Writing chapter 112...
Writing chapter 113...
Done!

C:\Users\Besitzer\Desktop\Audible\AudibleChapters11>audiblechapters H:\AUDIBLE\D
ieStadtderTraeumendenBuecher-Teil2_ep7.aax F:\TEMP\02wav01.wav F:\DATA

Audible CD Image Converter 1.3, Copyright 2011 by Anonymous Audible Addict

Determining overlap between file 1 and file 2...
WARNING: couldn't match the two WAV files (ignore if files not overlapping)!
Determining overlap between file 2 and file 3...
WARNING: couldn't match the two WAV files (ignore if files not overlapping)!
Determining overlap between file 3 and file 4...
...
...
WARNING: couldn't match the two WAV files (ignore if files not overlapping)!
Determining overlap between file 59 and file 60...
WARNING: couldn't match the two WAV files (ignore if files not overlapping)!
Determining overlap between file 60 and file 61...
WARNING: couldn't match the two WAV files (ignore if files not overlapping)!
Determining overlap between file 61 and file 62...
WARNING: couldn't match the two WAV files (ignore if files not overlapping)!
Determining overlap between file 62 and file 63...
WARNING: couldn't match the two WAV files (ignore if files not overlapping)!
Determining overlap between file 63 and file 64...
WARNING: couldn't match the two WAV files (ignore if files not overlapping)!
Determining overlap between file 64 and file 65...
WARNING: couldn't match the two WAV files (ignore if files not overlapping)!
Determining overlap between file 65 and file 66...
Determining overlap between file 66 and file 67...
WARNING: couldn't match the two WAV files (ignore if files not overlapping)!
Determining overlap between file 67 and file 68...
WARNING: couldn't match the two WAV files (ignore if files not overlapping)!
Searching for Audible texts
Found audible introduction speech, removing it
Found audible ending speech, removing it
Writing chapter 1...
Writing chapter 2...
Writing chapter 3...
Writing chapter 4...
Writing chapter 5...
Writing chapter 6...
Writing chapter 7...
Writing chapter 8...
Writing chapter 9...
Writing chapter 10...
Writing chapter 11...
Writing chapter 12...
Writing chapter 13...
Writing chapter 14...
Writing chapter 15...
Writing chapter 16...
Writing chapter 17...
Writing chapter 18...
...
...

snip----------------------------------------

I am using the program Noteburner for the creation of virtual CD-Rs tracks and subsequent conversion into wav files. It obviously does some cosmetics with the wav files so there are warnings by the converter which are being ignored.

At the end I have the  usable flac files in directory F:\DATA:
.....
F:\DATA\Die Stadt der Traeumenden Buecher - Teil 1\001 Kapitel 1 - Die Stadt der Traeumenden Buecher - Teil 1 - Walter Moers (2007).flac 
F:\DATA\Die Stadt der Traeumenden Buecher - Teil 1\002 Kapitel 2 - Die Stadt der Traeumenden Buecher - Teil 1 - Walter Moers (2007).flac 
F:\DATA\Die Stadt der Traeumenden Buecher - Teil 1\003 Kapitel 3 - Die Stadt der Traeumenden Buecher - Teil 1 - Walter Moers (2007).flac 
F:\DATA\Die Stadt der Traeumenden Buecher - Teil 1\004 Kapitel 4 - Die Stadt der Traeumenden Buecher - Teil 1 - Walter Moers (2007).flac 
F:\DATA\Die Stadt der Traeumenden Buecher - Teil 1\005 Kapitel 5 - Die Stadt der Traeumenden Buecher - Teil 1 - Walter Moers (2007).flac 
F:\DATA\Die Stadt der Traeumenden Buecher - Teil 1\006 Kapitel 6 - Die Stadt der Traeumenden Buecher - Teil 1 - Walter Moers (2007).flac 
....

After all conversion is done I check again some arbitrary chapters  against the original audible file chapter in iTunes to make sure that they are the same.

That's it.

Klaus
Title: Convert Audible files to MP3, AAC or Flac
Post by: pacohaas on 2011-04-15 19:50:01
@Klaus: nice, although you don't need to create a wave file for each track on your CDr's. If Noteburner could just create one file from each CD, then I think that is the way AudibleChapters was intended to run. Although you can see by your output that it still works since it doesn't find overlap between tracks on the same CD, just between tracks on different CD's.
Title: Convert Audible files to MP3, AAC or Flac
Post by: Napkin on 2011-04-15 19:55:50
That's a limitation of Noteburner. iTunes creates the tracks and Noteburner creates one wav-file per track. Haven't found an option to change that.
Title: Convert Audible files to MP3, AAC or Flac
Post by: kbaerwald on 2011-04-16 07:42:36
That's a limitation of Noteburner. iTunes creates the tracks and Noteburner creates one wav-file per track. Haven't found an option to change that.

To have one file per CD-R is an advantage - for audiobook people. I think the target group for Noteburner are people listening to songs not audiobooks. That's why.

@pacohaas: did you find out what your problem is? Looking at your log there are six wav files. I suppose you have already merged the indivual track files into one wav file per CD-R? What would happen if you treat the individual track-based wav files with AudibleChapters instead of the big one (maybe the problem lies in the merging process)? It is not quite clear to me what your wav file represents.

Klaus
Title: Convert Audible files to MP3, AAC or Flac
Post by: Micha234 on 2011-04-16 15:07:53
Hi all,

@Klaus
Whitch settings do you use with Noteburner to get the correct Tacknumbers or whitch version of notburner do you use.

I have the following problem.
Noteburner give me tracknumbers like this:

09
10.wav
011.wav ect. which make problems with Audiblechapters.

What can I do to geht the right tracknumbers like:
11.wav
12.wav
13.wav
...
64.wav

Many thx for your help and kind regards,

Micha
Title: Convert Audible files to MP3, AAC or Flac
Post by: pacohaas on 2011-04-16 15:43:39
@pacohaas: did you find out what your problem is? Looking at your log there are six wav files. I suppose you have already merged the indivual track files into one wav file per CD-R? What would happen if you treat the individual track-based wav files with AudibleChapters instead of the big one (maybe the problem lies in the merging process)? It is not quite clear to me what your wav file represents.
Klaus

In the past I had just used iTunes to extract the WAV file, iTunes has the option to "Join Tracks", so I just joined all tracks and then Imported. You can do the same thing with Exact Audio Copy "Copy Range" option. I was finding that after burning all those CDRW's that AudibleChapters was not finding the 20 second overlap and I was having to do this manually, so instead I used Audacity to record my computer's "Stereo Mix" while playing the song in iTunes and then just exported 6 wave files (with no overlap). This has been working better for me.
Title: Convert Audible files to MP3, AAC or Flac
Post by: Napkin on 2011-04-16 15:52:03
@Klaus
Whitch settings do you use with Noteburner to get the correct Tacknumbers or whitch version of notburner do you use.

That's a very good question. I haven't managed to get them named/numbered properly by Noteburner either. Maybe Klaus has? In the meantime I am using TotalCommander's multi-rename tool: sort by date and then set a counter with 2 digits (Rename mask: "[C]").
Title: Convert Audible files to MP3, AAC or Flac
Post by: kbaerwald on 2011-04-16 16:19:09
I am using Noteburner 2.31 and in the settings/output filename: <title>. To avoid the wrong order of files I am doing the ordering by timestamp (the original ordering used by Noteburner is NOT consistent with windows alphabetical ordering!!!). After this rearrangement I do the renaming into 01wav01... etc. (you could use a tool like Total Commander or Idoswin)

Otherwise the series as processed by AudibleChapters is out of order. Sorry I did not mention it.

Klaus
Title: Convert Audible files to MP3, AAC or Flac
Post by: Micha234 on 2011-04-16 16:54:59
Hi all,
thx for your answers, it works now for me.

The only small problem I have is that Itunes make chapters every 7.59 Mins.
So, if AudibleChapters cut and joins the files you can hear break "click" between the joinded tracks ie every 7.59 minutes
In Itunes I burn the files with "no gapes between tracks".

Is there a way to cut and join the tracks gapless or maybe my wav files are damaged?

Kind regards,
Micha
Title: Convert Audible files to MP3, AAC or Flac
Post by: Napkin on 2011-04-16 17:01:36
Oh, weird - it doesn't create clicks for me. What do you let AudibleChapters create for you? I am creating WAVs and then compress them into mp4 later with another script. Maybe try a different format?

EDIT: Oops, you say you create WAVs.. how do you put them together afterward?
Title: Convert Audible files to MP3, AAC or Flac
Post by: Micha234 on 2011-04-16 17:21:58
Hi,
I doesn't put it to gether. For the moment I hear the version that AudibleChapters cut and join.

For me, I can hear every joinpoint from the original files, that Itunes created.
Probably I just noticed that because I listen to headphones.

Kind regards
Micha
Title: Convert Audible files to MP3, AAC or Flac
Post by: Napkin on 2011-04-16 17:26:50
Nah, I'm listening to the results in my car and with headset - there is no clicking. Try running AudibleChapters with neroAacEnc.exe binary beside it. It will then automatically create a merged mp4 with a chapter list. Listen to that with VLC or a similar player. Do you still have the clicking?
Title: Convert Audible files to MP3, AAC or Flac
Post by: Micha234 on 2011-04-16 18:05:12
Hi,
yes, I can still hear it. Maybe it's a problem with the wav files.

Kind regards
Title: Convert Audible files to MP3, AAC or Flac
Post by: pacohaas on 2011-04-18 15:34:38
Sounds like it may be a problem with your CD-Rs or the way your burner is extracting them. Have you tried extracting with iTunes with the "Join Tracks" option? Just select all the tracks in iTunes on the CD and on one of the menus you will find "Join Tracks". Then you can extract with iTunes as a single wav file.
Title: Convert Audible files to MP3, AAC or Flac
Post by: Micha234 on 2011-04-18 17:23:34
Hi,
i've also try this. The actual problem for me are the original wav file, which AudibleChapter creates.

For example: After converting the book I run AudibleChapters and this joins and cut the wav files which was createt previously with Itunes, 7,59 Mins for every chapter.
Now I can here every 7,59 (the chapter whitch Itunes has created) the cut or join Point.

Kind regards,
Micha

Title: Convert Audible files to MP3, AAC or Flac
Post by: kbaerwald on 2011-04-19 08:37:40
Hi,
i've also try this. The actual problem for me are the original wav file, which AudibleChapter creates.

For example: After converting the book I run AudibleChapters and this joins and cut the wav files which was createt previously with Itunes, 7,59 Mins for every chapter.
Now I can here every 7,59 (the chapter whitch Itunes has created) the cut or join Point.

Kind regards,
Micha


I think pacohaas proposes to let iTunes join the tracks first to avoid joining the wav files later on! I am running audiblechapters producing flac files - and I do not have clicks at the joint points either.

Klaus
Title: Convert Audible files to MP3, AAC or Flac
Post by: Micha234 on 2011-04-19 18:40:30
Hi all,
did I unserstand that correctly?

1. Creating the wav files with noteburner
2. joining first the tracks with Itunes
3. run audiblechapter
3. convert to flac or what ever

I thought the second step is run audiblechapters und then join and convert the files?
Otherwise audiblechapters can't find the chapters.

If this can do by another way, I will try it.

Kind regards,
Micha
Title: Convert Audible files to MP3, AAC or Flac
Post by: pacohaas on 2011-04-19 20:24:08
Create 1 wave file for each CD-R using iTunes.
Title: Convert Audible files to MP3, AAC or Flac
Post by: kbaerwald on 2011-04-24 17:34:41
Create 1 wave file for each CD-R using iTunes.


I am running iTunes 10.2 (Windows 64). Can't find the "Joined track" option in my version: where to look?
Title: Convert Audible files to MP3, AAC or Flac
Post by: pacohaas on 2011-04-24 17:52:32
Create 1 wave file for each CD-R using iTunes.


I am running iTunes 10.2 (Windows 64). Can't find the "Joined track" option in my version: where to look?

I'm not on my computer right now, but it's in one of the menus when you have the tracks on the CD selected.
http://lmgtfy.com/?q=itunes+join+cd+tracks (http://lmgtfy.com/?q=itunes+join+cd+tracks)
Title: Convert Audible files to MP3, AAC or Flac
Post by: kbaerwald on 2011-04-25 08:15:20
Create 1 wave file for each CD-R using iTunes.


I am running iTunes 10.2 (Windows 64). Can't find the "Joined track" option in my version: where to look?

I'm not on my computer right now, but it's in one of the menus when you have the tracks on the CD selected.
http://lmgtfy.com/?q=itunes+join+cd+tracks (http://lmgtfy.com/?q=itunes+join+cd+tracks)

yes - I found it ... but it is greyed out (dimmed) when burning my aax files. Also when marking the files (your reference!) there is no difference: the option cannot be selected.

Btw: your reference says "The Join CD Tracks command in iTunes is dimmed if you select files in the library,..." ????

[edit] So I assume the join tracks works only if I copy files from CD into the iTunes library not vice versa.

Klaus
Title: Convert Audible files to MP3, AAC or Flac
Post by: Alexander Ostuni on 2011-04-25 09:17:04
...and all this hassle to use an audiobook that you bought with your money.
I cancelled my subsription there 5 minutes after signing up after discovering this ripoff.
Title: Convert Audible files to MP3, AAC or Flac
Post by: Napkin on 2011-04-25 09:22:43
True.. I wish I could get audiobooks for the same price elsewhere without DRM - but paying 10€ per episode is just so much cheaper than 50€ when I got interested in Eragon.
Title: Convert Audible files to MP3, AAC or Flac
Post by: kbaerwald on 2011-04-25 12:33:53
Basically the copying works fine without the "join tracks" functionality. I tried this just to save some time.

I also would prefer media without DRM but Audible publishes audiobooks that you do not get elsewhere (at least in Germany). Currently I listen to the German  "Wheel of time" episodes from Jordan.
Title: Convert Audible files to MP3, AAC or Flac
Post by: elvquant on 2011-07-03 08:48:36
Hi,

you have written, that AudibleChapters is command line.
Is it possible to port it to Mac OS X or Linux?
Or get the source or the algorithm to do it?

Elv
Title: Convert Audible files to MP3, AAC or Flac
Post by: exsistosane on 2012-03-10 21:25:34
Do I need to do it twice for an audiobook that comes in two parts or am I missing something?  It would be nice if I could provide one wav file that was the result of combining the output of the two aax files and the aax files would be searched sequentially in the same path.  An alternative would be to process the aax files in the same directory sequentially against identically named wav files.  The user would only need to provide the name of the first aax file.


Thanks for the tool.  There is still a lot of after-work left to get a chaptered audiobook from audible but it really does help a lot.

Title: Convert Audible files to MP3, AAC or Flac
Post by: wiwa53 on 2012-04-27 15:45:11
Sorry, cant find an answere here.
My problem:
have an audiobook spanning over 2 cds (burned with iTunes not in One-Wave-file-mode), have one .aax file (16 chapters). The ripped wav's count chapter 1-10 (oncd 1) and capter 1-6 (oncd 2). Putting it all together renaming the wav's to xxx01.wav - xxx016.wav. processed with audiblechapters are only the first 10 wav-files in the directory but the hole chapters from the aax-file, so in result I get for the last 6 chapters (11-16) empty wav-files.
Please help, what do I wrong?
Regards
Willi
Title: Convert Audible files to MP3, AAC or Flac
Post by: AudibleAddict2 on 2012-05-29 13:13:28
I have released a new version (1.4) of the converter tool, which fixes a problem on detecting the overlap. No overlap problem would have been reported, but the files will only be appended (so that the 10 seconds repeats), probably audio channels would have swapped. This only happend if the test area had digital silence for several seconds at the exact position, but I now had one such audiobook personally...

By the way, I forgot the old account credentials, so from now on I will write as AudibleAddict2...

The download is here: [a href='index.php?showtopic=95219']AudibleChapters Download[/a]

@elvquant:
The tool should work fine with Wine, as it depends on no external libraries (also flac should be self dependend). Also it doesn't need any DRM information from iTunes or whatever...

@exsistosane:
Yes, in fact you have to do it for each audible aax file (multiple times for multi file audio books). But usually I just use the last command line and change the "part1" by "part2" and change the new first WAV file name...

@wiwa53:
You shouldn't extract the CDs trackwise, but image wise (meaning one WAV file for the whole CD). Most ripping programs support this, e.g. EAC (use either copy range (from start to end) or copy image & cue sheet (forget the cuesheet)). Basically you could also manually append all WAV files (should work), but this would result in a great amount of manual work! Basically AudibleChapters should be able to process track WAV files, but this isn't recommended - the reason why it didn't work for you was probably the naming xxx10.wav and the next must be xxx11.wav (and not xxx011.wav). Of course in this case, only 99 tracks are supported (which are quite easily done on longer audio books - there are audiobooks with many hundreds of chapters).

Hope it works out for you!

/Anonymous Audible Addict
Title: Convert Audible files to MP3, AAC or Flac
Post by: Puniam on 2012-06-19 09:23:36
Thanks for the great work.

Btw.: I don't think manually joining the tracks is more work than remounting/ripping the virtual cd.

You could use sox (http://sox.sourceforge.net/) in a commandline like 'sox t1.wav t2.wav t3.wav t4.wav t5.wav t6.wav t7.wav t8.wav t9.wav t10.wav ../joined01.wav'.
rinse and repeat

Works fine for me with no audible clicks all 8 minutes.

Regards Andre
Title: Convert Audible files to MP3, AAC or Flac
Post by: Puniam on 2012-06-25 07:49:10
I noticed a problem with audiblechapters.

If the gap between chapters is not silent (background music etc.) then the transition between chapters is audible. There is a small noticable unsync between the flac files. Playing the files with foobar or squeezebox, which do gapless audio.

As a good (and free) example you could try it yourself with http://www.audible.de/pd/B004UZHDE2 (http://www.audible.de/pd/B004UZHDE2)

I guess not a high priority issue, since almost all audiobooks have silence inbetween chapters. Cannot tell that I noticed this problem before with any other audiobook

Regards
Andre
Title: Convert Audible files to MP3, AAC or Flac
Post by: Puniam on 2012-07-03 08:57:00
Never mind what I wrote above.

I just noticed that those unsyncs are somehow already present in the original aax files. I guess audible messed up their mastering there.
Title: Convert Audible files to MP3, AAC or Flac
Post by: seguin on 2012-07-17 11:06:46
First of all, I would like to thank AudibleAddict for making such a wonderful program available! I have so far only encountered two books for which AudibleChapters ran into difficulties. (For these, AudibleChapters was unable to detect the overlap and reported as much. Unfortunately, the problem is still there even with version 1.4, although I have not yet tried the idea of swapping the channels.) That is an impressively high success rate!

My main question relates to chapterization, which was discussed in an earlier post (see JBark's post of Apr 14 2011, 08:36): the chapter information contained as unencoded text in my aax files is always almost exactly half the true information as reported by iTunes or my mp3 player (or by mp4v2 utils for that matter). I was thinking that it might be a fairly simple fix to get AudibleChapters to simply double the information that it finds as unencoded text or - if there are aax files out there that do not have this feature - providing an option that allows the user to specify that the numbers should be doubled?

Thanks again, AudibleAddict, for doing such a wonderful public service!
Title: Convert Audible files to MP3, AAC or Flac
Post by: SonicPet07 on 2012-08-10 06:48:13
So the idea of this program seems awesome but I'm having issues getting it to work.  Firstly is there any other place were I can get help with the various errors I'm getting?

Here are my results using the following method. iTunes burns to a set of CD-RW's that I then use EAC to copy and make into a .wav file. In the case of this book I end up with 6 files about 800 MB apiece.  A couple of things concern me. Firstly the 4792 seconds missing. Seems high but since not all the files are being created I'm not sure if I should be concerned.  Secondly and something that may be related, I get an Error with the Flac encoded on some but not all of the compression.  Finally I get the error tagging the AAC file. This makes sense know that its not being properly created.  That being said what few chapters are created properly seem to be as advertised with the exception of chapter 10.  Any ideas on the Errors though?  I'll try it with another Audiobook before long. Hopefully figuring out the earlier issues will fix the later ones.

Code: [Select]
Searching for Audible texts
WARNING: audio duration differs from chapter list, missing 4792 seconds!
Found audible introduction speech, removing it
Writing chapter 1...
Writing chapter 2...
Writing chapter 3...
Writing chapter 4...
ERROR: Flac encoder reported an error on compression!
Writing chapter 5...
ERROR: Flac encoder reported an error on compression!
Writing chapter 6...
ERROR: Flac encoder reported an error on compression!
Writing chapter 7...
ERROR: Flac encoder reported an error on compression!
Writing chapter 8...
ERROR: Flac encoder reported an error on compression!
Writing chapter 9...
ERROR: Flac encoder reported an error on compression!
Writing chapter 10...
Encoding to AAC (all chapters in one file), this can take a while!
ERROR: AAC tagger reported an error on tagging!
Done!
Title: Convert Audible files to MP3, AAC or Flac
Post by: Puniam on 2012-08-23 13:27:16
4792 seconds missing .. that are roughly 80 Minutes ie one CD's length.

Check if all your wav files were processed (proper names of wav files). That would be my first guess.
Title: Convert Audible files to MP3, AAC or Flac
Post by: SonicPet07 on 2012-08-23 14:59:58
I managed to get it working but I noticed something with the lengths. Just for example imagine you had a book that was 10001 seconds long. Once everything was done it would say that 10000+-1 was missing. Not sure why it did this but all the books I converted seem to be working and not missing much. Some got cut a little in the intro after the audible bit.  While annoying starting a book mid word its only in the title so I can live with it.
Title: Convert Audible files to MP3, AAC or Flac
Post by: nbarzgar on 2012-08-26 17:59:34
Hello AudibleAddict,

thanks for a great app! I just converted the first audiobook. I got the error "...xxxx seconds missing" as well, but decided to ignore that and as far as I can see converison went well, the files (.mp3) seem to be all there. I sampled the start of some of them and the first and last one - also a few endings, combined with beginning of next - and the samples were fine!
Title: Convert Audible files to MP3, AAC or Flac
Post by: jcbrief on 2012-10-02 04:19:19
Thanks for your program. I've tried it and it works great.

What I'm wondering is it possible to import a chapter-time file to replace what is in the audible file?.

Before I found your program I made WAV files and used audacity to find the chapter marks. I find I'm very visual that way, for finding the chapter marks. So if I found these times (instead of the arbitrary 8 minute chapters audible likes to use so much) If I was able to supply a chapter/time file that would help your program find the chapters.

I'm currently playing with the interactive mode. to make sure how that works.

Thanks again for all the work you've done.
Joe
Title: Convert Audible files to MP3, AAC or Flac
Post by: belafarinrod666 on 2013-01-12 15:11:49
Hello AudibleAddict,

I've got the same issue as SyntheticSoul described in Post #4. Any idea what could help?

I tried in on my Windows8 Pro machine and on my Windows 7 Prefessional machine, both running the x64 vesion.
Runing the Dos-Box as Administrator did not help.

Greetings
Sascha aka belafarinrod666
Title: Convert Audible files to MP3, AAC or Flac
Post by: Puniam on 2013-01-31 18:49:43
Hallo,

Version 1.4 seems to have a problem recognizing the overlap between 2 CDs.

Here part 2 of the german audiobook Tom Clancy/Befehl von oben:

E:\Virtual CDs\Sound>audiblechapters \Music\Hörspiele\_Audible\Befehlvonoben-Tei
l2_ep7_amoll70.aax joined01.wav "\NewRip\Befehl von oben"

Audible CD Image Converter 1.4, Copyright 2012 by Anonymous Audible Addict


Determining overlap between file 1 and file 2...
Determining overlap between file 2 and file 3...
Determining overlap between file 3 and file 4...
WARNING: couldn't match the two WAV files (ignore if files not overlapping)!
Determining overlap between file 4 and file 5...
Determining overlap between file 5 and file 6...
Determining overlap between file 6 and file 7...
Searching for Audible texts
WARNING: audio duration differs from chapter list, missing 19 seconds!
Found audible introduction speech, removing it
Found audible ending speech, removing it
Found audible end of volume speech, removing it

Falling back to Version 1.3 worked:

E:\Virtual CDs\Sound\CD2>audiblechapters1.3 \Music\Hörspiele\_Audible\Befehlvono
ben-Teil2_ep7_amoll70.aax joined01.wav "\NewRip\Befehl von oben"

Audible CD Image Converter 1.3, Copyright 2011 by Anonymous Audible Addict


Determining overlap between file 1 and file 2...
Determining overlap between file 2 and file 3...
Determining overlap between file 3 and file 4...
Determining overlap between file 4 and file 5...
Determining overlap between file 5 and file 6...
Determining overlap between file 6 and file 7...
Searching for Audible texts
Found audible introduction speech, removing it
Found audible ending speech, removing it
Found audible end of volume speech, removing it

Just to let you know.

Regard Andre

Title: Convert Audible files to MP3, AAC or Flac
Post by: darku on 2013-04-02 10:46:32
Has anyone seen AudibleAddict lately?

He should have released the source code for AudibleChapters :-(

I wanted to make few tweaks.
Title: Convert Audible files to MP3, AAC or Flac
Post by: encoder on 2013-07-29 08:18:54
Can I easily extract chapter/trac positions and titles from the Audible file without having to try to burn them on multiple virtual CDs? I want to play them on a generic phone or player anyways.

Easy way to get the metadata out properly? Including chapter titles. Both in iTunes and Audible manager it shows different metadata and also not properly: it shows strange characters. I have Windows. I am OK with filling out the metadata by hand in the freed audio file(s).

Is it possible to add chapters into an MP3/FLAC/OGG/OPUS or something the exact same way they were in the Audible file?
Title: Convert Audible files to MP3, AAC or Flac
Post by: AndyH-ha on 2013-07-29 08:47:17
Just my curiosity: you want to listen on some generic device. Why would you care in the slightest if there are chapter titles or chapter breaks? What difference can it make?
Title: Convert Audible files to MP3, AAC or Flac
Post by: encoder on 2013-07-29 12:13:39
Just my curiosity: you want to listen on some generic device. Why would you care in the slightest if there are chapter titles or chapter breaks? What difference can it make?

1. I did not say device cannot display or jump between chapters.

2. I only want to encode stuff once and for good. Not for just the actual device only if you understand what I mean.
Title: Convert Audible files to MP3, AAC or Flac
Post by: AndyH-ha on 2013-07-29 19:59:31
I don't suppose it is worth pursuing but no, I don't understand what you mean. Regardless of the device, why would anyone care about "chapters"? I listen to many audio books. At first they were almost all ones I recorded from cassette, then largely from CDs; CDs are still a major source and I still find worthwhile books on tape. The story, or the content, however the author would label it for non-fiction, is the only thing that matters to any of us in this family.

The reader almost always reads the chapter heading for unabridged editions (e.g.. "chapter 10" or "chapter ten: down the narrow stairway"), but I wouldn't care if they didn't unless it is one of those rare books where the chapter headings actually contain something interesting or amusing. Track divisions are generally not on chapter breaks. Even if they do happen to occur together, all I ever care about is that the tracks play in sequence. I never entitle the tracks by chapters, or anything relevant to the contents. Book A 01, Book A 02, Book A 03, ... works peachy well.

We also have been buying from Audible for nearly two years. Those get converted to plain mp3 because my daughter didn't check on player compatibility before she started ordering. It turned out that none of our players was Audible compatible, so we couldn't listen to them as they were, without converting. Audible offerings are always long strings. sometimes nine hours plus long in one file. I always break them into 10 minute files, and number them, as this is markedly more convenient. Again, the only important thing to me is that the tracks play in sequence.

I'm not saying you should not do something extra if that is what you want. I was just curious as to why you should care. What do you gain by it that it is worth extending yourself about it? Am I missing something I should care about?
Title: Convert Audible files to MP3, AAC or Flac
Post by: Puniam on 2013-09-25 07:21:24
@AudibleAddict

Did you notice that your tool is running into problems since Audible does now huge one-file aax+ files. Chapters from a certain time onwards are not extracted properly anymore. Also if you look at the chapterlist of an huge aax+ file with your tool you can see that the running time and chapter positions have negative values.

Not knowing your code I assume you need to change to some longer vartypes.

@AndyH-ha

Well, that tools removes that ugly overlap itunes is adding. That is (for me) the most important feature.

Seperating the files into chapters add to more convenience for me when listening to the same audiobook with different devices for me. It's easier to find the right spot with the next device. Since some of my player cannot do gapless mp3 I always have to join the itunes 8min tracks into one big 80 minutes file.

If I forget to write down on which position I am and my player cannot remember where I stopped listening (foobar) I have to find the right spot back. With small chapters I don't mind repeating a few minutes.

Imho the tool is adding to the experience. But it is by far not a must-have. If you don't want it don't use it. I really like it and hope AudioAddict comes up with a revised version to handle the new huge aax+-files soon. Having to fall back again to listen to audiobooks the way I was used to, before I found this nifty tool, makes me appreciate it even more.

Regards
Andre
Title: Convert Audible files to MP3, AAC or Flac
Post by: greynol on 2013-09-25 14:39:34
Because the OP cannot seem to adhere to our TOS I am closing this discussion. Sorry for the inconvenience.