Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/postspectacular/screenlapse
No frills/thrills NodeJS based timelapse screen recording CLI util
https://github.com/postspectacular/screenlapse
cli ffmpeg javascript screencapture timelapse
Last synced: about 1 month ago
JSON representation
No frills/thrills NodeJS based timelapse screen recording CLI util
- Host: GitHub
- URL: https://github.com/postspectacular/screenlapse
- Owner: postspectacular
- License: apache-2.0
- Created: 2019-07-08T21:44:26.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-01-23T13:08:52.000Z (almost 2 years ago)
- Last Synced: 2024-10-05T16:30:53.433Z (about 2 months ago)
- Topics: cli, ffmpeg, javascript, screencapture, timelapse
- Language: JavaScript
- Homepage:
- Size: 25.4 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# screenlapse
No frills NodeJS based timelapse screen recording CLI util, largely thanks to
[screenshot-desktop](https://github.com/bencevans/screenshot-desktop). Records
screenshots as image sequence w/ configurable interval.```bash
git clone https://github.com/postspectacular/screenlapsecd screenlapse
yarn install# start recording, ctrl+c to stop
./screenlapse.js
```All args are optional, but must be given in this order:
- `` - number of milliseconds between each recorded frame (default: 500)
- `` - start frame number (default: 0)## Editing the image sequence
Since each recorded frame is stored as separate JPG file, removing
unwanted frames is easy. However, the missing frames cause the image
sequence to be interrupted in terms of consecutive numbering and
`ffmpeg` will stop encoding at the first gap. To avoid this, use the
included `batch-rename` bash script to rename / renumber all images like
that:```bash
./batch-rename *.jpg
```## Build mp4
```bash
ffmpeg -r 12 -i '%04d.jpg' -vf scale=1920:-1 -movflags faststart -c:v libx264 -preset slow -crf 18 -y recording.mp4
```## License
© 2019 - 2023 Karsten Schmidt // Apache License Version 2.0