[FFmpeg-user] How to extract the very starting frame for every second on a live videi input?

Carl Eugen Hoyos ceffmpeg at gmail.com
Mon Apr 13 16:32:19 EEST 2020


Am Mo., 13. Apr. 2020 um 15:29 Uhr schrieb Ramana <ramanajajula9 at gmail.com>:

> ffmpeg -i INPUT.ts -vf "select=between(mod(n\, 25)\, 0\, 0), setpts=N/24/TB"
> output-%04d.jpg
>
> The above command is extracting the zero-th frame on every second total
> number of extracted frames are 3600. But, it is not working on live feed.
>
> It is extracting almost 100000 frames per hour when I run it on live feed.
>
> I don't know the exact reason for this.

(Complete, uncut console output missing)

Since the live stream can start at any frame within a second, I don't
think counting frames will help you to get the first frame of a second.

Carl Eugen


More information about the ffmpeg-user mailing list