I hate totem player, it is useless to me, so I installed the ffmpegthumbnailer, removed totem player, and changed the default thumbnailer to it by following steps.
sudo apt-get install ffmpeg ffmpegthumbnailer gstreamer0.10-ffmpeg
Then deleted thumbnail cache:
rm ~/.thumbnails/fail/gnome-thumbnail-factory/*
rm ~/.thumbnails/normal/*
I then made a change in /usr/share/thumbnailers/totem.thumbnailer
from this:
[Thumbnailer Entry]
TryExec=/usr/bin/totem-video-thumbnailer
Exec=/usr/bin/totem-video-thumbnailer -s %s %u %o
to this:
[Thumbnailer Entry]
TryExec=ffmpegthumbnailer
Exec=ffmpegthumbnailer -s %s -i %i -o %o -c png -f -t 10
But it can't generate the thumbnails from HEVC Main10P and VP9 codec videos, what should I do?
I have found the answer, I need to install the newer version of ffmpegthumbnailer and libffmpegthumbnailer4.
https://launchpad.net/~mc3man/+archive/ubuntu/testing6/+build/7730885
Just download them and install.