Timelapse Tools

Anybody knows any good timelapse tools for Ubuntu/Linux?

I did a quick research and in the end the conclusion was either using ffmpeg to directly capture from screen and generate the video file or using OBS. The problem with the former is that it only supports x-server and can't capture it on Wayland and the latter is that you can select the framerate of the capture to be say 1fps, but then the final video will also have 1fps and you'll have edit the video and change the framerate, and it also generate a 100mb video of mere 5 minutes of recording.

I really like the idea of the ffmpeg of capturing screen still at a certain rate and then just make a video with that afterwards. Does anyone know any tools to do that?

Thanks!