Navidrome: Cannot extract album art from FLAC files with both ID3 tags and Vorbis annotations

Created on 21 May 2020  路  13Comments  路  Source: deluan/navidrome

Hi Deluan !

I'm facing this issue where an album art isn't showing in my library :

https://i.imgur.com/tZcocHD.png

This album art is in the album folder as a cover.jpg image AND is embed in the id3 tags.
This is the only album to have this issue, I manage all my albums with BlissHQ and everything is ok.

I don't understand why every other albums are fine except this one.

Using v 0.19.0 docker container

blocked bug

Most helpful comment

Support for cover.jpg (and other files/formats) was implemented in #350. I'll keep this open to track the main issue here: Cannot extract album art from FLAC files with both ID3 tags and Vorbis annotations: https://github.com/dhowden/tag/issues/58#issuecomment-632337098

All 13 comments

What is the type of the files? mp3? Can you send me one of the files?

(Also just to be clear: Navidrome only gets embedded album art, it does not read album art from external files (cover.jpg))

That are .flac files.

Here is a file
https://droppy.nasdoury.ovh/$/OwUtb

After analyzing your file, seems that it contains both ID3 and FLAC tags. The picture is embedded in the FLAC tags, but not in the ID3 tags.

The issue is that the upstream library used to extract the album art is giving precedence to the ID3 tags, and as a result cannot find the embedded art.

Can you confirm this and remove the ID3 tags?

Seems to be related to this: https://github.com/dhowden/tag/issues/58

As I'm using only Bliss to tag my files, I don't know how to embed the cover in the id3, or remove the id3 ^^
Everything is automated !

If you are comfortable with the command line, you can use ffmpeg to remove tags: https://stackoverflow.com/a/20202233/653632.

Another thing you could try is to remove all tags with Bliss and add it back. If ti does not have an option to remove tags, you can use a tag editor for your platform (maybe Musicbrainz Picard) and remove all tags, then try to tag again with Bliss

I'll have a look later this evening and give you a feedback.
Thanks for the advice !

I just tried 2 things :

  • remove the tags with Picard > then re-add them with Bliss
  • Re-download the album

The album art is still missing :(

No chances Navidrome would look for embed ID3 cover art > if empty > look for a cover.jpg file ?

Yes i've been thinking of supporting the cover.jpg file in albums, just don't have an issue opened for that yet, so I'll keep this open to track that. Or maybe until the upstream library fix the issue.

Great 馃憤 thanks a lot

Support for cover.jpg (and other files/formats) was implemented in #350. I'll keep this open to track the main issue here: Cannot extract album art from FLAC files with both ID3 tags and Vorbis annotations: https://github.com/dhowden/tag/issues/58#issuecomment-632337098

Hi again, not sure if this is worth opening a new issue.

After now having updated to 0.24, Navidrome does not seem to fetch external Cover Art files for me and shows the default blue vinyl. Most of my collection consists of FLAC files with no embedded image files, but cover.jpg files in the album directories. The albums with embedded artworks show up fine.

For further testing, I also set the ImageCache Option to 0 and and tried ND_COVERARTPRIORITY: "cover.*, folder.*, embedded" as well, but that did not help.
Got an idea what could help?

EDIT: Just seeing this: https://github.com/deluan/navidrome/pull/350#issuecomment-649147864 Guess the issue comes from that?

Typical request would look like this:

time="2020-07-13T11:39:22Z" level=debug msg="API: New request /rest/getCoverArt" client=NavidromeUI requestId=7975fc3601e2/0L9hnqby8i-000041 username=navidrome_user version=1.8.0
time="2020-07-13T11:39:22Z" level=trace msg="SQL: `SELECT * FROM user WHERE user_name = ?`" args="['navidrome_user']" elapsedTime="577.511碌s" requestId=7975fc3601e2/0L9hnqby8i-000041 rowsAffected=1
time="2020-07-13T11:39:22Z" level=trace msg="Looking for media file art" id=not_found requestId=7975fc3601e2/0L9hnqby8i-000041
time="2020-07-13T11:39:22Z" level=trace msg="SQL: `SELECT starred, starred_at, play_count, play_date, rating, media_file.* FROM media_file LEFT JOIN annotation on (annotation.item_id = media_file.id AND annotation.item_type = 'media_file' AND annotation.user_id = 'ab581119-f9ce-495c-bbda-68810307e4e5') WHERE id = ?`" args="['not_found']" elapsedTime="607.437碌s" requestId=7975fc3601e2/0L9hnqby8i-000041 rowsAffected=0
time="2020-07-13T11:39:22Z" level=trace msg="Retrieving cover art from file" error="data not found" path= requestId=7975fc3601e2/0L9hnqby8i-000041 size=0
time="2020-07-13T11:39:22Z" level=warning msg="Error extracting image" error="empty path given for cover" path= requestId=7975fc3601e2/0L9hnqby8i-000041 size=0
time="2020-07-13T11:39:22Z" level=debug msg="HTTP: GET http://127.0.0.1:82/rest/getCoverArt?u=navidrome_user&t=61774f36c02222268740133d0a2222a3&s=1594639626716&f=json&v=1.8.0&c=NavidromeUI&id=not_found" elapsedTime=9.986888ms httpStatus=200 remoteAddr=88.152.185.106 requestId=7975fc3601e2/0L9hnqby8i-000041 responseSize=378613 userAgent="Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

@TheForcer, the CoverArtPriority should have globs to match the external files, like this: ND_COVERARTPRIORITY: "cover.*, folder.*, embedded" (with the asterisks)

If that does not solve your issue, please move the report to a new issue, and let's continue there. Thanks

Was this page helpful?
0 / 5 - 0 ratings