Download "*.m4b" failed - Decoder (codec none) not found for input stream #2:0 #171

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

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

The audiobook consits of a single m4b file

image

[2022-01-09T23:37:28.044Z]  INFO: Start Download for ab_671s8df580u6bb7ruv - DownloadId: dl_asqxtpbvt57s6e497m - /metadata/downloads/dl_asqxtpbvt57s6e497m
[2022-01-09T23:37:28.084Z]  INFO: Concat m4b's use -f mp4
[2022-01-09T23:37:28.929Z]  INFO: [DownloadWorker] FFMPEG concat started with command: ffmpeg -f mp4 -i /audible/AUTHOR/SERIES/SERIESPART/TITLE.m4b -i /metadata/downloads/dl_asqxtpbvt57s6e497m/metadata.txt -f image2pipe -i /audible/AUTHOR/SERIES/SERIESPART/TITLE.m4b -y -loglevel error -max_muxing_queue_size 1000 -c:a copy -map_metadata 1 -vf [2:v]crop=trunc(iw/2)*2:trunc(ih/2)*2 -map 2:v -f mp4 /metadata/downloads/dl_asqxtpbvt57s6e497m/Alle diese Welten.m4b
[2022-01-09T23:37:29.260Z] ERROR: [DownloadWorker] Ffmpeg Stderr: [aac @ 0x7fedc149bb80] Reserved bit set.
[2022-01-09T23:37:29.263Z] ERROR: [DownloadWorker] Ffmpeg Stderr: [aac @ 0x7fedc149bb80] Prediction is not allowed in AAC-LC.
[2022-01-09T23:37:30.485Z] ERROR: [DownloadWorker] Ffmpeg Stderr: Decoder (codec none) not found for input stream #2:0
[2022-01-09T23:37:30.553Z] ERROR: [DownloadWorker] Ffmpeg Stderr: 
[2022-01-09T23:37:30.555Z] ERROR: [DownloadWorker] Ffmpeg Err: ffmpeg exited with code 1: Decoder (codec none) not found for input stream #2:0

[2022-01-09T23:37:30.559Z]  INFO: [DownloadManager] Removing download dl_asqxtpbvt57s6e497m
[2022-01-09T23:37:30.567Z]  INFO: [DownloadManager] Deleted download /metadata/downloads/dl_asqxtpbvt57s6e497m
Originally created by @JKamsker on GitHub (Jan 10, 2022). The audiobook consits of a single m4b file ![image](https://user-images.githubusercontent.com/11245306/148706107-766e77ad-880c-4acb-9afd-372198f4abb1.png) ```` [2022-01-09T23:37:28.044Z] INFO: Start Download for ab_671s8df580u6bb7ruv - DownloadId: dl_asqxtpbvt57s6e497m - /metadata/downloads/dl_asqxtpbvt57s6e497m [2022-01-09T23:37:28.084Z] INFO: Concat m4b's use -f mp4 [2022-01-09T23:37:28.929Z] INFO: [DownloadWorker] FFMPEG concat started with command: ffmpeg -f mp4 -i /audible/AUTHOR/SERIES/SERIESPART/TITLE.m4b -i /metadata/downloads/dl_asqxtpbvt57s6e497m/metadata.txt -f image2pipe -i /audible/AUTHOR/SERIES/SERIESPART/TITLE.m4b -y -loglevel error -max_muxing_queue_size 1000 -c:a copy -map_metadata 1 -vf [2:v]crop=trunc(iw/2)*2:trunc(ih/2)*2 -map 2:v -f mp4 /metadata/downloads/dl_asqxtpbvt57s6e497m/Alle diese Welten.m4b [2022-01-09T23:37:29.260Z] ERROR: [DownloadWorker] Ffmpeg Stderr: [aac @ 0x7fedc149bb80] Reserved bit set. [2022-01-09T23:37:29.263Z] ERROR: [DownloadWorker] Ffmpeg Stderr: [aac @ 0x7fedc149bb80] Prediction is not allowed in AAC-LC. [2022-01-09T23:37:30.485Z] ERROR: [DownloadWorker] Ffmpeg Stderr: Decoder (codec none) not found for input stream #2:0 [2022-01-09T23:37:30.553Z] ERROR: [DownloadWorker] Ffmpeg Stderr: [2022-01-09T23:37:30.555Z] ERROR: [DownloadWorker] Ffmpeg Err: ffmpeg exited with code 1: Decoder (codec none) not found for input stream #2:0 [2022-01-09T23:37:30.559Z] INFO: [DownloadManager] Removing download dl_asqxtpbvt57s6e497m [2022-01-09T23:37:30.567Z] INFO: [DownloadManager] Deleted download /metadata/downloads/dl_asqxtpbvt57s6e497m ````
adam closed this issue 2026-04-24 23:00:00 +02:00
Author
Owner

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

That ffmpeg command is odd because it lists the m4b file twice. The second m4b should be an image file, are you sure you didn't copy that over wrong?

@advplyr commented on GitHub (Jan 10, 2022): That ffmpeg command is odd because it lists the m4b file twice. The second m4b should be an image file, are you sure you didn't copy that over wrong?
Author
Owner

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

Here another one (Every of my singleparts seem to fail)

[2022-01-21T23:14:53.691Z]  INFO: Start Download for ab_fqve6ckzm3y9csd798 - DownloadId: dl_bla5cj5exrah3j91hq - /metadata/downloads/dl_bla5cj5exrah3j91hq
[2022-01-21T23:14:53.695Z]  INFO: Concat m4b's use -f mp4
[2022-01-21T23:14:54.103Z]  INFO: [DownloadWorker] FFMPEG concat started with command: ffmpeg -f mp4 -i /audiobooks/Eins A Medien GmbH/Perry Rhodan NEO/Perry Rhodan NEO 01 - Sternenstaub/Perry Rhodan Neo 01 - Sternenstaub.m4b -i /metadata/downloads/dl_bla5cj5exrah3j91hq/metadata.txt -f image2pipe -i /audiobooks/Eins A Medien GmbH/Perry Rhodan NEO/Perry Rhodan NEO 01 - Sternenstaub/Perry Rhodan Neo 01 - Sternenstaub.m4b -y -loglevel error -max_muxing_queue_size 1000 -c:a copy -map_metadata 1 -vf [2:v]crop=trunc(iw/2)*2:trunc(ih/2)*2 -map 2:v -f mp4 /metadata/downloads/dl_bla5cj5exrah3j91hq/Perry Rhodan NEO 01 - Sternenstaub.m4b
[2022-01-21T23:14:54.659Z] ERROR: [DownloadWorker] Ffmpeg Stderr: Decoder (codec none) not found for input stream #2:0
[2022-01-21T23:14:54.690Z] ERROR: [DownloadWorker] Ffmpeg Stderr: 
[2022-01-21T23:14:54.693Z] ERROR: [DownloadWorker] Ffmpeg Err: ffmpeg exited with code 1: Decoder (codec none) not found for input stream #2:0

[2022-01-21T23:14:54.695Z]  INFO: [DownloadManager] Removing download dl_bla5cj5exrah3j91hq
[2022-01-21T23:14:54.701Z]  INFO: [DownloadManager] Deleted download /metadata/downloads/dl_bla5cj5exrah3j91hq

This one is 1:1 what i got in the logs

@JKamsker commented on GitHub (Jan 22, 2022): Here another one (Every of my singleparts seem to fail) ``` [2022-01-21T23:14:53.691Z] INFO: Start Download for ab_fqve6ckzm3y9csd798 - DownloadId: dl_bla5cj5exrah3j91hq - /metadata/downloads/dl_bla5cj5exrah3j91hq [2022-01-21T23:14:53.695Z] INFO: Concat m4b's use -f mp4 [2022-01-21T23:14:54.103Z] INFO: [DownloadWorker] FFMPEG concat started with command: ffmpeg -f mp4 -i /audiobooks/Eins A Medien GmbH/Perry Rhodan NEO/Perry Rhodan NEO 01 - Sternenstaub/Perry Rhodan Neo 01 - Sternenstaub.m4b -i /metadata/downloads/dl_bla5cj5exrah3j91hq/metadata.txt -f image2pipe -i /audiobooks/Eins A Medien GmbH/Perry Rhodan NEO/Perry Rhodan NEO 01 - Sternenstaub/Perry Rhodan Neo 01 - Sternenstaub.m4b -y -loglevel error -max_muxing_queue_size 1000 -c:a copy -map_metadata 1 -vf [2:v]crop=trunc(iw/2)*2:trunc(ih/2)*2 -map 2:v -f mp4 /metadata/downloads/dl_bla5cj5exrah3j91hq/Perry Rhodan NEO 01 - Sternenstaub.m4b [2022-01-21T23:14:54.659Z] ERROR: [DownloadWorker] Ffmpeg Stderr: Decoder (codec none) not found for input stream #2:0 [2022-01-21T23:14:54.690Z] ERROR: [DownloadWorker] Ffmpeg Stderr: [2022-01-21T23:14:54.693Z] ERROR: [DownloadWorker] Ffmpeg Err: ffmpeg exited with code 1: Decoder (codec none) not found for input stream #2:0 [2022-01-21T23:14:54.695Z] INFO: [DownloadManager] Removing download dl_bla5cj5exrah3j91hq [2022-01-21T23:14:54.701Z] INFO: [DownloadManager] Deleted download /metadata/downloads/dl_bla5cj5exrah3j91hq ``` This one is 1:1 what i got in the logs
Author
Owner

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

I see what the issue is. I replaced the paths with what they are supposed to be wrapped in < >
The <IMAGE_FILE_PATH> in your case is a .m4b file not an image file. This may be a bug.

ffmpeg -f mp4 -i <AUDIOBOOK_FILE_PATH> -i <METADATA_FLIE_PATH> -f image2pipe -i <IMAGE_FILE_PATH> -y -loglevel error -max_muxing_queue_size 1000 -c:a copy -map_metadata 1 -vf [2:v]crop=trunc(iw/2)*2:trunc(ih/2)*2 -map 2:v -f mp4 <OUTPUT_FILE_PATH>

In this example I'm concat multiple files but you can still see the image2pipe input a .jpg.

ffmpeg -safe 0 -f concat -i /metadata/downloads/dl_yosnvn1p8wnrc3sl5b/files.txt -i /metadata/downloads/dl_yosnvn1p8wnrc3sl5b/metadata.txt -f image2pipe -i /audiobooks/Scott Horton/Fool's Errand/cover.jpg -y -loglevel error -map 0:a -acodec aac -ac 2 -b:a 64k -id3v2_version 3 -map_metadata 1 -vf [2:v]crop=trunc(iw/2)*2:trunc(ih/2)*2 -map 2:v -f mp4 /metadata/downloads/dl_yosnvn1p8wnrc3sl5b/Fool's Errand.m4b
@advplyr commented on GitHub (Jan 29, 2022): I see what the issue is. I replaced the paths with what they are supposed to be wrapped in < > The <IMAGE_FILE_PATH> in your case is a .m4b file not an image file. This may be a bug. ``` ffmpeg -f mp4 -i <AUDIOBOOK_FILE_PATH> -i <METADATA_FLIE_PATH> -f image2pipe -i <IMAGE_FILE_PATH> -y -loglevel error -max_muxing_queue_size 1000 -c:a copy -map_metadata 1 -vf [2:v]crop=trunc(iw/2)*2:trunc(ih/2)*2 -map 2:v -f mp4 <OUTPUT_FILE_PATH> ``` In this example I'm concat multiple files but you can still see the image2pipe input a .jpg. ``` ffmpeg -safe 0 -f concat -i /metadata/downloads/dl_yosnvn1p8wnrc3sl5b/files.txt -i /metadata/downloads/dl_yosnvn1p8wnrc3sl5b/metadata.txt -f image2pipe -i /audiobooks/Scott Horton/Fool's Errand/cover.jpg -y -loglevel error -map 0:a -acodec aac -ac 2 -b:a 64k -id3v2_version 3 -map_metadata 1 -vf [2:v]crop=trunc(iw/2)*2:trunc(ih/2)*2 -map 2:v -f mp4 /metadata/downloads/dl_yosnvn1p8wnrc3sl5b/Fool's Errand.m4b ```
Author
Owner

@ghost commented on GitHub (Jan 31, 2022):

I am facing the same error but with different error
[2022-01-31T15:12:29.517Z] INFO: [DownloadManager] Removing download dl_vql7ogg10r7klymqwc [2022-01-31T15:12:29.519Z] INFO: [DownloadManager] Deleted download /metadata/downloads/dl_vql7ogg10r7klymqwc

@ghost commented on GitHub (Jan 31, 2022): I am facing the same error but with different error `[2022-01-31T15:12:29.517Z] INFO: [DownloadManager] Removing download dl_vql7ogg10r7klymqwc [2022-01-31T15:12:29.519Z] INFO: [DownloadManager] Deleted download /metadata/downloads/dl_vql7ogg10r7klymqwc`
Author
Owner

@ghost commented on GitHub (Feb 1, 2022):

I am facing the same error but with different error
[2022-01-31T15:12:29.517Z] INFO: [DownloadManager] Removing download dl_vql7ogg10r7klymqwc [2022-01-31T15:12:29.519Z] INFO: [DownloadManager] Deleted download /metadata/downloads/dl_vql7ogg10r7klymqwc

Solution 01: Find matching metadata from online and complete metadata. Then try again

@ghost commented on GitHub (Feb 1, 2022): > I am facing the same error but with different error > `[2022-01-31T15:12:29.517Z] INFO: [DownloadManager] Removing download dl_vql7ogg10r7klymqwc > [2022-01-31T15:12:29.519Z] INFO: [DownloadManager] Deleted download /metadata/downloads/dl_vql7ogg10r7klymqwc` Solution 01: Find matching metadata from online and complete metadata. Then try again
Author
Owner

@advplyr commented on GitHub (Feb 1, 2022):

That's not the error, the error would be shown before the download gets removed.

@advplyr commented on GitHub (Feb 1, 2022): That's not the error, the error would be shown before the download gets removed.
Author
Owner

@jcrmit commented on GitHub (Feb 4, 2022):

Hey @advplyr - I get a similar outcome when trying to download a single-file-mp3...

image

But can download the MP3 directly fine...

image

Don't know if that assist with troubleshooting.

@jcrmit commented on GitHub (Feb 4, 2022): Hey @advplyr - I get a similar outcome when trying to download a single-file-mp3... ![image](https://user-images.githubusercontent.com/49168770/152470487-10e1a934-62fd-431a-85dc-859e6f1e3c65.png) But can download the MP3 directly fine... ![image](https://user-images.githubusercontent.com/49168770/152470607-ec7fa9b1-e409-4f3a-81db-f8ca599f36a6.png) Don't know if that assist with troubleshooting.
Author
Owner

@advplyr commented on GitHub (May 30, 2022):

Are you still experiencing this issue?

@advplyr commented on GitHub (May 30, 2022): Are you still experiencing this issue?
Author
Owner

@JKamsker commented on GitHub (Jun 1, 2022):

Havent checked it since, sry.
Wont have time any time soon so you can close it for now and i reopen it if it becomes a problem in the future.

@JKamsker commented on GitHub (Jun 1, 2022): Havent checked it since, sry. Wont have time any time soon so you can close it for now and i reopen it if it becomes a problem in the future.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#171