[Bug]: m4b merge output file has no audio stream when input files are also m4b #633

Closed
opened 2026-04-24 23:15:06 +02:00 by adam · 1 comment
Owner

Originally created by @listy-bit on GitHub (Sep 11, 2022).

Describe the issue

Books made up of multiple m4b files don't merge correctly.

Log:
[DownloadWorker] FFMPEG concat started with command: ffmpeg -safe 0 -f concat -i /metadata/downloads/abmerge_425ih6jxamcdkh3k1e/files.txt -i /metadata/downloads/abmerge_425ih6jxamcdkh3k1e/metadata.txt -f image2pipe -i /audiobooks/The Colour of Magic/cover.jpg -y -loglevel error -max_muxing_queue_size 1000 -c:a copy -map_metadata 1 -c:v copy -map 2:v -f mp4 /metadata/downloads/abmerge_425ih6jxamcdkh3k1e/The Colour of Magic.m4b

The output file (600kb) contains the metadata, chapters, and cover art, but no audio data at all.

Steps to reproduce the issue

  1. Add book consisting of multiple m4b files
  2. Start m4b merge

Audiobookshelf version

2.1.5

How are you running audiobookshelf?

Docker

Originally created by @listy-bit on GitHub (Sep 11, 2022). ### Describe the issue Books made up of multiple m4b files don't merge correctly. Log: `[DownloadWorker] FFMPEG concat started with command: ffmpeg -safe 0 -f concat -i /metadata/downloads/abmerge_425ih6jxamcdkh3k1e/files.txt -i /metadata/downloads/abmerge_425ih6jxamcdkh3k1e/metadata.txt -f image2pipe -i /audiobooks/The Colour of Magic/cover.jpg -y -loglevel error -max_muxing_queue_size 1000 -c:a copy -map_metadata 1 -c:v copy -map 2:v -f mp4 /metadata/downloads/abmerge_425ih6jxamcdkh3k1e/The Colour of Magic.m4b` The output file (600kb) contains the metadata, chapters, and cover art, but no audio data at all. ### Steps to reproduce the issue 1. Add book consisting of multiple m4b files 2. Start m4b merge ### Audiobookshelf version 2.1.5 ### How are you running audiobookshelf? Docker
adam added the bugunable to reproduce labels 2026-04-24 23:15:06 +02:00
adam closed this issue 2026-04-24 23:15:06 +02:00
Author
Owner

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

Please test this on the latest server version 2.2.0. I wasn't able to reproduce this, multiple m4b audiobook merged correctly.

@advplyr commented on GitHub (Oct 6, 2022): Please test this on the latest server version 2.2.0. I wasn't able to reproduce this, multiple m4b audiobook merged correctly.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#633