diff options
Diffstat (limited to 'screencaster')
-rwxr-xr-x | screencaster | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/screencaster b/screencaster new file mode 100755 index 0000000..579c2ec --- /dev/null +++ b/screencaster @@ -0,0 +1,19 @@ +#!/bin/bash +# +# Screencast recorder +# See https://links.fluxo.info/bookmarks/rhatto/screencast +# + +# Parameters +BASENAME="`basename $0`" +OUT="$1" + +# Syntax check +if [ -z "$OUT" ]; then + echo "usage: $BASENAME <outfile>" + echo "example: $BASENAME out.mkv" + exit 1 +fi + +# Dispatch +ffmpeg -f x11grab -r 25 -s 1366x752 -i :0.0+0,16 -vcodec libx264 -vpre lossless_ultrafast -threads 0 $OUT |