video – timelapse from live stream with ffmpeg

I have a webcam connected to my windows 11 pc and I want to make a timelapse video.

using the following I can make a video but if I leave it on for hours its too long so I want to capture only 1 frame per second so when I play the video back it is very short like a timelapse

ffmpeg -f dshow -i video=”USB2.0 PC CAMERA”: test.mp4

is there any way to make the timelapse directly to mp4?

or do I have to make screen caps first then convert them to a video?

I tried the following but it does not even make screen shots
ffmpeg -t 100000 -f vfwcap -s 1280×720 -i -r 1 -f image2 camera%06d.jpg

Please help.

Thanks

Read more here: Source link