asciimoo / crapture

A hackish automated window recorder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crapture

A hackish automated window recorder.

Features

  • Screenplay driven. You don't have to worry about typing errors, timings or reproducibility
  • Optimized gif output

Example screenplay

echo 'Hello world!'
{{ sleep 3 }}cmatrix
{{ sleep 4 }}q{{ sleep 1 }}echo 'Goodbyz{{ sleep 0.2 }}{{ backspace }}e plane{{ sleep 0.5 }}{{ control w }}world!'
{{ sleep 4 }}

Example screencast

GIF size: 143K

Usage

$ python crapture.py your.screenplay -o x.gif
[Select a window to start capture]
...

Crapture requires a screenplay file as input which describes the recording. This file is a simple text file with the following additions:

  • {{ sleep N }}: sleep N seconds (integers and floats are accepted)
  • {{ exec cmd arg1 arg2... }}: executes a shell command (Example: {{ exec echo "capturing finished" }})
  • {{ list of keys }}: press keys combinations. (Example: {{ control l }} clears screen in terminal)

Any other string will be typed letter by letter to the target window.

Requirements

Setup

git clone https://github.com/asciimoo/crapture
cd scrapture
virtualenv env
source env/bin/activate
pip install -r requirements.txt

About

A hackish automated window recorder

License:GNU Affero General Public License v3.0


Languages

Language:Python 100.0%