In order to get a newer version of ffmpegthumbnailer
that supports embedded image metadata. I manually compiled the (currrently) lastest release version 2.2.2
from github.
-m : prefer embedded image metadata over video content
here are some information about my environment
➜ ~ nautilus --version
GNOME nautilus 3.26.4
➜ ~ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic
➜ ~ uname -a
Linux Play-PC-VPC 5.0.0-25-generic #26~18.04.1-Ubuntu SMP Thu Aug 1 13:51:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
➜ ~ echo $0
zsh
➜ ~ g++ --version
g++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
here is what i did to compile/install it:
sudo apt install build-essential cmake pkg-config
sudo apt install libjpeg-dev libpng-dev zlib1g libavcodec-dev libavformat-dev libavfilter-dev
wget https://github.com/dirkvdb/ffmpegthumbnailer/releases/download/2.2.2/ffmpegthumbnailer-2.2.2.tar.bz2
tar -xvf ffmpegthumbnailer-2.2.2.tar.bz2
cd ffmpegthumbnailer-2.2.2
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_GIO=ON -DENABLE_THUMBNAILER=ON .
make
sudo make install
and here is how I configure thumbnailer (sudo vim /usr/share/thumbnailers/ffmpegthumbnailer.thumbnailer
)
[Thumbnailer Entry]
TryExec=ffmpegthumbnailer
Exec=ffmpegthumbnailer -i %i -o %o -s %s -f
MimeType=video/jpeg;video/mp4;video/mpeg;video/quicktime;video/x-ms-asf;video/x-ms-wm;video/x-ms-wmv;video/x-msvideo;video/x-flv;video/x-matroska;video/webm;video/mp2t;
Ps. please ignore the missing -m
part, cause I haven't get it to show any thumbs yet.
also tried removing cache with following command
rm -r ~/.cache/thumbnails/
It looks like this.
Ps. again i don't have totem
installed since it is a minimal install
here is another pic shows ffmpegthumbnailer
does work
my nautilus preference:
Trobleshooting steps tried:
1. bwarp
during further search (couldn't remember what I was typing on the search box LOL) and copy & paste what it says
Ubuntu 18.04 - Solve Nautilus 3.26.4+ external thumbnailers problem
sudo wget -O /usr/local/bin/bwrap https://raw.githubusercontent.com/NicolasBernaerts/ubuntu-scripts/master/nautilus/bwrap
sudo chmod +rx /usr/local/bin/bwrap
rm -r ~/.cache/thumbnails/
sudo reboot
not working, rm /usr/local/bin/bwrap
...
oh, and playing with bwarp
, I tried print out the command called:
/usr/bin/bwrap --ro-bind /usr/local/bin /usr/local/bin bind /home/play_pc/ff_log /home/play_pc/ff_log --ro-bind /etc/alternatives /etc/alternatives --ro-bind /etc/ImageMagick-6 /etc/ImageMagick-6 --ro-bind /var/cache/fontconfig /var/cache/fontconfig --ro-bind /usr /usr --ro-bind /bin /bin --ro-bind /lib64 /lib64 --ro-bind /lib /lib --ro-bind /sbin /sbin --proc /proc --dev /dev --chdir / --setenv GIO_USE_VFS local --unshare-all --die-with-parent --bind /tmp/gnome-desktop-thumbnailer-FL9UJ0 /tmp --ro-bind /home/play_pc/Downloads/wo_feature.mkv /tmp/gnome-desktop-file-to-thumbnail.mkv --seccomp 17 ffmpegthumbnailer -i /tmp/gnome-desktop-file-to-thumbnail.mkv -o /tmp/gnome-desktop-thumbnailer.png -s 256 -f
2. mv ffmpegthumbnailer
so... the bwarp
thing got me thinking maybe it's the binding path that cause the problem, so I moved ffmpegthumbnailer
execution file
➜ ~ which ffmpegthumbnailer
/usr/local/bin/ffmpegthumbnailer
➜ ~ sudo mv /usr/local/bin/ffmpegthumbnailer /usr/bin/ffmpegthumbnailer
➜ ~ which ffmpegthumbnailer
/usr/bin/ffmpegthumbnailer
and... it still doesn't work
3. check permission
➜ ~ ls -l /usr/local/bin
total 32
-rwxr-xr-x 1 root root 30576 May 4 20:46 ffmpegthumbnailer
➜ ~ sudo ls -l /usr/share/thumbnailers/
total 20
-rw-r--r-- 1 root root 803 Jun 19 2019 evince.thumbnailer
-rw-r--r-- 1 root root 259 May 4 20:52 ffmpegthumbnailer.thumbnailer
-rw-r--r-- 1 root root 525 Mar 16 2018 gdk-pixbuf-thumbnailer.thumbnailer
-rw-r--r-- 1 root root 213 Mar 13 2018 gnome-font-viewer.thumbnailer
-rw-r--r-- 1 root root 158 Dec 31 2017 librsvg.thumbnailer
➜ ~ sudo killall nautilus
nautilus: no process found
➜ ~ rm -r ~/.cache/thumbnails
➜ ~ mkdir ~/.cache/thumbnails
➜ ~ chown -R play_pc:play_pc ~/.cache/thumbnails
➜ ~ sudo reboot
4. use abs-path instead
[Thumbnailer Entry]
TryExec=/usr/local/bin/ffmpegthumbnailer
Exec=/usr/local/bin/ffmpegthumbnailer -i %i -o %o -s %s -f
MimeType=video/jpeg;video/mp4;video/mpeg;video/quicktime;video/x-ms-asf;video/x-ms-wm;video/x-ms-wmv;video/x-msvideo;video/x-flv;video/x-matroska;video/webm;video/mp2t;
At this point, I think I've honestly ran out of ideas. Can someone so kindly point me something I can try. plz
ffmpegthumbnailer.thumbnailer
is readable by all-rw-r--r-- 1 root root