O
O
OKNOZA2016-03-08 10:46:35
fmpeg
OKNOZA, 2016-03-08 10:46:35

How to get screenshot via FFmpeg?

There is an online broadcast and you need to take a screenshot every 5 minutes, how to make screenshots automatically, delete the old screen and replace it with a new one.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
monah_tuk, 2016-03-08
@monah_tuk

Lehko!
This is a working test case with screenshot generation (TMP.jpeg) every 30 seconds. For 5 minutes - 1/300.
For rtmp publish it will be something like this:
And again I repeat: read the docks, they rulez:
1) https://ffmpeg.org/ffmpeg-formats.html#image2-2
2) https://ffmpeg.org/ffmpeg.html#Synopsis
PS about updatefirst instead of update, this is a jamb in the docks :) but ffmpeg itself gives a hint when it starts.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question