Jump to content

Embedded Album Art in FLAC Files Not Being Used


Recommended Posts

Posted

It doesn't appear that album art embedded in FLAC files is being used by Emby. I have all the MusicAlbum Image Fetchers disabled and the Image Extractor Audio Image Fetcher enabled in the library, but it still appears that Emby is pulling album covers from the internet.

 

The ffprobe of one of the songs is below. All files had their tags purged and redone by Musicbrainz Picard. Album art was added through Kid3.

ffprobe version n4.2.2 Copyright (c) 2007-2019 the FFmpeg developers
  built with gcc 9.2.0 (GCC)
  configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvdec --enable-nvenc --enable-omx --enable-shared --enable-version3
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
Input #0, flac, from '/mnt/nas/Music/Eminem/Encore/10 - Rain Man.flac':
  Metadata:
    MUSICBRAINZ_RELEASEGROUPID: 38a1cae8-d480-3a44-835a-19b0fe768813
    ORIGINALDATE    : 2004-11-12
    ORIGINALYEAR    : 2004
    RELEASETYPE     : album
    MUSICBRAINZ_ALBUMID: 2ac6ed8e-daf4-473e-925d-c366357049d3
    DATE            : 2004-11-12
    RELEASESTATUS   : official
    MUSICBRAINZ_ALBUMARTISTID: b95ce3ff-3d05-4e87-9e01-c97b66af13d4
    album_artist    : Eminem
    ALBUMARTISTSORT : Eminem
    LABEL           : Aftermath Entertainment;Goliath Entertainment;Interscope Records;Shady Records
    RELEASECOUNTRY  : US
    SCRIPT          : Latn
    ALBUM           : Encore
    TOTALDISCS      : 1
    TOTALTRACKS     : 20
    disc            : 1
    MEDIA           : CD
    MUSICBRAINZ_TRACKID: 728f0fad-cb61-4d71-a8e2-9d8e16047fd4
    ISRC            : USIR10400820
    MUSICBRAINZ_ARTISTID: b95ce3ff-3d05-4e87-9e01-c97b66af13d4
    ARTIST          : Eminem
    ARTISTSORT      : Eminem
    ARTISTS         : Eminem
    TITLE           : Rain Man
    MUSICBRAINZ_RELEASETRACKID: fc69f7bf-dc83-424c-8381-366e703252ec
    track           : 10
    GENRE           : Hip-Hop
    TRACKTOTAL      : 20
    DISCTOTAL       : 1
  Duration: 00:05:13.85, start: 0.000000, bitrate: 783 kb/s
    Stream #0:0: Audio: flac, 44100 Hz, stereo, s16
    Stream #0:1: Video: mjpeg (Progressive), yuvj444p(pc, bt470bg/unknown/unknown), 1000x1000 [SAR 1:1 DAR 1:1], 90k tbr, 90k tbn, 90k tbc (attached pic)
    Metadata:
      comment         : Cover (front)
      title           : encore-5397d76d4b742.jpg

Also attached a log of the first-time library scan

embyserver.txt

Posted

Hi @@kribby is any album art showing?

@@Luke When disabling all the MusicAlbum image fetchers and refreshing metadata (also making sure that I enable "replace existing images"), cover art that doesn't come from the FLAC file still appears. 

Posted

Is any album art showing?

Posted (edited)

Is any album art showing?

Yes, just not the one coming from the FLAC files. Apologies, I thought album art and cover art were interchangeable terms.

 

Is it possible I have a stale cache? I thought I read somewhere that the "Scan media library" task took care of purging album art and metadata of music not in the library anymore

Edited by kribby
Posted

Where did the current album art come from? Do you have image files inside your album folders?

Posted

Where did the current album art come from? Do you have image files inside your album folders?

I was using the musicbrainz and fanart fetchers before I decided to update all my music with high-resolution, embedded album art.

 

I'm not using any folder.jpg files in the album directories

Posted

Did you enable saving images to media folders? Because the art that was downloaded may have been saved locally in your folders if you did, and that would mean you'd need to delete those image files.

Posted

Did you enable saving images to media folders? Because the art that was downloaded may have been saved locally in your folders if you did, and that would mean you'd need to delete those image files.

there are no external images or nfo files in any of the folders that's being added to the music library

 

I decided to look in the log and I found a few interesting things:

2020-01-12 00:10:21.343 Debug App: Running MusicAlbumImageProvider for /mnt/music/Eminem/Encore
2020-01-12 00:10:21.346 Debug ProviderManager: Saving image to /config/metadata/library/50/50863170fd2c7cce4996392289848de0/folder.jpg

Why is MusicAlbumImageProvider running and saving something when I've disabled all 3 of its providers in the library options?

2020-01-12 00:10:19.567 Debug App: Running AudioImageProvider for /mnt/music/Eminem/Encore/09 - Paul (skit).flac
2020-01-12 00:10:19.568 Debug ProviderManager: Saving image to /config/metadata/library/82/82be11786ceccc048428d0c7bc962b34/poster.jpg

I'm assuming that AudioImageProvider is what extracts the images from a FLAC file. However, I looked at the checksums of both images listed above, and they are the exact same file. It's also not the album image that's embedded in the FLAC file

Posted

 

 

Why is MusicAlbumImageProvider running 

 

That's not an internet provider. It's a provider that sources from the songs as the last resort. There's no real need to ever disable it.

Posted

 

 

I'm assuming that AudioImageProvider is what extracts the images from a FLAC file. However, I looked at the checksums of both images listed above, and they are the exact same file. It's also not the album image that's embedded in the FLAC file

 

Well that's what it does, it extracts. Perhaps you have mulitple images embedded into the file?

Posted

That's not an internet provider. It's a provider that sources from the songs as the last resort. There's no real need to ever disable it.

That makes sense and explains why poster.jpg and folder.jpg were the same. So the online album images provider do appear that they are disabled during my testing

 

Well that's what it does, it extracts. Perhaps you have mulitple images embedded into the file?

I'm pretty sure I had Picard remove all tags (including ID3) when doing its thing. Does ffprobe show all tags without any arguments?

Posted (edited)

I created another Docker container just to test these Eminem albums in a new installation, and it looks like it pulled and used the embedded album art just fine, even with the online album art providers enabled.

 

So it looks like there's some leftover metadata and art that isn't being picked up by whatever cleanup tasks there are. Is there a way to manually remove all data that a library may have created?

Edited by kribby
Posted

I ended up just deleting everything in /cache and /metadata/library. Refreshed all metadata & images, and everything seems to be fine now. Definitely something was left over from past times I had a music library. If this is something you want to look at more, just let me know.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...