]> gitweb.fluxo.info Git - utils-x11.git/commitdiff
Adds screencaster
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 18 Nov 2015 18:55:43 +0000 (16:55 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 18 Nov 2015 18:55:43 +0000 (16:55 -0200)
TODO.md
screencaster [new file with mode: 0755]

diff --git a/TODO.md b/TODO.md
index 8ab655d36fa3eef112b989755ec94ea48510f2d9..abeedcc9b19b188345f57366763d6fa9037fa3c6 100644 (file)
--- a/TODO.md
+++ b/TODO.md
@@ -1,4 +1,4 @@
 TODO
 ====
 
-* Nothing here? :P
+* Screencaster: command line arguments.
diff --git a/screencaster b/screencaster
new file mode 100755 (executable)
index 0000000..579c2ec
--- /dev/null
@@ -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