Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I use cron; I think it's pretty neat:

/$INTERVAL * * * /usr/sbin/screencapture $CRONSHOTSDIR/`date +\%s`.png

and then to make the timelapse:

ffmpeg -r $FPS -pattern_type glob -i "*.png" -vcodec libx264 lapse-`date +%s`.mp4

You have to give screen capture permissions to cron.



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: