[PR #3529] [MERGED] Fix "Extract Cover Error" for files with multiple embedded covers #4003

Closed
opened 2026-04-25 00:17:55 +02:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/advplyr/audiobookshelf/pull/3529
Author: @asoluter
Created: 10/17/2024
Status: Merged
Merged: 10/17/2024
Merged by: @advplyr

Base: masterHead: patch-1


📝 Commits (1)

  • d668462 Fix Extract Cover Error for files with multiple embedded covers

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 server/utils/ffmpegHelpers.js (+1 -1)

📄 Description

I've encountered the same issue as in https://github.com/advplyr/audiobookshelf/issues/2316 for files with multiple embedded covers (ex. Front and Back covers for disks)

2024-10-17 00:02:33.221455-07:00[2024-10-17 00:02:33.221] ERROR: [FfmpegHelpers] Extract Cover Error Error: ffmpeg exited with code 234: frame=    1 fps=0.0 q=11.2 Lq=6.8 size=N/A time=00:00:00.00 bitrate=N/A speed=   0x    
2024-10-17 00:02:33.221494-07:00Conversion failed!

The issue comes from the input video stream selection which is not limited to a single video stream for ffmpeg, leading to the following error:

[image2 @ 000001c697da0440] The specified filename 'out.jpg' does not contain an image sequence pattern or a pattern is invalid.
[image2 @ 000001c697da0440] Use a pattern such as %03d for an image sequence or use the -update option (with -frames:v 1 if needed) to write a single image.
[image2 @ 000001c697da0440] Cannot write more than one file with the same name. Are you missing the -update option or a sequence pattern?

The proposed change limits the input selection to a single video stream, fixing the error. (Good explanation here https://stackoverflow.com/a/63928441)


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/advplyr/audiobookshelf/pull/3529 **Author:** [@asoluter](https://github.com/asoluter) **Created:** 10/17/2024 **Status:** ✅ Merged **Merged:** 10/17/2024 **Merged by:** [@advplyr](https://github.com/advplyr) **Base:** `master` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`d668462`](https://github.com/advplyr/audiobookshelf/commit/d6684625291507582d1c14419311e8e5239f4804) Fix Extract Cover Error for files with multiple embedded covers ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `server/utils/ffmpegHelpers.js` (+1 -1) </details> ### 📄 Description I've encountered the same issue as in https://github.com/advplyr/audiobookshelf/issues/2316 for files with multiple embedded covers (ex. Front and Back covers for disks) ``` 2024-10-17 00:02:33.221455-07:00[2024-10-17 00:02:33.221] ERROR: [FfmpegHelpers] Extract Cover Error Error: ffmpeg exited with code 234: frame= 1 fps=0.0 q=11.2 Lq=6.8 size=N/A time=00:00:00.00 bitrate=N/A speed= 0x 2024-10-17 00:02:33.221494-07:00Conversion failed! ``` The issue comes from the input video stream selection which is not limited to a single video stream for ffmpeg, leading to the following error: ``` [image2 @ 000001c697da0440] The specified filename 'out.jpg' does not contain an image sequence pattern or a pattern is invalid. [image2 @ 000001c697da0440] Use a pattern such as %03d for an image sequence or use the -update option (with -frames:v 1 if needed) to write a single image. [image2 @ 000001c697da0440] Cannot write more than one file with the same name. Are you missing the -update option or a sequence pattern? ``` The proposed change limits the input selection to a single video stream, fixing the error. (Good explanation here https://stackoverflow.com/a/63928441) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2026-04-25 00:17:55 +02:00
adam closed this issue 2026-04-25 00:17:55 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#4003