[Bug]: [MediaFileScanner] Invalid data found when processing input #675

Closed
opened 2026-04-24 23:16:41 +02:00 by adam · 4 comments
Owner

Originally created by @xela1 on GitHub (Oct 3, 2022).

Describe the issue

I've only just discovered audiobookshelf and I'm trying to load my existing audiobooks, some of my m4b files are failing to be detected with the following error:

[MediaFileScanner] Invalid data found when processing input : "/audiobooks/Media/Audiobooks/Peter May/The China Thrillers/1 - 2015 - The Firemaker/The Firemaker.m4b"
[Scanner] Library item has no media files "/audiobooks/Media/Audiobooks/Peter May/The China Thrillers/1 - 2015 - The Firemaker"

The files seem to play fine. Is there a way to scan them to see what the error is?

Steps to reproduce the issue

  1. Load file into Library
  2. Scan Library

Audiobookshelf version

v2.2.0

How are you running audiobookshelf?

Docker

Originally created by @xela1 on GitHub (Oct 3, 2022). ### Describe the issue I've only just discovered audiobookshelf and I'm trying to load my existing audiobooks, some of my m4b files are failing to be detected with the following error: [MediaFileScanner] Invalid data found when processing input : "/audiobooks/Media/Audiobooks/Peter May/The China Thrillers/1 - 2015 - The Firemaker/The Firemaker.m4b" [Scanner] Library item has no media files "/audiobooks/Media/Audiobooks/Peter May/The China Thrillers/1 - 2015 - The Firemaker" The files seem to play fine. Is there a way to scan them to see what the error is? ### Steps to reproduce the issue 1. Load file into Library 2. Scan Library ### Audiobookshelf version v2.2.0 ### How are you running audiobookshelf? Docker
adam added the bug label 2026-04-24 23:16:41 +02:00
adam closed this issue 2026-04-24 23:16:41 +02:00
Author
Owner

@xela1 commented on GitHub (Oct 3, 2022):

Looks like this might be bad metadata, will clean a few test files and close if that's the case

@xela1 commented on GitHub (Oct 3, 2022): Looks like this might be bad metadata, will clean a few test files and close if that's the case
Author
Owner

@advplyr commented on GitHub (Oct 3, 2022):

That's an error coming from ffprobe and it doesn't look like they are giving us anything useful to go off of. The audio file will likely need to be re-encoded.

@advplyr commented on GitHub (Oct 3, 2022): That's an error coming from ffprobe and it doesn't look like they are giving us anything useful to go off of. The audio file will likely need to be re-encoded.
Author
Owner

@xela1 commented on GitHub (Oct 3, 2022):

I've retagged a few and it's gone away, I'll monitor, but I'll close this for now, thanks for the quick response

@xela1 commented on GitHub (Oct 3, 2022): I've retagged a few and it's gone away, I'll monitor, but I'll close this for now, thanks for the quick response
Author
Owner

@xela1 commented on GitHub (Oct 12, 2022):

This cropped up again, just for reference for others, an easy fix is to remove and replace the metadata with exiftool:
exiftool -m -ext m4b -r -all= -tagsfromfile @ -all --iTunes:all -overwrite_original Filename.m4b

@xela1 commented on GitHub (Oct 12, 2022): This cropped up again, just for reference for others, an easy fix is to remove and replace the metadata with exiftool: exiftool -m -ext m4b -r -all= -tagsfromfile @ -all --iTunes:all -overwrite_original Filename.m4b
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#675