How to fix green thumbnails on .mkv videos
- First install ffmpeg and ffmpegthumbnailer
On Ubuntu:
Enable universe and multiverse repos on software app.
Update:
sudo apt update
Install restricted extras:
sudo apt-get install ubuntu-restricted-extras
Finally install ffmpeg and ffmpegthumbnailer:
sudo apt install ffmpeg ffmpegthumbnailer
On Debian:
sudo apt install ffmpeg ffmpegthumbnailer
On Arch and derivatives:
sudo pacman -S ffmpeg ffmpegthumbnailer
Second remove thumbnail folder:
rm -r ~/.cache/thumbnails
Third edit totem.thumbnailer file:
sudo nano /usr/share/thumbnailers/totem.thumbnailer
Change the value on TryExec
with ffmpegthumbnailer
.
Change the value on Exec
with ffmpegthumbnailer -s %s -i %i -o %o -c png -f -t 10
Finally, the edited lines should look like this:
TryExec=ffmpegthumbnailer
Exec=ffmpegthumbnailer -s %s -i %i -o %o -c png -f -t 10
- Finally restart nautilus:
nautilus -q
If the changes don’t apply for all files should be useful removing again the thumbnail folder.
rm -r ~/.cache/thumbnails