snippets/screencast.sh

13 lines
244 B
Bash
Raw Normal View History

2018-12-07 13:08:45 +01:00
#!/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