<p>Basic form is</p>

<pre><code>ffmpeg -i livestream -vf select=key -vsync 0 -q:v 1 snaps%d.jpg
</code></pre>

CC BY-SA 4.0
2019-02-26T16:47:29.987Z
2019-02-26T16:47:29.987Z
Gyan
<p>I'm trying to create a "highlights" gallery for an event that's been livestreamed (say an Apple product launch keynote or similar H264 stream) - is there a way using FFMPEG to dump all the keyframes / a frame every 5 seconds into a folder as images? I can then curate the most interesting ones. </p>

<p>I'd think that keyframes are a better bet because they'd represent a scene or camera angle change, which would correspond to "interestingness", but are there any other better ways to do this? </p>

<ffmpeg><live>
Dump keyframes of a livestream
Sudhir Jonathan
# Dump keyframes of a livestream

(Asked by: username_0 on 2019-02-26)

I'm trying to create a "highlights" gallery for an event that's been livestreamed (say an Apple product launch keynote or similar H264 stream) - is there a way using FFMPEG to dump all the keyframes / a frame every 5 seconds into a folder as images? I can then curate the most interesting ones.

I'd think that keyframes are a better bet because they'd represent a scene or camera angle change, which would correspond to "interestingness", but are there any other better ways to do this?

**Tags:** ffmpeg, live


---

## 1 answers

### Answer by username_1 on 2019-02-26. Score: 1

Basic form is
ffmpeg -i livestream -vf select=key -vsync 0 -q:v 1 snaps%d.jpg


---

