[Bug]: When converting an Audiobook to m4b, chapters are capped at 255 #2174

Closed
opened 2026-04-25 00:04:38 +02:00 by adam · 2 comments
Owner

Originally created by @kuldan5853 on GitHub (Aug 12, 2024).

What happened?

If you use the internal m4b tools, books with more than 255 chapters get capped at 255 chapters - as much as I know the rest of the book still gets added at the end, but not chapterized anymore.

What did you expect to happen?

Add the chapters as input to the system, even if >255

Steps to reproduce the issue

  1. convert book with more than 255 chapters to m4b

Audiobookshelf version

v.2.12.1

How are you running audiobookshelf?

Windows Tray App

What OS is your Audiobookshelf server hosted from?

Windows

If the issue is being seen in the UI, what browsers are you seeing the problem on?

None

Logs

No response

Additional Notes

No response

Originally created by @kuldan5853 on GitHub (Aug 12, 2024). ### What happened? If you use the internal m4b tools, books with more than 255 chapters get capped at 255 chapters - as much as I know the rest of the book still gets added at the end, but not chapterized anymore. ### What did you expect to happen? Add the chapters as input to the system, even if >255 ### Steps to reproduce the issue 1. convert book with more than 255 chapters to m4b ### Audiobookshelf version v.2.12.1 ### How are you running audiobookshelf? Windows Tray App ### What OS is your Audiobookshelf server hosted from? Windows ### If the issue is being seen in the UI, what browsers are you seeing the problem on? None ### Logs _No response_ ### Additional Notes _No response_
adam added the bug label 2026-04-25 00:04:38 +02:00
adam closed this issue 2026-04-25 00:04:38 +02:00
Author
Owner

@mikiher commented on GitHub (Aug 20, 2024):

How did you check that chapters were capped at 255? Some players have display limitations.

Can you please open a Command Prompt, run the following and attach the output here?
%localappdata%\programs\audiobookshelf\ffmpeg -i "<path\to\your\m4b>" -f ffmetadata -vn -an -sn -dn -

  • %localappdata%\programs\audiobookshelf\ffmpeg is where audiobookshelf usually installs ffmpeg by default - please change it if it's installed elsewhere
  • Please change <path\to\your\m4b> to point at the actual m4b file.
@mikiher commented on GitHub (Aug 20, 2024): How did you check that chapters were capped at 255? Some players have display limitations. Can you please open a Command Prompt, run the following and attach the output here? `%localappdata%\programs\audiobookshelf\ffmpeg -i "<path\to\your\m4b>" -f ffmetadata -vn -an -sn -dn -` - `%localappdata%\programs\audiobookshelf\ffmpeg` is where audiobookshelf usually installs ffmpeg by default - please change it if it's installed elsewhere - Please change <path\to\your\m4b> to point at the actual m4b file.
Author
Owner

@kuldan5853 commented on GitHub (Aug 20, 2024):

How did you check that chapters were capped at 255? Some players have display limitations.

Can you please open a Command Prompt, run the following and attach the output here? %localappdata%\programs\audiobookshelf\ffmpeg -i "<path\to\your\m4b>" -f ffmetadata -vn -an -sn -dn -

* `%localappdata%\programs\audiobookshelf\ffmpeg` is where audiobookshelf usually installs ffmpeg by default - please change it if it's installed elsewhere

* Please change <path\to\your\m4b> to point at the actual m4b file.

Thank you - this can be closed, it is indeed a problem with the client I tried to open the m4b with, not audiobookshelf encoding.

@kuldan5853 commented on GitHub (Aug 20, 2024): > How did you check that chapters were capped at 255? Some players have display limitations. > > Can you please open a Command Prompt, run the following and attach the output here? `%localappdata%\programs\audiobookshelf\ffmpeg -i "<path\to\your\m4b>" -f ffmetadata -vn -an -sn -dn -` > > * `%localappdata%\programs\audiobookshelf\ffmpeg` is where audiobookshelf usually installs ffmpeg by default - please change it if it's installed elsewhere > > * Please change <path\to\your\m4b> to point at the actual m4b file. Thank you - this can be closed, it is indeed a problem with the client I tried to open the m4b with, not audiobookshelf encoding.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#2174