capture
is a no bullshit screen capture tool.
An install script is provided for convenience.
$ curl -Lo- "https://raw.githubusercontent.com/buhman/capture/master/install.sh" | sudo bash
This is just a handful of trivial commands to install capture
in
/usr/local/bin
. Feel free to copy-paste instead if you wish.
Dependencies are not considered during installation; you need to make these exist on your own.
slop
ffmpeg>2.2
coreutils
bash>4.0
Maximum simple:
capture
You'll get a selection rectangle, followed by the capture of that region. You
can either drag-select a region, or click to select an entire window. Press q
(once) to stop the capture and finish encoding. The resulting filename, if not
specified, will be printed on stdout.
If you're uploading the output to elsewhere immediately; you might want to do this.
capture webm - | upload_to_space
You can coincidentally also use other protocols like pipe.
Create a 320-pixel wide gif that maintains aspect ratio:
capture gif output.gif 320:-1
This is basically only useful when you want something you can embed on services like github, otherwise webm/vp9 is massively more efficient.
I try to provide sane defaults that result in acceptable-quality video with minimum size optimized for quick sharing over the internet. If you don't like these; the ffmpeg arguments should be easy to edit.
If you think there's a better default; open an issue.