4

There's something for which I've been searching an answer for a while now, but to no avail, and it's strange to me, as it seems like a thing that people would talk about: one of those nice little nonsense that enhance the computing experience a little bit.

Anyway. I have a fair music collection. I save all the songs as ogg files. All is fine, and I can listen to the files, but there's something weird with the files in Nautilus: some have icons displaying their album art, while others don't, and I just can't understand WHY.

I read on this site today that it's a matter of embedding the album art to the file, but that's not true, as I embedded the album art to the files I wanted several times, to no avail. Furthermore, removing an embedded album art from a file didn't have any effect on those that ARE displaying the icons.

So my question is: How does it work? Where does Nautilus (or Ubuntu, I don't know) get the picture from? How do I edit it?

5 Answers 5

2

I believe it does in fact use the tags embedded in the file, which are usually called id3 tags, at least for MP3. I think ogg files read id3 tags, but may not read id3v2 tags (version 2). Some software writes one or the other, or sometimes both.

I've noticed that it takes a while for Nautilus to display the album art once the folder is first opened, but then it remembers them. I'm pretty sure it stores the images in ~/.thumbhnails/normal, but this directory can be very big, and opening it is a chore.

I've heard of a program called "cover thumbnailer" that makes nautilus work better; I haven't really tried it out myself, though.

6
  • I got it! I renamed the old "normal" folder, and it re-read the files and worked with the new embedded images. I probably won't install "cover thumbnailer", since it's not in the default repositories, and I'm trying to be cautious about it. Still, it's a little bit of a clumsy way to change the pictures. I know I can just set custom icons, but I can't do it to a group of images and it just comes out smaller and is a lot of work. Thank you for your answer, it really helped!
    – Amir Adar
    Jun 30, 2012 at 10:31
  • However... after checking several folders, it seems that not all of the files display any pictures (only the default music icon), even though I've embedded pictures into them just like I did with the rest. Why is that? Thanks again for putting me in the right direction. :)
    – Amir Adar
    Jun 30, 2012 at 10:40
  • Another note (and I'm sorry if I'm being annoying now) is that when I copy and paste the files it shows the icon as it should, but when I rename the files from "* (copy).ogg" back to "*.ogg", leave the folder and come back in, the icon is gone and is replaced again with the default music icon. So it seems to be holding some grudge against the files' names.
    – Amir Adar
    Jun 30, 2012 at 10:57
  • Remember, it takes a while to finally display the thumbnail if it's not in the directory; how long probably depends on how many files there are to search. Also, remember the pictures are stored in each file, not by album or directory, so some files may not have the embedded album art. Also, I'm guessing that the thumbnail filename is somehow keyed to the file's UUID, or something similar, so renaming may lose this connection. This is all educated guesses, by the way. Jun 30, 2012 at 17:26
  • It takes a while, but it shows that it's loading a thumbnail, if it does indeed load one. Since it doesn't, it simply presents the default thumbnail for the filetype. I embedded the album art manually to each file in Easytag, so I know all the files are embedded. I don't really know what a UUID is, but I think I understand what you are saying. Still, the problem is that the file with the original name does not load a thumbnail, but a copy named "filename (copy).ogg" does load a thumbnail of the embedded image. Renaming the copy back to the original name removes the thumbnail.
    – Amir Adar
    Jul 1, 2012 at 22:33
1

You need to download the cover art for the album, place it in the album folder and give it one of these names:

  • folder.jpg
  • cover.jpg
  • Folder.jpeg

I use pictures that are 500x500, the default for album art used by most programs. This will show the album art in RhythmBox. To embed the album art in the file so it shows up in Nautilus, use easytag Install easytag to embed the album art into the .ogg file's meta tag. It's a laborious project, but in my book, doing it right the first time will save you from having to redo it again later.

1
  • 1
    Yes, that's what I did, but for a long time it didn't work, and that was because the hidden icons folder already had icons specified for the filenames and it didn't agree to switch them. Deleting the icons folder solved that problem, as it recreated itself and added the right icons.
    – Amir Adar
    Aug 3, 2012 at 8:54
0

Correct me if I'm wrong, but I think your are affected by this bug https://bugs.launchpad.net/ubuntu/+source/totem/+bug/914313

3
  • Yes, that seems similar, however, the comment in the end says that Nautilus is unable to read the tags, while I successfully made it read them. I'll post a comment of my woraround, and hopefully it will be of use.
    – Amir Adar
    Sep 8, 2012 at 6:08
  • Unfortunately, your workaround didn't work. There are still some files which didn't show their thumbnails. Just like before; randomly, some of them did and the others didn't. Sep 8, 2012 at 8:14
  • I see. I don't know what this is about, then. Hope you manage to find a solution.
    – Amir Adar
    Sep 8, 2012 at 18:15
0

I think it is related to the size of the mp3 files.

Nautilus didn't display the album art for any file larger than 10Mb on my system.

If you go to nautilus->edit->preferences->preview and change the selection for "Other Previewable Files" "Only for files smaller than:" and change the value to 100 MB that will probably work!

1
  • That's exactly how it works for images and videos - where it makes sense to use a size limit. It makes no sense for reading headers of mp3 files, but I presume it is applied here too. Sep 26, 2014 at 22:27
0

Force recreate thumbnails

In a situation where Nautilus shows some files with or without thumbnails, the corresponding thumbnail files are stored in one of the following folders (in a Debian system):

  • ~/.cache/thumbnails/fail (for files that don't have a thumbnail),
  • ~/.cache/thumbnails/large (for files that have a large thumbnail 256px), and
  • ~/.cache/thumbnails/normal (for files that have a normal thumbnail 128px).

If we use an editor to embed cover art to an audio file, Nautilus will still use the thumbnail stored in one of the aforementioned thumbnail folders and not the new one.

So, to force Nautilus to recreate the thumbnail, we can either delete the thumbnail file (if we can find where it is), or delete all the thumbnail files in one of the folders. By doing this Nautilus will recreate the new correct thumbnails.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .