and filr setpts
For example, the video 24 hours long to fit in 5 minutes – so speed it up to 288 times:
ffmpeg -i daily.mp4 -filter:v "setpts=PTS/288" timelapse.mp4
Another option all day not shooting video yet, but to limit photo-frames, of which then you can collect the same 5-minute video. 5 minutes with a frame rate of 30 frames per second is 9000 frames which are evenly (or not) to distribute 24 hours of a day. This is one picture in 9.6 seconds. Get a file folder 00001.jpg, 00002.jpg .. 09000.jpg from which then the same ffmpeg to gather video:
ffmpeg -i %05d.jpg -c:v libx264 -r 30 -pix_fmt yuv420p timelapse.mp4
Team from memory, not tested.