Hello there! You are currently visiting gopherspace through a
proxy. To learn more about gopher and how to browse it, read this.
______________________________________________________________________

#!/bin/bash

# Record a region of the screen and saves it to a webm file with a
# unique filename in the current working directory.
#
# Requires https://github.com/lolilolicon/FFcast and
# gopher://sdf.org/1/users/loli/linux/scripts/mkunique
#
# Usage:
# webmcast
# (select screen region)
# (do stuff)
# (press q in the terminal where gifcast was started)

TMP_AVI=$(mkunique)

ffcast -s \
ffmpeg -y -f x11grab -show_region 1 \
-framerate 60 -s %s -i %D+%c -codec:v huffyuv \
$TMP_AVI.avi \
&& \
ffmpeg -i $TMP_AVI.avi $TMP_AVI.webm \

rm $TMP_AVI.avi