Files v46.2 on Ubuntu 24.04 does not generate thumbnails for mp4 files after upgrading from a previous version of Ubuntu.
I have ffmpegthumbnailer installed and this worked prior to the upgrade
I’ve also upgraded one of my laptops and found a similar issue, only this time it’s the .avi files that don’t have a thumbnail.
I’ve followed pretty much all suggestion to resolve this that I could find, but without success so far.
I have run nautilus in debug mode and got the following
(org.gnome.Nautilus:82993): nautilus-file-DEBUG: 17:39:09.416: file:///home/llist/tmp/YouTubetest.mp4
(org.gnome.Nautilus:82993): nautilus-async-jobs-DEBUG: 17:39:09.416: starting extension info in 0x5c3fd85025f0
(org.gnome.Nautilus:82993): nautilus-async-jobs-DEBUG: 17:39:09.417: stopping extension info in 0x5c3fd85025f0
(org.gnome.Nautilus:82993): nautilus-async-jobs-DEBUG: 17:39:09.417: starting extension info in 0x5c3fd85025f0
(org.gnome.Nautilus:82993): nautilus-view-DEBUG: 17:39:09.417: Files changed in window (0x5c3fd6e2cf80) file:///home/llist/tmp
(org.gnome.Nautilus:82993): nautilus-file-DEBUG: 17:39:09.417: file:///home/llist/tmp/YouTubetest.mp4
(org.gnome.Nautilus:82993): nautilus-async-jobs-DEBUG: 17:39:09.417: stopping extension info in 0x5c3fd85025f0
(org.gnome.Nautilus:82993): nautilus-bookmarks-DEBUG: 17:39:09.417: tmp: file changed
(org.gnome.Nautilus:82993): nautilus-async-jobs-DEBUG: 17:39:09.423: stopping file list in 0x5c3fd85025f0
(org.gnome.Nautilus:82993): nautilus-file-DEBUG: 17:39:09.518: Called file_get_icon(), at size 256
(org.gnome.Nautilus:82993): nautilus-thumbnails-DEBUG: 17:39:09.518: (Main Thread) Adding thumbnail: file:///home/llist/tmp/YouTubetest.mp4
(org.gnome.Nautilus:82993): nautilus-file-DEBUG: 17:39:09.518: Called file_get_icon(), at size 256
(org.gnome.Nautilus:82993): nautilus-window-DEBUG: 17:39:09.518: Finished loading window for uri file:///home/llist/tmp
(org.gnome.Nautilus:82993): nautilus-thumbnails-DEBUG: 17:39:09.538: (Main Thread) Creating thumbnails thread
(org.gnome.Nautilus:82993): nautilus-thumbnails-DEBUG: 17:39:09.538: (Thumbnail Thread) Creating thumbnail: file:///home/llist/tmp/YouTubetest.mp4
(org.gnome.Nautilus:82993): GnomeDesktop-DEBUG: 17:39:09.539: About to launch script: bwrap --ro-bind /usr /usr --ro-bind-try /etc/ld.so.cache /etc/ld.so.cache --symlink /usr//bin /bin --symlink /usr//lib64 /lib64 --symlink /usr//lib /lib --symlink /usr//sbin /sbin --ro-bind-try /var/cache/fontconfig /var/cache/fontconfig --setenv GST_REGISTRY_1_0 /home/llist/.cache/gnome-desktop-thumbnailer/gstreamer-1.0/gstreamer-1.0.registry --bind /home/llist/.cache/gnome-desktop-thumbnailer/gstreamer-1.0 /home/llist/.cache/gnome-desktop-thumbnailer/gstreamer-1.0 --ro-bind-try /etc/alternatives /etc/alternatives --proc /proc --dev /dev --chdir / --setenv GIO_USE_VFS local --unshare-all --die-with-parent --setenv G_MESSAGES_DEBUG all --bind /tmp/gnome-desktop-thumbnailer-Y0JIV2 /tmp --ro-bind /home/llist/tmp/YouTubetest.mp4 /tmp/gnome-desktop-file-to-thumbnail.mp4 --seccomp 45 /usr/bin/totem-video-thumbnailer -s 256 file:///tmp/gnome-desktop-file-to-thumbnail.mp4 /tmp/gnome-desktop-thumbnailer.png
(totem-video-thumbnailer:2): GLib-GIO-DEBUG: 06:39:09.568: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
(org.gnome.Nautilus:82993): GnomeDesktop-DEBUG: 17:39:09.666: Failed to launch script: OpenBLAS blas_thread_init: pthread_create failed for thread 6 of 16: Resource temporarily unavailable
OpenBLAS blas_thread_init: RLIMIT_NPROC 63149 current, 63149 max
(org.gnome.Nautilus:82993): nautilus-thumbnails-DEBUG: 17:39:09.666: (Thumbnail Async Thread) Thumbnail failed: file:///home/llist/tmp/YouTubetest.mp4 (Child process exited with code 130)
(org.gnome.Nautilus:82993): nautilus-view-DEBUG: 17:39:09.666: Files changed in window (0x5c3fd6e2cf80) file:///home/llist/tmp
(org.gnome.Nautilus:82993): nautilus-file-DEBUG: 17:39:09.666: file:///home/llist/tmp/YouTubetest.mp4
(org.gnome.Nautilus:82993): nautilus-thumbnails-DEBUG: 17:39:09.667: (Thumbnail Async Thread) Exiting
(org.gnome.Nautilus:82993): nautilus-file-DEBUG: 17:39:09.767: Called file_get_icon(), at size 256
(org.gnome.Nautilus:82993): dconf-DEBUG: 17:39:13.552: change_fast
(org.gnome.Nautilus:82993): nautilus-window-DEBUG: 17:39:13.552: Setting new slot (nil) as active, old slot inactive 0x5c3fd7624b30
(org.gnome.Nautilus:82993): nautilus-window-DEBUG: 17:39:13.558: Destroying window
(org.gnome.Nautilus:82993): nautilus-window-DEBUG: 17:39:13.558: Removing slot 0x5c3fd7624b30
(org.gnome.Nautilus:82993): nautilus-bookmarks-DEBUG: 17:39:13.580: tmp: disconnecting file
(org.gnome.Nautilus:82993): nautilus-bookmarks-DEBUG: 17:39:13.580: llist: disconnecting file
(org.gnome.Nautilus:82993): nautilus-previewer-DEBUG: 17:39:13.585: Unable to create NautilusPreviewer2 proxy: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.NautilusPreviewer was not provided by any .service files
** (org.gnome.Nautilus:82993): DEBUG: 17:39:25.571: *** Cancel Results Meta requests
(org.gnome.Nautilus:82993): dconf-DEBUG: 17:39:25.572: sync
(org.gnome.Nautilus:82993): nautilus-bookmarks-DEBUG: 17:39:25.572: Documents: disconnecting file
(org.gnome.Nautilus:82993): nautilus-bookmarks-DEBUG: 17:39:25.572: Pictures: disconnecting file
(org.gnome.Nautilus:82993): nautilus-bookmarks-DEBUG: 17:39:25.572: Videos: disconnecting file
(org.gnome.Nautilus:82993): nautilus-bookmarks-DEBUG: 17:39:25.572: Downloads: disconnecting file
(org.gnome.Nautilus:82993): nautilus-bookmarks-DEBUG: 17:39:25.572: ourcloud: disconnecting file
(org.gnome.Nautilus:82993): dconf-DEBUG: 17:39:25.572: unwatch_fast: "/org/gnome/desktop/lockdown/" (active: 2, establishing: 0)
(org.gnome.Nautilus:82993): Tracker-DEBUG: 17:39:25.572: Cleaning up stale resource URIs
(org.gnome.Nautilus:82993): Tracker-DEBUG: 17:39:25.573: Freed 1 readonly interfaces
One other thing to note is that when I delete all thumbnails, open Natiles and go to the video folder, the load average when I do a ‘top’ goes as hogh as 60, without producing a single ‘valid’ thumbnail
I have found an mp4 file where nautilus does generate a thumbnail.
I’m using ‘mediainfo’ to get the following details
General
Complete name : works.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom/iso2/avc1/mp41)
File size : 2.34 GiB
Duration : 1 h 31 min
Overall bit rate mode : Variable
Overall bit rate : 3 669 kb/s
Frame rate : 29.970 FPS
Encoded date : 1970-01-01 00:00:00 UTC
Tagged date : 1970-01-01 00:00:00 UTC
Writing application : Lavf52.31.0
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.1
Format settings : CABAC / 5 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 5 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 1 h 31 min
Bit rate : 3 596 kb/s
Nominal bit rate : 3 000 kb/s
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 29.970 (29970/1000) FPS
Original frame rate : 25.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.130
Stream size : 2.30 GiB (98%)
Writing library : x264 core 67 r1148 400740b
Encoding settings : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x133 / me=hex / subme=7 / psy_rd=1.0:0.0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-2 / threads=12 / nr=0 / decimate=1 / mbaff=0 / bframes=3 / b_pyramid=1 / b_adapt=0 / b_bias=0 / direct=2 / wpredb=1 / keyint=300 / keyint_min=25 / scenecut=40 / rc=2pass / bitrate=3000 / ratetol=1.3 / qcomp=0.50 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.41 / pb_ratio=1.25 / aq=1:1.00
Language : English
Encoded date : 1970-01-01 00:00:00 UTC
This compares to an mp4 where no thumbnails are generated
General
Complete name : fails1.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom)
File size : 332 MiB
Duration : 12 min 2 s
Overall bit rate mode : Variable
Overall bit rate : 3 849 kb/s
Frame rate : 25.000 FPS
Encoded date : 2013-10-26 03:12:55 UTC
Tagged date : 2013-10-26 03:12:55 UTC
Video
ID : 1
Format : MPEG-4 Visual
Format profile : Simple@L1
Format settings, BVOP : No
Format settings, QPel : No
Format settings, GMC : No warppoints
Format settings, Matrix : Default (H.263)
Codec ID : mp4v-20
Duration : 12 min 2 s
Bit rate : 3 662 kb/s
Width : 720 pixels
Height : 404 pixels
Display aspect ratio : 16:9
Frame rate mode : Variable
Frame rate : 25.000 FPS
Minimum frame rate : 10.313 FPS
Maximum frame rate : 25.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.504
Stream size : 316 MiB (95%)
Writing library : Lavc53.35.0
Tagged date : 2013-10-26 03:12:57 UTC