snippets/screencast.sh
2018-12-07 13:08:45 +01:00

13 lines
244 B
Bash
Executable File

#!/bin/bash
timestamp=`date "+%Y%m%d-%H%M%S"`
filename="screencast-$timestamp.mp4"
pavucontrol &
ffmpeg -f x11grab \
-s $(xdpyinfo | grep dimensions | awk '{print $2}') \
-i :0.0 \
-f pulse -i default \
$filename