gonzoua / AudioBookBinder

GUI and command-line utility for converting audiobooks to m4b format
http://bluezbox.com/abb.html
228 stars 48 forks source link

Long audiobooks not bound correctly #12

Open mpgirro opened 12 years ago

mpgirro commented 12 years ago

I found myself binding some pretty large audiobooks. Listening to them I noticed that they all just contain about 6-7 hours of the book material (though the file size is about the size the whole book should have, and the full length should be about 26 hours and more).

I have set abb to not split the m4b files (so it should bind them in one big file). When setting the max Volume length to 24h or less it all works fine, and I have my 26h+ audiobooks in multiple files. But I want every book in one file. Is this a bug with the max Volume setting, or does m4b does not support file lengths larger than 24h? (in that case the I suggest it would be better to remove the possibility so select larger volume sizes)

tali commented 11 years ago

I had the same issue with a 27h audiobook. The total length was displayed as only 12 minutes and iTunes&iPhone refused to play anything beyond these 12 minutes. All chapters but the last were displayed with the correct length, only the last one had a totally bogus number (>1000h). I can provide the m4b if anybody is able to debug the m4b file.

gonzoua commented 11 years ago

This is a known issue with long m4b files. When number of samples is more then INT_MAX - lengths data goes bogus. You need to split your audiobook in several volumes. Open Preferences dialog and set Volume Length to 8-10h. Application will generates several .m4b files but from iTunes point of view it will be just like one audiobook.

tali commented 11 years ago

Ah ok, so this is indeed an overflow. Thanks a lot!

Jimmni commented 2 years ago

Just to note that this is not an unavoidable issue. Long books can be bound correctly with other tools.

coffeyac commented 2 years ago

Just to note that this is not an unavoidable issue. Long books can be bound correctly with other tools.

@Jimmni - I've been trying to figure out a solution to this for a long time. What other tools are you referring to?

Jimmni commented 2 years ago

Before it broke in general (for me at least it just produces tons of temp files now, no actual book gets creted) m4b-tool on my Mac would create long audiobooks without issue. I used it to bind a 40+ hour Wandering Inn book. AudioBookConverter on my Windows PC also creates long books without issue, though I haven't tried the Mac version. I used it to successfully bind 30+ hour Wheel of Time books.

xavdid commented 9 months ago

I ran into this today binding a 29 hour audiobook. The solution was to drop the sampling rate to 22kHz which ensured everything fit in a single file.

Most other apps handle this by automatically picking the highest possible sample rate (defaulting to 44.1kHz if possible). For example, I ran the same files through m4b-tool and it automatically used 22kHz.

I think this would be great functionally for ABB, because having to do the math myself, switch the setting down, bind, and then revert the setting is annoying.