Close Menu
    X (Twitter)
    Hectic GeekHectic Geek
    • Apps
      • Apps for Mac
      • Apps for PCs
      • Best Apps
    • Concepts
      • Comparison
      • For Geeks
      • IT Careers
    • Gadgets
      • Accessories
      • Best Work Laptops
      • Budget Laptops
    • GNU/Linux
      • Ubuntu
    • How To
      • Virtualization
      • Windows
      • Windows How-To
    Hectic GeekHectic Geek
    Home » Generate Video Thumbnails Faster with ‘FFmpegthumbnailer’ in Cinnamon
    GNU/Linux

    Generate Video Thumbnails Faster with ‘FFmpegthumbnailer’ in Cinnamon

    GayanBy GayanDecember 6, 201218 Comments5 Mins Read
    Twitter Reddit Telegram WhatsApp Email
    Share
    Twitter Reddit Telegram WhatsApp Email

    Thought it is certainly not my favorite multimedia player, any GNU/Linux distribution that comes with Gnome desktop or make use of its core applications, use ‘Totem’ as the multimedia player. Plus, it is also being used to create thumbnails of video files (including ‘previewing’ audio files) as well.

    Like many others, I too have been using the Gnome desktop, even before ‘Totem’ had this feature. Sure it had its issues in the beginning, but nowadays, once you have installed the proper multimedia codecs, it can generate thumbnails of almost all the popular video formats without much difficulty.

    However, ‘totem-video-thumbnailer’ (that is what the application is called) is not the only video thumbnail generator out there, and I cannot remember the exact time frame, I think it was around 2005-2006, there was a MPLayer based video thumbnail generator that was much, much, faster than ‘totem-video-thumbnailer’.

    If you are looking for another one, then there is also the famous ‘ffmpegthumbnailer’, which is well known for its blistering speed! 😀 (it is not a new one and has been there for sometime now).

    It used to work flawlessly in Gnome desktop based distributions in the past. But due to few changes done to ‘Totem’ in the recent past, it stopped working in operating systems like Ubuntu 11.10 and later.

    I have written a simple trick to get it working, but because it has been about an year since I last bragged about it ;-), I decided to come up with a new one.

    For this example, I’m using Linux Mint 14 (Cinnamon) but these same steps should work in Ubuntu 12.10 as well. For setting up ‘ffmpegthumbnailer’ please follow the below steps.

    Step 1:

    First, let us install the ‘ffmpegthumbnailer’ package. For that, open your Terminal window and enter the below command.

    sudo apt-get install ffmpegthumbnailer

    Step 2:

    Now, what we are doing is simple. We are going to replace a customized configuration file of the ‘totem-video-thumbnailer’ so that every time it is being called by the file manager, it will execute ‘ffmpegthumbnailer’.

    I have changed two lines of code of this original file (called ‘totem.thumbnailer’) and have uploaded it to this blog. So please download the file from here and extract its content to your ‘Home’ folder. Don’t extract it to anywhere else, otherwise the below command will not work.

    Step 3:

    Once that is done, open your Terminal and enter the below command.

    sudo cp totem.thumbnailer /usr/share/thumbnailers/

    Step 4:

    For the changes to take effect, you might have to restart the file manager.

    If you use ‘Nautilus’ (Ubuntu users), then enter the below command.

    nautilus -q

    If you ‘Nemo’ (a fork of ‘Nautilus’, used in Cinnamon), enter the below one instead.

    nemo -q

    That’s it. Now every time you visit a folder that has video content, ‘ffmpegthumbnailer’ will come into action and create them pretty thumbnails so fast that it would put ‘Totem’ to shame ;-).

    Optional …

    Rolling back the changes …

    For some reason, if you wanted to get the original ‘totem-video-thumbnailer’ back (shame on you! :P), then you can do so by simply issuing the below command.

    sudo apt-get install –reinstall totem

    Then use the above commands to restart your file manager.

    Recreating ‘failed’ thumbnails …

    Sometimes ‘Totem’ fails to create video thumbnails. Thought I cannot not guarantee results, you can try forcing ‘ffmpegthumbnailer’ to recreate them.

    For that, use the below command (for both Linux Mint 14 and Ubuntu 12.10 users).

    rm -r ~/.cache/thumbnails/fail/gnome-thumbnail-factory

    If you are lucky, the next time you open those folders, ‘ffmpegthumbnailer’ might create the thumbnail of those files, of which, ‘Nautilus’ and ‘Nemo’ had failed before.

    Tweaking it …

    By default, ‘ffmpegthumbnailer’ seeks 10% into a video for creating the thumbnail. If you want, you can change this by following the below steps.

    Step 1:

    Copy the below command (make sure to replace ’20’ accordingly, thought seeking far into a video file will slow down the thumbnail generation times).

    ffmpegthumbnailer -s %s -i %i -o %o -c png -f -t 20

    Step 2:

    Then enter the below command to edit the configuration file.

    gksudo gedit /usr/share/thumbnailers/totem.thumbnailer

    Now as highlighted in the 2nd screenshot, replace the ‘ffmpegthumbnailer -s %s -i %i -o %o -c png -f’ command with the above copied one.

    Once done, make sure to save your changes by clicking on the ‘Save’ button. And then close the editor’s window. That’s it.

    Removing the vertical ‘movie strips’ …

    It also adds two small ‘movie strips’ (vertical) into the thumbnails. If you do not like it, you can disable it by removing the ‘-f’ argument of the ‘ffmpegthumbnailer -s %s -i %i -o %o -c png -f’ command.

    Once that is done, enter the below command to remove all the existing thumbnails, and the new ones will be created when you revisit those folders.

    rm -r ~/.cache/thumbnails/

    That’s it.

    You can read about its other options by simply reading the manual. For that, use the below command.

    man ffmpegthumbnailer

    Good luck.

    Share. Twitter Reddit Telegram WhatsApp Email
    Gayan

    An RHCE, 'Linux' user with 14+ years of experience. Extreme lover of Linux and FOSS. He is passionate to test every Linux distribution & compare with the previous release to write in-depth articles to help the FOSS community.

    Related Posts

    How to Check Linux CPU Usage?

    February 5, 2024

    Linux export Command: A Comprehensive Tutorial

    February 3, 2024

    AlmaLinux vs Ubuntu – How to Select the Best One?

    October 22, 2023

    AlmaLinux vs Rocky Linux: What you need to know

    August 24, 2023

    Pop!_OS VS Linux Mint, Which One to Select in 2023

    July 27, 2023

    Debian vs Ubuntu Server: A Brief Comparison for Beginners

    July 2, 2023

    18 Comments

    1. Tsu on July 30, 2014 2:14 am

      Nice explanation! But you don’t need to put the modified file in ‘/usr/share/thumbnailers/’. Just put it in ‘~/.local/share/thumbnailers/’ and it won’t be overwritten with every update.

      Reply
      • Gayan on July 31, 2014 6:27 am

        That’s true, but the reason I mentioned that was because I wanted it to be applied to every user. But as you said, for single user based system, putting it under ‘~/.local…’ is the perfect solution.

        Reply
    2. Pavlo on November 11, 2014 10:16 pm

      This also works in CentOS 7.

      I could not resolve the problem myself and your instructions really helped to track down the source of the problem.

      Thank you very much.

      Just in case if somebody wants to resolve this problem in CentOS 7 installation:
      1. ffmpegthumbnailer in available from CentOS repositories.
      2. after installing ffmpegthumbnailer, ffmpegthumbnailer.thumbnailer file can be found in /usr/share/thumbnailers
      3. selinux may block ffmpegthumbnailer, thus try to run ffmpegthumbnailer in terminal (for example, “ffmpegthumbnailer -i k.mp4 -o test1.png”)
      4. if test1.png file is successfully created, then just recreate thumbnails as shown above.
      5. however, if test1.png file has not been created and selinux throws warning messages, than follow instructions in these messages to unblock ffmpegthumbnailer.

      best wishes

      Reply
      • Gayan on November 12, 2014 7:02 am

        You’re welcome Pavlo

        Reply
    3. Prasetya on January 9, 2015 6:40 am

      Great post! Really helped me. Thanks a ton!

      Reply
      • Gayan on January 9, 2015 1:22 pm

        I’m glad you found it to be useful 😀 .

        Reply
    4. Pete on May 26, 2015 12:24 am

      This fix also works in Ubuntu Mate 15.04 which didn’t display thumbnails of any video by default in any file manager that I used great work thanks wish I had even half the knowledge you have

      Reply
      • Gayan on May 26, 2015 6:29 am

        You’re welcome Pete 🙂 .

        Reply
    5. John Pisini on October 28, 2015 6:22 pm

      Worked great thank you.

      Reply
      • Gayan on October 29, 2015 6:40 am

        You’re welcome.

        Reply
    6. Goghard on January 15, 2016 9:54 pm

      Thanks! It works perfect for me! I have to use your procedure because I uninstalled Totem and using instead VLC in Ubuntu 14.04. Now I have all videos thumbnails again!

      Reply
      • Gayan on January 16, 2016 8:11 am

        You’re welcome 🙂 .

        Reply
    7. Jules on August 13, 2018 1:36 am

      hello;
      step 3 don’t work for me…

      Reply
    8. Guy on January 16, 2019 7:00 am

      Thank you been trying to replace the default movie thumbnails in Linux Mint 19 which suck for some time now.

      Your solution and script worked a treat 🙂

      Reply
      • Gayan on January 22, 2019 2:25 pm

        You’re welcome 🙂 .

        Reply
    9. Mike on April 17, 2020 10:17 am

      Thanks for the post.
      This also works in ranger fm. I’m using it in i3.

      Reply
      • Gayan on May 14, 2020 9:04 pm

        You’re welcome Mike.

        Reply
    10. Julio on September 9, 2020 6:40 pm

      I appreciate a lot your work. Unfortunately it’s not working in Linux Mint 20. Any ideas? I have been looking around, and found nothing.

      Reply
    Leave A Reply Cancel Reply

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    Latest Posts

    Transforming Geek Culture with Advanced Software Development

    April 8, 2024

    The Role of Technology in Enhancing Digital Signage Solutions

    February 21, 2024

    How to Check Linux CPU Usage?

    February 5, 2024

    Linux export Command: A Comprehensive Tutorial

    February 3, 2024

    [Fixed] HDMI No Signal to TV or Monitor on Windows 10/11

    November 7, 2023

    AlmaLinux vs Ubuntu – How to Select the Best One?

    October 22, 2023

    Subscribe to Updates

    Get the latest news and updates from Hectic Geek. We won't overload you or sell your data!

    Contact
    • About Us
    • Contact Us
    • Privacy Policy
    • Write for Us
    X (Twitter)
    © 2026 Hectic Geek.

    Type above and press Enter to search. Press Esc to cancel.