[HLS] Error mediaError bufferAppendError #173

Closed
opened 2026-04-24 23:00:03 +02:00 by adam · 6 comments
Owner

Originally created by @JKamsker on GitHub (Jan 11, 2022).

Playing and scrubbing throught my library (Primarly 15h+ each), the player suddendly looses it by echoing [HLS] Error mediaError bufferAppendError over and over and spamming the network stack with output-n.ts get-requests.

How to reproduce:

  1. Play large-ab1
  2. Dont wait for the conversion to finish, just skip over to large-ab-2

Skipping over large chunks can produce this issue aswell.

image

image

192.168.8.2-1641857888454.log

Originally created by @JKamsker on GitHub (Jan 11, 2022). Playing and scrubbing throught my library (Primarly 15h+ each), the player suddendly looses it by echoing ``[HLS] Error mediaError bufferAppendError`` over and over and spamming the network stack with output-n.ts get-requests. How to reproduce: 1. Play large-ab1 2. Dont wait for the conversion to finish, just skip over to large-ab-2 Skipping over large chunks can produce this issue aswell. ![image](https://user-images.githubusercontent.com/11245306/148856161-ccd3be8d-dd8a-49a8-b405-d3bcc5f0d0ec.png) ![image](https://user-images.githubusercontent.com/11245306/148856073-e8e61396-762e-48b2-a5c4-2a2b752b8e7a.png) [192.168.8.2-1641857888454.log](https://github.com/advplyr/audiobookshelf/files/7842561/192.168.8.2-1641857888454.log)
adam closed this issue 2026-04-24 23:00:04 +02:00
Author
Owner

@JKamsker commented on GitHub (Jan 11, 2022):

Found an audiobook where it never works: "Alle diese Welten
Bobiverse 3"

image

Serverlogs:

[2022-01-10T23:40:40.702Z]  INFO: Stream Opened for client root for audiobook Alle diese Welten with streamId str_88t7m54mj29b07owv5
[2022-01-10T23:40:40.751Z]  INFO: [INFO] FFMPEG transcoding started with command: ffmpeg -seek_timestamp 1 -f concat -safe 0 -i /metadata/streams/str_88t7m54mj29b07owv5/files.txt -y -loglevel error -map 0:a -c:a copy -f hls -copyts -avoid_negative_ts make_non_negative -max_delay 5000000 -max_muxing_queue_size 2048 -hls_time 6 -hls_segment_type mpegts -start_number 0 -hls_playlist_type vod -hls_list_size 0 -hls_allow_cache 0 -hls_segment_filename /metadata/streams/str_88t7m54mj29b07owv5/output-%d.ts /metadata/streams/str_88t7m54mj29b07owv5/final-output.m3u8
[2022-01-10T23:40:40.754Z]  INFO: 
[2022-01-10T23:40:41.017Z]  INFO: [aac @ 0x7f475b10dac0] Reserved bit set.
[2022-01-10T23:40:41.020Z]  INFO: [aac @ 0x7f475b10dac0] Prediction is not allowed in AAC-LC.
[2022-01-10T23:40:41.022Z]  INFO: [aac @ 0x7f475b0f6b00] Reserved bit set.
[2022-01-10T23:40:41.024Z]  INFO: [aac @ 0x7f475b0f6b00] Prediction is not allowed in AAC-LC.
[2022-01-10T23:40:41.207Z] ERROR: [StreamManager] streamSync: Stream id mismatch on stream update null str_88t7m54mj29b07owv5
[2022-01-10T23:40:42.758Z]  INFO: [STREAM] str_88t7m54mj29b07owv5 notifying client that stream is ready
[2022-01-10T23:40:42.764Z]  INFO: [STREAM-CHECK] Check Files 188 of 5294 3.55% Furthest Segment: 187
[2022-01-10T23:40:44.762Z]  INFO: [STREAM-CHECK] Check Files 402 of 5294 7.59% Furthest Segment: 401
[2022-01-10T23:40:46.762Z]  INFO: [STREAM-CHECK] Check Files 617 of 5294 11.65% Furthest Segment: 616
[2022-01-10T23:40:48.765Z]  INFO: [STREAM-CHECK] Check Files 834 of 5294 15.75% Furthest Segment: 833
[2022-01-10T23:40:50.769Z]  INFO: [STREAM-CHECK] Check Files 1054 of 5294 19.91% Furthest Segment: 1053
[2022-01-10T23:40:52.777Z]  INFO: [STREAM-CHECK] Check Files 1269 of 5294 23.97% Furthest Segment: 1268
[2022-01-10T23:40:54.773Z]  INFO: [STREAM-CHECK] Check Files 1485 of 5294 28.05% Furthest Segment: 1484
[2022-01-10T23:40:56.775Z]  INFO: [STREAM-CHECK] Check Files 1687 of 5294 31.87% Furthest Segment: 1686
[2022-01-10T23:40:58.779Z]  INFO: [STREAM-CHECK] Check Files 1895 of 5294 35.80% Furthest Segment: 1894
@JKamsker commented on GitHub (Jan 11, 2022): Found an audiobook where it never works: "Alle diese Welten Bobiverse 3" ![image](https://user-images.githubusercontent.com/11245306/148857127-169e11c6-c7e3-463b-a745-b0e88b9e3adb.png) Serverlogs: ```` [2022-01-10T23:40:40.702Z] INFO: Stream Opened for client root for audiobook Alle diese Welten with streamId str_88t7m54mj29b07owv5 [2022-01-10T23:40:40.751Z] INFO: [INFO] FFMPEG transcoding started with command: ffmpeg -seek_timestamp 1 -f concat -safe 0 -i /metadata/streams/str_88t7m54mj29b07owv5/files.txt -y -loglevel error -map 0:a -c:a copy -f hls -copyts -avoid_negative_ts make_non_negative -max_delay 5000000 -max_muxing_queue_size 2048 -hls_time 6 -hls_segment_type mpegts -start_number 0 -hls_playlist_type vod -hls_list_size 0 -hls_allow_cache 0 -hls_segment_filename /metadata/streams/str_88t7m54mj29b07owv5/output-%d.ts /metadata/streams/str_88t7m54mj29b07owv5/final-output.m3u8 [2022-01-10T23:40:40.754Z] INFO: [2022-01-10T23:40:41.017Z] INFO: [aac @ 0x7f475b10dac0] Reserved bit set. [2022-01-10T23:40:41.020Z] INFO: [aac @ 0x7f475b10dac0] Prediction is not allowed in AAC-LC. [2022-01-10T23:40:41.022Z] INFO: [aac @ 0x7f475b0f6b00] Reserved bit set. [2022-01-10T23:40:41.024Z] INFO: [aac @ 0x7f475b0f6b00] Prediction is not allowed in AAC-LC. [2022-01-10T23:40:41.207Z] ERROR: [StreamManager] streamSync: Stream id mismatch on stream update null str_88t7m54mj29b07owv5 [2022-01-10T23:40:42.758Z] INFO: [STREAM] str_88t7m54mj29b07owv5 notifying client that stream is ready [2022-01-10T23:40:42.764Z] INFO: [STREAM-CHECK] Check Files 188 of 5294 3.55% Furthest Segment: 187 [2022-01-10T23:40:44.762Z] INFO: [STREAM-CHECK] Check Files 402 of 5294 7.59% Furthest Segment: 401 [2022-01-10T23:40:46.762Z] INFO: [STREAM-CHECK] Check Files 617 of 5294 11.65% Furthest Segment: 616 [2022-01-10T23:40:48.765Z] INFO: [STREAM-CHECK] Check Files 834 of 5294 15.75% Furthest Segment: 833 [2022-01-10T23:40:50.769Z] INFO: [STREAM-CHECK] Check Files 1054 of 5294 19.91% Furthest Segment: 1053 [2022-01-10T23:40:52.777Z] INFO: [STREAM-CHECK] Check Files 1269 of 5294 23.97% Furthest Segment: 1268 [2022-01-10T23:40:54.773Z] INFO: [STREAM-CHECK] Check Files 1485 of 5294 28.05% Furthest Segment: 1484 [2022-01-10T23:40:56.775Z] INFO: [STREAM-CHECK] Check Files 1687 of 5294 31.87% Furthest Segment: 1686 [2022-01-10T23:40:58.779Z] INFO: [STREAM-CHECK] Check Files 1895 of 5294 35.80% Furthest Segment: 1894 ````
Author
Owner

@JKamsker commented on GitHub (Jan 12, 2022):

Related: https://github.com/Mbucari/AAXClean/issues/8

Kinda found out why this error occurs: FFMPEG doesnt like most audiobooks produced by this library

@JKamsker commented on GitHub (Jan 12, 2022): Related: https://github.com/Mbucari/AAXClean/issues/8 Kinda found out why this error occurs: FFMPEG doesnt like most audiobooks produced by this library
Author
Owner

@advplyr commented on GitHub (Jan 13, 2022):

Does the other audiobook eventually start playing? Or does the next audiobook never play?

@advplyr commented on GitHub (Jan 13, 2022): Does the other audiobook eventually start playing? Or does the next audiobook never play?
Author
Owner

@JKamsker commented on GitHub (Jan 13, 2022):

No. Its gone after that.
Reloading the site does solve the issue usually

@JKamsker commented on GitHub (Jan 13, 2022): No. Its gone after that. Reloading the site does solve the issue usually
Author
Owner

@advplyr commented on GitHub (Jan 13, 2022):

This is only with some audiobooks or with all of them?
So you can only change audiobooks by closing the current stream?

@advplyr commented on GitHub (Jan 13, 2022): This is only with some audiobooks or with all of them? So you can only change audiobooks by closing the current stream?
Author
Owner

@JKamsker commented on GitHub (Jan 16, 2022):

Sorry just returned from a vacation.
I accidently deleted the old audiobooks and now using a different decoder for my other project which produces the m4b's. Now it seems to work.

Ill close it for now and reopen if the error reoccurs.

@JKamsker commented on GitHub (Jan 16, 2022): Sorry just returned from a vacation. I accidently deleted the old audiobooks and now using a different decoder for my other project which produces the m4b's. Now it seems to work. Ill close it for now and reopen if the error reoccurs.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#173