myhome/.local/bin/record
Marcin Woźniak 2040211f98
Updated
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2020-11-10 00:26:41 +01:00

14 lines
265 B
Bash
Executable File

#!/bin/bash
AUDIO=$(pactl list sources | awk '/Name: alsa_out/{print $2}')
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"