Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm suffering from problem that video-thumbnails do not appear in nautilus for some video files. I just found this bug typefinding: some mpeg files are not identified as mpeg files which seems to address the problem. I don't understand the specifics as reported in this bug report, but it sounds like it's a problem with Totem's interaction with Gstreamer.

Since all my videos play fine with VLC (and they don't all play with Totem), I don't use Totem very much. Is there a way to make VLC generate the video-thumbnails instead of having to rely on the buggy gstreamer/totem? I made VLC my default video player but this had no effect on the display of video-thumbnails. If Totem can't play the video file, then I get no thumbnail. But VLC can play the videos fine, so why can't VLC create a video-thumbnail for it?

share|improve this question
1  
There's ffmpegthumbs and ffmpegthumbnailer as alternatives to totem thumbnailer. I don't know of any vlc thumbnailer though. hecticgeek.com/2011/11/… –  medigeek Jun 17 '12 at 7:45
1  
Possible Duplicate askubuntu.com/questions/2608/… –  Mitch Jun 27 '12 at 7:33
    
@medigeek - as far as I know, ffmpeg is the back-end for vlc. –  hbdgaf Jun 27 '12 at 20:46
    
Does this work Nautilus File Manager >> edit > Preferences >>Preview column >> Other Previewable files >>show thumbnails to always / In Only files for smaller than ~Desired values from drop down menu. –  atenz Jun 28 '12 at 8:31
    
Take a look into this tutoriall on how to use ffmpegthumbnailers to generate video thumbs in nautilus. If you are not satisfied, try to change it to use vlc as the generator regarding this one. –  Hedy Jun 29 '12 at 2:51
show 2 more comments

2 Answers 2

First, make sure all the ffmpeg (the back of vlc) components you need are installed:

sudo apt-get install ffmpeg ffmpegthumbnailer gstreamer0.10-ffmpeg

Clear the thumbnail cache, with bleachbit, ubuntu tweak, or this command:

rm ~/.thumbnails/fail/gnome-thumbnail-factory/*
rm ~/.thumbnails/normal/*

Now we need to tell Ubuntu not to use totem, but to use ffmpeg instead.
sudo nano /usr/share/thumbnailers/totem.thumbnailer and replace all the ext in totem.thumbnailer with the following:

[Thumbnailer Entry]
TryExec=ffmpegthumbnailer
Exec=ffmpegthumbnailer -s %s -i %i -o %o -c png -f -t 10
MimeType=application/mxf;application/ogg;application/ram;application/sdp;application/vnd.ms-wpl;application/vnd.rn-realmedia;application/x-extension-m4a;application/x-extension-mp4;application/x-flash-video;application/x-matroska;application/x-netshow-channel;application/x-ogg;application/x-quicktimeplayer;application/x-shorten;image/vnd.rn-realpix;image/x-pict;misc/ultravox;text/x-google-video-pointer;video/3gpp;video/dv;video/fli;video/flv;video/mp2t;video/mp4;video/mp4v-es;video/mpeg;video/msvideo;video/ogg;video/quicktime;video/vivo;video/vnd.divx;video/vnd.rn-realvideo;video/vnd.vivo;video/webm;video/x-anim;video/x-avi;video/x-flc;video/x-fli;video/x-flic;video/x-flv;video/x-m4v;video/x-matroska;video/x-mpeg;video/x-ms-asf;video/x-ms-asx;video/x-msvideo;video/x-ms-wm;video/x-ms-wmv;video/x-ms-wmx;video/x-ms-wvx;video/x-nsv;video/x-ogm+ogg;video/x-theora+ogg;video/x-totem-stream;audio/x-pn-realaudio;audio/3gpp;audio/ac3;audio/AMR;audio/AMR-WB;audio/basic;audio/midi;audio/mp2;audio/mp4;audio/mpeg;audio/ogg;audio/prs.sid;audio/vnd.rn-realaudio;audio/x-aiff;audio/x-ape;audio/x-flac;audio/x-gsm;audio/x-it;audio/x-m4a;audio/x-matroska;audio/x-mod;audio/x-mp3;audio/x-mpeg;audio/x-ms-asf;audio/x-ms-asx;audio/x-ms-wax;audio/x-ms-wma;audio/x-musepack;audio/x-pn-aiff;audio/x-pn-au;audio/x-pn-wav;audio/x-pn-windows-acm;audio/x-realaudio;audio/x-real-audio;audio/x-sbc;audio/x-speex;audio/x-tta;audio/x-wav;audio/x-wavpack;audio/x-vorbis;audio/x-vorbis+ogg;audio/x-xm;application/x-flac;

And exit nautilus:

nautilus -q

Go to you video and see the thumbnail preview appear for all videos.

share|improve this answer
    
This is exactly what I did on my 12.04 box –  Jason Jul 15 '12 at 15:03
    
If this does not work read the complete version here: askubuntu.com/questions/2608/… –  Chirag Aug 18 '12 at 23:53
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.