Nemo and music files ⋅ no pictures?


Is Nemo able to show « art-cover » of music files, instead of their generic mime-icon type ?

Here is what I can see through Nautilus ( UbUnity 16.04 ) for a music folder :

and that same folder in Nemo ( UBudgie 19.10 ) :

Yes, my music files almost all have « embedded » pictures ( thanks Sayonara ) because I love my music to keep its face whatever devices I play it.

Apparently upstream say that “ugly” package is needed

gstreamer1.0-plugins-ugly was already installed on my system.

No such thing as gstreamer1-plugins-ugly available.

Some things to do to « enable » thumbnails ?

But I have to admit i did not understand clearly what to do.

Use ffmpeg as a thumbnailer ? I think it’s already there :

django@ASGARD:~$ dpkg -l | grep thumbnail
ii  ffmpegthumbnailer                     2.1.1-0.2build2                     amd64        fast and lightweight video thumbnailer
ii  libffmpegthumbnailer4v5               2.1.1-0.2build2                     amd64        shared library for ffmpegthumbnailer
ii  libgdk-pixbuf2.0-bin                  2.40.0+dfsg-3                       amd64        GDK Pixbuf library (thumbnailer)

I edited as suggested the ffmpegthumbnailer.thumbnailer file but still no face for my mp3.

Is a newer version of ffmpeg needed ?

Did you test what happens if you manually run ffmpegthumbnailer against one of your mp3 files that you definitely have an embedded coverart?

ffmpegthumbnailer -i 'path-to-mp3.mp3' -o test.png
django@ASGARD:/media/DATA/Bibliothèque Musicale/Bibliothèque/Abd Al Malik/Gibral
tar$ ffmpegthumbnailer -i 01\ Gibraltar.mp3 -o test.png
[mp3 @ 0x56303d9778c0] Estimating duration from bitrate, this may be inaccurate
Error: decodeVideoFrame() failed: frame not finished
django@ASGARD:/media/DATA/Bibliothèque Musicale/Bibliothèque/Abd Al Malik/Gibral

That explains why no thumbnails. It cannot find the picture embedded in the mp3 file.

As to how and why that’s not something I am familiar with.

Remember : this exact same mp3 file shows its face on Ubuntu 16.04 / Nautilus. It was also true on Ubuntu Budgies 18.04. On the same hardware. And if I copy that file onto a window box or on my phone or tablet, it keeps its face.

So this file has an embedded picture.

ffmpegthumbnailer may be unable to extract it but I almost sure it’s not a problem within the mp3 file.

So that means the issue must be ffmpeg since the version of ffmpegthumbnailer is basically unchanged between 18.04 and 20.04

ffmpegthumbnailer utilises the ffmpeg library to do its work.

Is it possible configuration of ffmpeg has changed between 18.04 and 20.04

as ffmpegthumbnailer seems to depend on some internal flag of ffmpeg ?

I’m trying to target « where / to whom » report…

Its using a ffmpeg software library api call.

ffmpeg itself has an extensive command line so its possible todo something like the thumbnailer command line above. The exact syntax I don’t know … ffmpeg --help

If anyone is affected…

Errr… a strange way to « solve » that issue : installing Nautilus.

…then Nemo uses thumbnails for mp3 files.

Now I have removed Nautilus and thumbnails for mp3 files keep showing in Nemo - so Nautilus may not be of any help here finally ?

django@ASGARD:/usr/share/thumbnailers$ cat * | grep Exec
Exec=evince-thumbnailer -s %s %u %o
Exec=ffmpegthumbnailer -i %i -o %o -s %s -f
Exec=/usr/bin/gdk-pixbuf-thumbnailer -s %s %u %o
Exec=gnome-thumbnail-font --size %s %u %o
Exec=/usr/bin/gdk-pixbuf-thumbnailer -s %s %u %o
Exec=/usr/bin/totem-video-thumbnailer -s %s %u %o

Totem maybe ? Seems it deals with mp3

django@ASGARD:/usr/share/thumbnailers$ cat totem.thumbnailer 
[Thumbnailer Entry]
Exec=/usr/bin/totem-video-thumbnailer -s %s %u %o