Overhaul of screencasting scripts

This commit is contained in:
Luke Smith
2018-04-10 23:08:43 -07:00
parent e2225d418d
commit f61ab66785
10 changed files with 92 additions and 101 deletions

18
.scripts/video Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
# This script records video.
# It also names files smartly to prevent overwrites.
# Picks a file name for the output file based on availability:
while [[ -f $HOME/video$n.mkv ]]
do
n=$((n+1))
done
filename="$HOME/video$n.mkv"
# The actual ffmpeg command:
ffmpeg \
-f x11grab \
-s $(xdpyinfo | grep dimensions | awk '{print $2;}') \
-i :0.0 \
-c:v libx264 -qp 0 -r 30 $filename