2020-11-10 00:26:41 +01:00
|
|
|
#!/bin/bash
|
2020-11-23 00:43:02 +01:00
|
|
|
AUDIO=$(pactl list sources | awk '/Name: alsa_out/{print $2}' | head -n1)
|
|
|
|
|
|
|
|
pkill -9 xautolock; xset s 10800
|
2020-11-10 00:26:41 +01:00
|
|
|
|
|
|
|
ffmpeg \
|
|
|
|
-f pulse \
|
|
|
|
-i "$AUDIO" \
|
|
|
|
-f x11grab \
|
|
|
|
-framerate 60 \
|
|
|
|
-r 30 \
|
|
|
|
-s 1920x1080 \
|
|
|
|
-i :0 \
|
2020-12-03 21:38:13 +01:00
|
|
|
-b:v 5500k \
|
|
|
|
-c:v h264 -preset ultrafast -c:a aac \
|
2020-11-10 00:26:41 +01:00
|
|
|
"$HOME/screencast-$(date '+%y%m%d-%H%M-%S').mp4"
|
2020-11-23 00:43:02 +01:00
|
|
|
|
|
|
|
xset s 600&
|
|
|
|
xautolock -time 15 -locker slock&
|