A hackish automated window recorder.
- Screenplay driven. You don't have to worry about typing errors, timings or reproducibility
- Optimized gif output
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 }}
GIF size: 143K
$ 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.
- byzanz desktop recorder (https://linux.die.net/man/1/byzanz-record)
- xwinfo command
- python
git clone https://github.com/asciimoo/crapture
cd scrapture
virtualenv env
source env/bin/activate
pip install -r requirements.txt