aboutsummaryrefslogtreecommitdiff
path: root/screencaster
blob: 9718528e377e337f63a54c718b565964ee158432 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/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 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