from screen capture to video timelapse via CLI
✓ Published0🌍 Public
UUtopiah
Last edited Apr 17, 2020
Created on Apr 17, 2020
This example shows how a sequence of screen captures can be transformed into a playable video timelapse using command-line tools. The process starts with `scrot`, invoked via `watch -n 10`, to take screenshots every 10 seconds. A bash loop then renames the captured PNG files sequentially to `img%03d.png` format, ensuring proper ordering. Finally, `ffmpeg` assembles these frames into an MP4 video at 24 frames per second, scaling the output to 720 pixels wide. The code relies entirely on shell scripting, `scrot`, and `ffmpeg`, with no JavaScript or visualization libraries involved.
AI-generated description