myhome/.local/bin/record

14 lines
276 B
Plaintext
Raw Normal View History

#!/bin/bash
AUDIO=$(pactl list sources | awk '/Name: alsa_out/{print $2}' | tail -n1)
ffmpeg \
-f pulse \
-i "$AUDIO" \
-f x11grab \
-framerate 60 \
-r 30 \
-s 1920x1080 \
-i :0 \
-c:v h264 -crf 0 -preset ultrafast -c:a aac \
"$HOME/screencast-$(date '+%y%m%d-%H%M-%S').mp4"