Skip to content

fix(server): better embedded artwork extraction with ffmpeg #3860

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 20, 2025

Conversation

deluan
Copy link
Member

@deluan deluan commented Mar 20, 2025

This pull request includes a change to the core/ffmpeg/ffmpeg.go file to improve the command used for extracting images with FFmpeg.

  • core/ffmpeg/ffmpeg.go: Modified the extractImageCmd to use -map 0:v -map -0:V instead of -an for better video stream selection.

    • -map 0:v selects all video streams from the input
    • -map -0:V excludes all "main" video streams (capital V)

This combination effectively selects only the attached pictures.

Fixes #3859

- `-map 0:v` selects all video streams from the input
- `-map -0:V` excludes all "main" video streams (capital V)

This combination effectively selects only the attached pictures

Signed-off-by: Deluan <deluan@navidrome.org>
@deluan deluan merged commit 59ece40 into master Mar 20, 2025
34 checks passed
@deluan deluan deleted the fix-ffmpeg-artwork-extraction branch March 20, 2025 23:26
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Song cover art endpoint returning MPEG-4 file
1 participant