Giter Site home page Giter Site logo

screenlapse's Introduction

screenlapse

No frills NodeJS based timelapse screen recording CLI util, largely thanks to screenshot-desktop. Records screenshots as image sequence w/ configurable interval.

git clone https://github.com/postspectacular/screenlapse

cd screenlapse
yarn install

# start recording, ctrl+c to stop
./screenlapse.js <delay> <startframe>

All args are optional, but must be given in this order:

  • <delay> - number of milliseconds between each recorded frame (default: 500)
  • <startframe> - 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:

./batch-rename *.jpg

Build mp4

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

screenlapse's People

Contributors

postspectacular avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

arronmabrey

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.