<p>I'm trying to generate a GIF thumbnail out of a video, similar to what youtube thumbnail works when we hover the mouse on a thumbnail as a video preview.</p>

<p>Is there any ways to do it with FFmpeg? Say I want to generate a 2-3 second GIF out of a video. How can I do that? Based on what I see from youtube, apparently it takes one frame out of multiple consecutive frames, not all of them.</p>

<p>I'm not really concerned if that GIF is a good representative of the video as that is more semantic problem to investigate.</p>

CC BY-SA 4.0
2019-05-28T20:04:30.180Z
.You want to pick every Nth frame and compose a GIF?
Gyan
CC BY-SA 4.0
2019-05-28T21:12:47.290Z
@Gyan That. Plus another approach can be pick multiple consecutive I-frames (or every Nth I-frame) and compose a GIF.
angel_30
<video><ffmpeg><video-editor>
GIF video thumbnail with FFmpeg
angel_30
# GIF video thumbnail with FFmpeg

(Asked by: username_0 on 2019-05-28)

I'm trying to generate a GIF thumbnail out of a video, similar to what youtube thumbnail works when we hover the mouse on a thumbnail as a video preview.

Is there any ways to do it with FFmpeg? Say I want to generate a 2-3 second GIF out of a video. How can I do that? Based on what I see from youtube, apparently it takes one frame out of multiple consecutive frames, not all of them.

I'm not really concerned if that GIF is a good representative of the video as that is more semantic problem to investigate.

**Tags:** video, ffmpeg, video-editor

> **Comments:**
> **username_1**: .You want to pick every Nth frame and compose a GIF?  
> **username_0**: @username_1 That. Plus another approach can be pick multiple consecutive I-frames (or every Nth I-frame) and compose a GIF.  

---

## 0 answers

