I am slowly publishing our movie clips to my gallery. Gallery software has an excellent ffmpeg plugin that automatically creates thumbnails for movies so that it is very easy to see what is what. The only shortcoming it has is that it is not possible pick the frame from the clip for the thumbnail. It always takes the first one. Or maybe I just haven’t found out how to work aorund it.
Anyway, the good thing is that Gallery also allows to use custom thumbnails for albums and files. This comes very handy when the clip that you’ve posted starts with a second or two of black screne. Or some other non-sense. All you have to do than is running the following command:
[me@here dir]$ ffmpeg -y -i someclip.avi \ [me@here dir]> -f singlejpeg -ss 10 -vframes 1 \ [me@here dir]> -s 150x100 -an thumb.jpg
Obviously you’d want to change a few things here. someclip.avi should be the name of you movie clip file that
ffmpeg will be processing. thumb.jpg is the name of the file to save the thumbnail in. 10 nearby the
-ss option tells
ffmpeg how many seconds from the start of the clip you want to skip. If you want to skip a few minutes or hours, or specify a split second, then check
ffmpeg manual for the syntax. And the last option that should be interesting for you is the
-s which in my example has the value of 150×100 – the size of the image in pixels (X,Y).