[Bug]: New AudioBooks not added when AudioScanner/Lookup Errors #2951

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

Originally created by @amla-nathan on GitHub (Aug 15, 2025).

What happened?

The audiobooks do not appear:
Error in logs:
[AudioFileScanner] Invalid data found when processing input ...
[Audible] ASIN search error [AxiosError: Request failed with status code 500] ...
[AudioFileScanner] SyntaxError: Expected property name or '}' in JSON at position 2 :...

This does not happen with all books

And these do not reappear on forced library re-scan

What did you expect to happen?

Audiobook should be visible in libraries

Steps to reproduce the issue

Without supplying actual files not sure how to reproduce
But when the above errors occur these disappear for all time.
The audio files are not corrupted

Audiobookshelf version

v2.28.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

{"timestamp":"2025-08-15 12:24:08.644","source":"AudioFileScanner.js:160","message":"[AudioFileScanner] SyntaxError: Expected property name or '}' in JSON at position 2 : \"/audiobooks/D/Douglas Michaels/My Homemade Spaceship, Book 2 [B0FM552CC9]/My Homemade Spaceship, Book 2 [B0FM552CC9].m4b\"","levelName":"ERROR","level":4}
{"timestamp":"2025-08-15 12:37:57.639","source":"AudioFileScanner.js:160","message":"[AudioFileScanner] Invalid data found when processing input : \"/audiobooks/J/John Wyndham/Stowaway to Mars (Unabridged)/Stowaway to Mars (Unabridged).m4b\"","levelName":"ERROR","level":4}

Additional Notes

No response

Originally created by @amla-nathan on GitHub (Aug 15, 2025). ### What happened? The audiobooks do not appear: Error in logs: `[AudioFileScanner] Invalid data found when processing input ...` `[Audible] ASIN search error [AxiosError: Request failed with status code 500] ...` `[AudioFileScanner] SyntaxError: Expected property name or '}' in JSON at position 2 :...` This does not happen with all books And these do not reappear on forced library re-scan ### What did you expect to happen? Audiobook should be visible in libraries ### Steps to reproduce the issue Without supplying actual files not sure how to reproduce But when the above errors occur these disappear for all time. The audio files are not corrupted ### Audiobookshelf version v2.28.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 {"timestamp":"2025-08-15 12:24:08.644","source":"AudioFileScanner.js:160","message":"[AudioFileScanner] SyntaxError: Expected property name or '}' in JSON at position 2 : \"/audiobooks/D/Douglas Michaels/My Homemade Spaceship, Book 2 [B0FM552CC9]/My Homemade Spaceship, Book 2 [B0FM552CC9].m4b\"","levelName":"ERROR","level":4} {"timestamp":"2025-08-15 12:37:57.639","source":"AudioFileScanner.js:160","message":"[AudioFileScanner] Invalid data found when processing input : \"/audiobooks/J/John Wyndham/Stowaway to Mars (Unabridged)/Stowaway to Mars (Unabridged).m4b\"","levelName":"ERROR","level":4} ``` ### Additional Notes _No response_
adam added the bug label 2026-04-25 00:12:13 +02:00
adam closed this issue 2026-04-25 00:12:14 +02:00
Author
Owner

@nichwall commented on GitHub (Aug 15, 2025):

Looks like your audio files are either corrupt/need the metadata replaced, or you are running into xHE-AAC issues which will not be supported by Audiobookshelf out of the box. More information in
https://github.com/advplyr/audiobookshelf/issues/4236

@nichwall commented on GitHub (Aug 15, 2025): Looks like your audio files are either corrupt/need the metadata replaced, or you are running into xHE-AAC issues which will not be supported by Audiobookshelf out of the box. More information in https://github.com/advplyr/audiobookshelf/issues/4236
Author
Owner

@amla-nathan commented on GitHub (Aug 15, 2025):

... running into xHE-AAC issues which will not be supported by Audiobookshelf out of the box.

Running ffmpeg from within docker container ...

....
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f3106aaa600] stream 0, timescale not set
[aac @ 0x7f310258e980] Audio object type 42 is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f3106aaa600] Failed to open codec in avformat_find_stream_info
[aac @ 0x7f310258e980] Audio object type 42 is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f3106aaa600] Could not find codec parameters for stream 0 (Audio: aac (mp4a / 0x6134706D), 44100 Hz, 0 channels, fltp, 109 kb/s): unspecified number of channels
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
[aist#0:0/aac @ 0x7f31008a51c0] Guessed Channel Layout: stereo
@amla-nathan commented on GitHub (Aug 15, 2025): ... running into xHE-AAC issues which will not be supported by Audiobookshelf out of the box. Running ffmpeg from within docker container ... ```shell .... [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f3106aaa600] stream 0, timescale not set [aac @ 0x7f310258e980] Audio object type 42 is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f3106aaa600] Failed to open codec in avformat_find_stream_info [aac @ 0x7f310258e980] Audio object type 42 is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f3106aaa600] Could not find codec parameters for stream 0 (Audio: aac (mp4a / 0x6134706D), 44100 Hz, 0 channels, fltp, 109 kb/s): unspecified number of channels Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options [aist#0:0/aac @ 0x7f31008a51c0] Guessed Channel Layout: stereo ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#2951