Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

M4B QuickTime chapter limit of 255? #14

Open
TheMetalCenter opened this issue May 30, 2022 · 3 comments
Open

M4B QuickTime chapter limit of 255? #14

TheMetalCenter opened this issue May 30, 2022 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@TheMetalCenter
Copy link
Owner

TheMetalCenter commented May 30, 2022

Unable to write more than 255 chapters to an m4b file. This appears to be an inherent limitation with m4b QuickTime chapters (Nero chapters may support more than 255); ffmpeg attempts to write excess chapters to the file but only 255 are present in the output file. I'm not sure if this can be solved, unfortunately. Assuming mp3 does not share this limit (to be tested), it may be necessary to reencode the m4b to an mp3 and use id3v2.3 chapter tags. Alternatively, the m4b can be split into multiple parts (though both reencoding and splitting is against the spirit for this repo...). The best case would be the original conversion of the purchased aax file to mp3, then chapter tagging.

@TheMetalCenter TheMetalCenter added the help wanted Extra attention is needed label May 30, 2022
@AudioAnchorite
Copy link

Thank you for putting this comment up, I went through quite the process to try and edit the chapters on Edward Gibbon's Decline & Fall of the Roman Empire (Gibbon had awful, ignorant views on a lot of things, but the audio book is 126 hours long and has very long chapter names, which makes it ideal for testing out M4B utilities like yours).

Your comment is the only thing that shows up in search engines regarding this limit, otherwise I would have taken much longer to figure out the problems!

Also, the README needs to be changed to instruct users to put all of the files from your repository into the FFMPEG/bin folder. I had a number of errors from missing files after I put in only the ones that are currently mentioned. Solved by copying over the entire folder contents.

Finally, thank you very much for all of your work on this, it's really a fantastic set of scripts and programs, and does EXACTLY what I want (editing chapters via CUE sheet).

@TheMetalCenter
Copy link
Owner Author

I'm glad it was of help! A handful of people have saved the repo, but I think you may be the first to try it out! It's rather convoluted method so I am not surprised, but it really is convenient after the upfront work setting it up.

Thanks for the comment on the readme. It probably needs a bit more detail in parts.

@AudioAnchorite
Copy link

AudioAnchorite commented Jan 30, 2024

I just now finished my analysis of the spectral waveforms of the original M4B and the file that I modded your repo. It really does leave the audio streams untouched!

I have tried InAudible, AudioBook Converter, Libation, and Drax, and I could never get a solid answer regarding how those programs handled chapter editing. It seemed that some of them were really performing transcodes during the save process, due to the fact that there were marked differences in the spectral waveform comparisons.

Your repo is the real deal! This really made my day, thanks again! Hopefully someday a dev out there somewhere will incorporate this into a GUI for editing audio books.

Edit: I also just noticed that I missed one of the chapters in the CUE file and left it with 361 characters. It looks like the chapter name just gets truncated, no errors caused by it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants