Skip to content

mtib/newlapse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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