How to get lightning fast thumbnails for mkv and avi

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked

Did this thumbnail fix work for you?

Oh god yes, I love you!!?
2
100%
Hell no you idiot!
0
No votes
 
Total votes: 2

KhaosDvorak

How to get lightning fast thumbnails for mkv and avi

Post by KhaosDvorak »

I have been using Ubuntu for literally the past 6 years, but recently made the jump to Mint 14 with Cinnamon. Am loving it.

Anyways, I noticed, just like in Ubuntu since 9.10, that I was not getting thumbnails generated for my 10bit .mkv files or avi, and that the thumbnail generation is very slow.

Anyways, using ffmpegthumbnailer and this small tweak, you can get flawless thumbnail generation for ALL videos and pictures. I was able to generate thumbnails for a folder with around 2500 jpg, gif, and png files in under 2 minutes with this tweak, and my laptop has a core 2 duo.

First install ffmpegthumbnailer from a terminal if you haven't already, as we will use that for generating thumbnails.
sudo apt-get install ffmpegthumbnailer
Also make sure you still have totem player installed. It was installed by default. (shows up as movie player) You will need to tweak totem, which grabs the thumbnails by default, to work with ffmpegthumbnailer for all file types. A few years ago someone somewhere on the internet uploaded a tweaked totem.thumbnailer file. I do not remember who it was or where I got it, but credit goes to them for this.

Download the included archive, which has the file you need in it. After extracting it, you need to sudo into nemo using the following command
sudo nemo
You need to copy/cut the totem.thumbnailer file you extracted from the included archive to the following directory:

/usr/share/thumbnailers

There will be three files in this folder, evince.thumbnailer, gnome-font-viewer.thumbnailer, and totem.thumbnailer. When you copy/cut the file into this folder, make sure to hit REPLACE on the dialog that pops up.

Thats it! Now your computer should generate thumbnails for those pesky 10 bit .mkvs.

You will need to delete your thumbnail cache if you want it to work correctly in most cases, and in Mint 14 the thumbnail directory has changed from .thumbnails in your home directory to .cache/thumbnails

Delete everything in the thumbnails folder (normal, failed folders) and then see how your thumbnail generation goes!

Also, please vote in the poll if this works for you. I have never had a problem, and I thinks something like this needs to be included in Mint (and Ubuntu) in the future.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
jr72

Re: How to get lightning fast thumbnails for mkv and avi

Post by jr72 »

Sorry to dig up a relatively old post, but I registered to say this:

I've used this fix twice now, once on Mint 14 Cinnamon 64 bit and just yesterday for Mint 15 - neither would build thumbnails for pretty much any movie formats for any new files in Nemo despite having ffmpegthumbs installed, regardless of a fresh install or in-place distribution upgrade.

So thank you for posting this all those months ago - it saved a load of hassle trying to work out what wasn't working :D
FrameDragging

Re: How to get lightning fast thumbnails for mkv and avi

Post by FrameDragging »

It looks like simply installing ffmpegthumbnailer and deleting the contents of ~/.cache/thumbnails is enough to make this work now! :)
speedsterharry

Re: How to get lightning fast thumbnails for mkv and avi

Post by speedsterharry »

Many many thx KhaosDvorak !

I installed these changes on my (not clean) install of cinnamon and nemo (went from Ubuntu 14.04 to gnome-fallback and then cinnamon, and I think we have a lovestory beginning ;) ). Navigating and most of all, sorting pictures in my various folders was a nightmare before applying this !
I can't really judge how far the Cinnamon developers have gone since I haven't install LM from ISO but I hope they have something equivalent installed by default (basically changed the slow thumbnailer for FFMPEGthumbnailer). I can't believe the speeds increase. Lightning fast is no exageration. Such a joy to use the system for this kind of tasks now :mrgreen:
speedsterharry

Re: How to get lightning fast thumbnails for mkv and avi

Post by speedsterharry »

I would like to add that I had to uninstall nautilus before the whole system was stable again. Also, having nautilus and nemo coexisting would prevent the applet Places from opening directory folders via Nautilus instead of Nemo.
Locked

Return to “Sound”