You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Markus Becker ceaf1c2101 Added mosaic script 5 months ago
capture use jpgs - save space 3 years ago
convert use jpgs - save space 3 years ago
crop nicer mutlithreading 3 years ago
v2 Added mosaic script 5 months ago
.gitignore Complete Redesign [Python -> Go] 4 years ago
LICENSE Initial commit 5 years ago
README.md Fix table in README 2 years ago
example.sh example script 3 years ago
go.mod newlapse v2 5 months ago
newlapse.go mac support 4 years ago

README.md

NewLapse

This replaces chronolapse on linux

Usage

newlapse -capture -rate 10 -folder "recording"
newlapse -crop -folder "recording"
newlapse -convert -fps 20

You can also do the following

newlapse -ccc -rate 5 -fps 10 -folder "tmp"

which will capture a picture of the screen every 5 seconds, and save it in the ./tmp folder. if you CTRL+C it will start cropping the pictures and convert each screen into a mp4 file.

On a mac with retina display you will need to write a config file. First you have to figure out how big the screencapture pictures are. In my case 2800x1800. Then you echo "2800x1800+0+0" > config.txt". When cropping you just provide newlapse -crop -config "config.txt".

Help Text

$ newlapse -help
Usage of newlapse:
  -capture
    	tells newlapse to capture
  -ccc
    	equals '-capture -crop -convert'
  -convert
    	tells newlapse to convert %%ds folders to videos
  -crop
    	tells newlapse to crop
  -folder string
    	which folder to do something with (default "./capture")
  -fps int
    	ffmpeg framerate for videos (default 20)
  -rate int
    	seconds to wait between scrots (default 10)
  -config string
    	config to read screensetup from for cropping (default "nil")

Examples

capturing into folder: ./capture
3.616E+05 byte/sec = 361.619 kb/sec = 0.362 mb/sec
2.170E+07 byte/min = 21697.140 kb/min = 21.697 mb/min
1GB of storage will be filled in 46.09 Minutes
picture #0000000001 taken
picture #0000000002 taken
picture #0000000003 taken
picture #0000000004 taken
picture #0000000005 taken
picture #0000000006 taken
picture #0000000007 taken
picture #0000000008 taken
^C
cropping folder: ./capture
start cropping (~8 files)
completed cropping
start ffmpeg conversion #1
start ffmpeg conversion #2
start ffmpeg conversion #3
completed conversion

Requirements:

Program Usage Operating System
scrot screenshot Linux
imagemagick crop Linux, OSX
ffmpeg convert Linux, OSX
 screencapture screenshot OSX
# Linux:
sudo apt-get install scrot ffmpeg imagemagick

# OSX:
brew update && brew install ffmpeg imagemagick

# Both:
go get -u github.com/mtib/newlapse