[Bug]: audiobook download failed due to ffmpeg error #239

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

Originally created by @mmuenker on GitHub (Mar 15, 2022).

Describe the issue

The download for multi part audio books failed due to the following ffmpeg error:

[2022-03-15T16:05:16.574Z]  INFO: [DownloadWorker] FFMPEG concat started with command: ffmpeg -safe 0 -f concat -i /metadata/downloads/dl_1zzigh5zm933gzbllz/files.txt -y -loglevel error -max_muxing_queue_size 1000 -c:a copy -f mp4 /metadata/downloads/dl_1zzigh5zm933gzbllz/file.m4b

[2022-03-15T16:05:18.082Z] ERROR: [DownloadWorker] Ffmpeg Stderr: Too many packets buffered for output stream 0:1.

[2022-03-15T16:05:18.171Z] ERROR: [DownloadWorker] Ffmpeg Stderr: 

[2022-03-15T16:05:18.171Z] ERROR: [DownloadWorker] Ffmpeg Err: ffmpeg exited with code 1: Too many packets buffered for output stream 0:1.

I am not an expert on ffmpeg. With quick search I found this solution from stack overflow:

Set the max_muxing_queue_size to high value.

In my case I could use the ffmpeg command if max_muxing_queue_size was set to 9999999.

Source: https://stackoverflow.com/questions/49686244/ffmpeg-too-many-packets-buffered-for-output-stream-01

Steps to reproduce the issue

  1. Add a audio book split into multiple m4d files (in my case 151 files)
  2. Try to download the audio book throw the Android App

Audiobookshelf version

v1.7.2

How are you running audiobookshelf?

Docker

Originally created by @mmuenker on GitHub (Mar 15, 2022). ### Describe the issue The download for multi part audio books failed due to the following ffmpeg error: ``` [2022-03-15T16:05:16.574Z] INFO: [DownloadWorker] FFMPEG concat started with command: ffmpeg -safe 0 -f concat -i /metadata/downloads/dl_1zzigh5zm933gzbllz/files.txt -y -loglevel error -max_muxing_queue_size 1000 -c:a copy -f mp4 /metadata/downloads/dl_1zzigh5zm933gzbllz/file.m4b [2022-03-15T16:05:18.082Z] ERROR: [DownloadWorker] Ffmpeg Stderr: Too many packets buffered for output stream 0:1. [2022-03-15T16:05:18.171Z] ERROR: [DownloadWorker] Ffmpeg Stderr: [2022-03-15T16:05:18.171Z] ERROR: [DownloadWorker] Ffmpeg Err: ffmpeg exited with code 1: Too many packets buffered for output stream 0:1. ``` I am not an expert on ffmpeg. With quick search I found this solution from stack overflow: Set the `max_muxing_queue_size` to high value. In my case I could use the ffmpeg command if `max_muxing_queue_size` was set to 9999999. Source: https://stackoverflow.com/questions/49686244/ffmpeg-too-many-packets-buffered-for-output-stream-01 ### Steps to reproduce the issue 1. Add a audio book split into multiple m4d files (in my case 151 files) 2. Try to download the audio book throw the Android App ### Audiobookshelf version v1.7.2 ### How are you running audiobookshelf? Docker
adam added the bug label 2026-04-24 23:02:12 +02:00
adam closed this issue 2026-04-24 23:02:12 +02:00
Author
Owner

@advplyr commented on GitHub (Apr 25, 2022):

The latest versions of server v2 and up and latest mobile apps v0.9.41-beta and up no longer concatenate audio files.

All audio files are downloaded now.

@advplyr commented on GitHub (Apr 25, 2022): The latest versions of server v2 and up and latest mobile apps v0.9.41-beta and up no longer concatenate audio files. All audio files are downloaded now.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#239