Bug#973942: nemo: thumbnailing doesn't work for all kinds of videos
Hey Norbert.
On Sun, 2020-11-08 at 10:49 +0900, Norbert Preining wrote:
> Hmm, strange, I see thumbnails for all the movies/clips hanging
> around
> here...
>
> Do you see something in the logs?
First deleting ~/.cache/thumbnails/fail
then trying:
$ nemo --debug .
...
(nemo:78380): dconf-DEBUG: 03:33:42.169: watch_fast: "/org/cinnamon/desktop/thumbnailers/" (establishing: 0, active: 0)
(nemo:78380): dconf-DEBUG: 03:33:42.169: watch_established: "/org/cinnamon/desktop/thumbnailers/" (establishing: 1)
(totem-video-thumbnailer:78390): GLib-GIO-DEBUG: 03:33:42.301: _g_io_module_get_default: Found default implementation gvfs (GDaemonVfs) for ‘gio-vfs’
(totem-video-thumbnailer:78390): GStreamer-WARNING **: 03:33:42.664: failed to create thread: Error creating thread: Resource temporarily unavailable
(totem-video-thumbnailer:78390): GStreamer-WARNING **: 03:33:42.667: failed to create thread: Error creating thread: Resource temporarily unavailable
** (totem-video-thumbnailer:78390): WARNING **: 03:33:42.667: Could not take screenshot: failed to retrieve or convert video frame
** (totem-video-thumbnailer:78390): WARNING **: 03:33:42.667: Could not take screenshot: failed to retrieve or convert video frame
** (totem-video-thumbnailer:78390): WARNING **: 03:33:42.668: Could not take screenshot: failed to retrieve or convert video frame
** (totem-video-thumbnailer:78390): WARNING **: 03:33:42.668: Could not take screenshot: failed to retrieve or convert video frame
** (totem-video-thumbnailer:78390): WARNING **: 03:33:42.668: Could not take screenshot: failed to retrieve or convert video frame
...
Then there's a process hanging around:
78390 pts/10 SNLl+ 0:00 /usr/bin/totem-video-thumbnailer -s 256 file:///home/calestyo/somevideo.mp4 /tmp/.gnome_desktop_thumbnail.CN6KT0
while nemo shows videos without an existing thumbnail by using a
placeholder icon with a watch (indicating it still tries to thumbnail
them).
That process actually never dies, nor does it try with other files, it
seems.
Invoking the very same process manually also hangs:
$ /usr/bin/totem-video-thumbnailer -s 256 file:///home/calestyo/somevideo.mp4 /tmp/.gnome_desktop_thumbnail.manual
(totem-video-thumbnailer:78782): GStreamer-WARNING **: 03:40:49.872: failed to create thread: Error creating thread: Resource temporarily unavailable
(totem-video-thumbnailer:78782): GStreamer-WARNING **: 03:40:49.874: failed to create thread: Error creating thread: Resource temporarily unavailable
** (totem-video-thumbnailer:78782): WARNING **: 03:40:49.874: Could not take screenshot: failed to retrieve or convert video frame
** (totem-video-thumbnailer:78782): WARNING **: 03:40:49.874: Could not take screenshot: failed to retrieve or convert video frame
** (totem-video-thumbnailer:78782): WARNING **: 03:40:49.874: Could not take screenshot: failed to retrieve or convert video frame
** (totem-video-thumbnailer:78782): WARNING **: 03:40:49.874: Could not take screenshot: failed to retrieve or convert video frame
** (totem-video-thumbnailer:78782): WARNING **: 03:40:49.874: Could not take screenshot: failed to retrieve or convert video frame
That video is really nothing special:
ffprobe /home/calestyo/somevideo.mp4 2>&1 | grep Stream
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 712 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 139 kb/s (default)
and it has just 46MB.
$ killall totem-video-thumbnailer -9
followed by Ctrl-R in nemo, makes:
- some thumbnails rebuild correctly
- some (which are however also valid videos) fail and display another
icon (not with the clock but just some abstract film material
- then it hangs again on some video (with remaining videos using the
icon with the clock.
It seems I cannot properly configure nemo to use another thumbnailer.
However, when I remove:
/usr/share/thumbnailers/totem.thumbnailer
and install ffmpegthumbnailer things seem to work actually that seems
even a better one since video thumbnails get some film strip
indicators.
Any ideas what to test further?
Cheers,
Chris.
Reply to: