snippets/screencast
2021-06-14 16:26:04 +02:00

20 lines
378 B
Bash
Executable File

#!/bin/bash
timestamp=`date "+%Y%m%d-%H%M%S"`
filename="screencast-$timestamp.mp4"
killall -q redshift-gtk
#pavucontrol &
ffmpeg -f x11grab \
-framerate 60 \
-s $(xdpyinfo | grep dimensions | awk '{print $2}') \
-i :0.0 \
-f pulse -i default \
-r 30 \
-c:v h264 -crf 17 -preset ultrafast -c:a aac \
$filename
redshift-gtk &