#!/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 " echo "example: $BASENAME out.mkv" exit 1 fi # Dispatch with vertical offset #ffmpeg -f x11grab -r 25 -s 1366x752 -i :0.0+0,16 -vcodec libx264 -vpre lossless_ultrafast -threads 0 $OUT # Dispatch ffmpeg -f x11grab -r 25 -s 1366x752 -i :0.0 -vcodec libx264 -vpre lossless_ultrafast -threads 0 $OUT