[Bug]: Slow buffer On big books #3037

Open
opened 2026-04-25 00:13:11 +02:00 by adam · 5 comments
Owner

Originally created by @mattr254 on GitHub (Oct 16, 2025).

What happened?

Books that are 10-20 hrs pull very quickly, books that are 50 hrs plus (yes there's a few out there) take 10-15 minutes to pull on the same connection. Running ADSL with a 5 MBps upload and have no issues with standard novels but I'm guessing since the book is longer and larger it buffers off percentage size vs time. Any option to adjust buffer size would be awesome for less than fiber connections....

What did you expect to happen?

Retrieve large books in a timely manner

Steps to reproduce the issue

  1. Open large book (50 + hours) from rpi4 over internet vs local network
  2. wait
  3. brew coffee
  4. wait
  5. check the mail
  6. wait
  7. see if phone is still on
  8. wait
  9. listen to book

Audiobookshelf version

Andriod App / 2.30.0

How are you running audiobookshelf?

Docker

What OS is your Audiobookshelf server hosted from?

Linux

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

None

Logs


Additional Notes

Would be nice to have a local network auto switch feature ie book.server.com to 192.168.1.111 on wifi

Originally created by @mattr254 on GitHub (Oct 16, 2025). ### What happened? Books that are 10-20 hrs pull very quickly, books that are 50 hrs plus (yes there's a few out there) take 10-15 minutes to pull on the same connection. Running ADSL with a 5 MBps upload and have no issues with standard novels but I'm guessing since the book is longer and larger it buffers off percentage size vs time. Any option to adjust buffer size would be awesome for less than fiber connections.... ### What did you expect to happen? Retrieve large books in a timely manner ### Steps to reproduce the issue 1. Open large book (50 + hours) from rpi4 over internet vs local network 2. wait 3. brew coffee 4. wait 5. check the mail 6. wait 7. see if phone is still on 8. wait 9. listen to book ### Audiobookshelf version Andriod App / 2.30.0 ### How are you running audiobookshelf? Docker ### What OS is your Audiobookshelf server hosted from? Linux ### If the issue is being seen in the UI, what browsers are you seeing the problem on? None ### Logs ```shell ``` ### Additional Notes Would be nice to have a local network auto switch feature ie book.server.com to 192.168.1.111 on wifi
adam added the bug label 2026-04-25 00:13:11 +02:00
Author
Owner

@nichwall commented on GitHub (Oct 16, 2025):

Is this specific to the mobile app? https://github.com/advplyr/audiobookshelf-app

What file format are you using? Is this with all long books? The server will attempt to transcode a book if the client cannot directly play the media file. Logs would be useful.

I regularly listen to long books (40+ hours) and haven't experienced more than a few second delay while the transcoding starts if streaming.

Edit to add: just tested streaming a 151 hour audiobook remotely and playback started within 4 seconds.

@nichwall commented on GitHub (Oct 16, 2025): Is this specific to the mobile app? https://github.com/advplyr/audiobookshelf-app What file format are you using? Is this with all long books? The server will attempt to transcode a book if the client cannot directly play the media file. Logs would be useful. I regularly listen to long books (40+ hours) and haven't experienced more than a few second delay while the transcoding starts if streaming. Edit to add: just tested streaming a 151 hour audiobook remotely and playback started within 4 seconds.
Author
Owner

@mattr254 commented on GitHub (Oct 17, 2025):

File format: m4b
Size: 3.84 GB

Using: android Audiobookshelf app
Yes, with all long books, The way of kings Saga(all 50 plus hrs per book),
all 5 books take a hot minute to buffer. Other books same format take a
fraction of that to load. Not exaggerating it literally takes 10 minutes to
buffer.

I'll post log files once I get back home

On Thu, Oct 16, 2025, 16:57 Nicholas W @.***> wrote:

nichwall left a comment (advplyr/audiobookshelf#4753)
https://github.com/advplyr/audiobookshelf/issues/4753#issuecomment-3412994598

Is this specific to the mobile app?
https://github.com/advplyr/audiobookshelf-app

What file format are you using? Is this with all long books? The server
will attempt to transcode a book if the client cannot directly play the
media file. Logs would be useful.

I regularly listen to long books (40+ hours) and haven't experienced more
than a few second delay while the transcoding starts.


Reply to this email directly, view it on GitHub
https://github.com/advplyr/audiobookshelf/issues/4753#issuecomment-3412994598,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABQVSVM2PLQSJSBVI27CZYL3YAIF3AVCNFSM6AAAAACJNJGDKCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTIMJSHE4TINJZHA
.
You are receiving this because you authored the thread.Message ID:
@.***>

@mattr254 commented on GitHub (Oct 17, 2025): File format: m4b Size: 3.84 GB Using: android Audiobookshelf app Yes, with all long books, The way of kings Saga(all 50 plus hrs per book), all 5 books take a hot minute to buffer. Other books same format take a fraction of that to load. Not exaggerating it literally takes 10 minutes to buffer. I'll post log files once I get back home On Thu, Oct 16, 2025, 16:57 Nicholas W ***@***.***> wrote: > *nichwall* left a comment (advplyr/audiobookshelf#4753) > <https://github.com/advplyr/audiobookshelf/issues/4753#issuecomment-3412994598> > > Is this specific to the mobile app? > https://github.com/advplyr/audiobookshelf-app > > What file format are you using? Is this with all long books? The server > will attempt to transcode a book if the client cannot directly play the > media file. Logs would be useful. > > I regularly listen to long books (40+ hours) and haven't experienced more > than a few second delay while the transcoding starts. > > — > Reply to this email directly, view it on GitHub > <https://github.com/advplyr/audiobookshelf/issues/4753#issuecomment-3412994598>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ABQVSVM2PLQSJSBVI27CZYL3YAIF3AVCNFSM6AAAAACJNJGDKCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTIMJSHE4TINJZHA> > . > You are receiving this because you authored the thread.Message ID: > ***@***.***> >
Author
Owner

@mattr254 commented on GitHub (Oct 17, 2025):

Forgot I could access the logs from the App. Here you go !

On Thu, Oct 16, 2025, 16:57 Nicholas W @.***> wrote:

nichwall left a comment (advplyr/audiobookshelf#4753)
https://github.com/advplyr/audiobookshelf/issues/4753#issuecomment-3412994598

Is this specific to the mobile app?
https://github.com/advplyr/audiobookshelf-app

What file format are you using? Is this with all long books? The server
will attempt to transcode a book if the client cannot directly play the
media file. Logs would be useful.

I regularly listen to long books (40+ hours) and haven't experienced more
than a few second delay while the transcoding starts.


Reply to this email directly, view it on GitHub
https://github.com/advplyr/audiobookshelf/issues/4753#issuecomment-3412994598,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABQVSVM2PLQSJSBVI27CZYL3YAIF3AVCNFSM6AAAAACJNJGDKCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTIMJSHE4TINJZHA
.
You are receiving this because you authored the thread.Message ID:
@.***>

@mattr254 commented on GitHub (Oct 17, 2025): Forgot I could access the logs from the App. Here you go ! On Thu, Oct 16, 2025, 16:57 Nicholas W ***@***.***> wrote: > *nichwall* left a comment (advplyr/audiobookshelf#4753) > <https://github.com/advplyr/audiobookshelf/issues/4753#issuecomment-3412994598> > > Is this specific to the mobile app? > https://github.com/advplyr/audiobookshelf-app > > What file format are you using? Is this with all long books? The server > will attempt to transcode a book if the client cannot directly play the > media file. Logs would be useful. > > I regularly listen to long books (40+ hours) and haven't experienced more > than a few second delay while the transcoding starts. > > — > Reply to this email directly, view it on GitHub > <https://github.com/advplyr/audiobookshelf/issues/4753#issuecomment-3412994598>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ABQVSVM2PLQSJSBVI27CZYL3YAIF3AVCNFSM6AAAAACJNJGDKCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTIMJSHE4TINJZHA> > . > You are receiving this because you authored the thread.Message ID: > ***@***.***> >
Author
Owner

@nichwall commented on GitHub (Oct 17, 2025):

Using: android Audiobookshelf app
Yes, with all long books, The way of kings Saga(all 50 plus hrs per book),
all 5 books take a hot minute to buffer. Other books same format take a
fraction of that to load. Not exaggerating it literally takes 10 minutes to
buffer.

How long is a "fraction of the time" and how big are the books which start streaming faster? Are they all single file books or multiple tracks?

Do these same books take as long to start playback using the web client as the mobile app?

Also you didn't attach any logs from either the server or the app.

@nichwall commented on GitHub (Oct 17, 2025): > Using: android Audiobookshelf app > Yes, with all long books, The way of kings Saga(all 50 plus hrs per book), > all 5 books take a hot minute to buffer. Other books same format take a > fraction of that to load. Not exaggerating it literally takes 10 minutes to > buffer. How long is a "fraction of the time" and how big are the books which start streaming faster? Are they all single file books or multiple tracks? Do these same books take as long to start playback using the web client as the mobile app? Also you didn't attach any logs from either the server or the app.
Author
Owner

@mattr254 commented on GitHub (Oct 17, 2025):

Image

I've been slowly converting all my books over to m4b. The m4b are all single files.
Fraction of the time is typically less than 30 seconds. Not long enough to cause notice.
No change between web or android player. The other smaller books are typically less than 1GB. All files are on a 512 GB micro SD A2 speeds (100 MB/S read speed)

@mattr254 commented on GitHub (Oct 17, 2025): <img width="1080" height="2376" alt="Image" src="https://github.com/user-attachments/assets/d4dba071-baeb-4ced-9cab-8578b7889918" /> I've been slowly converting all my books over to m4b. The m4b are all single files. Fraction of the time is typically less than 30 seconds. Not long enough to cause notice. No change between web or android player. The other smaller books are typically less than 1GB. All files are on a 512 GB micro SD A2 speeds (100 MB/S read speed)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#3037