cat record.sh
set -x
ffmpeg -video_size 1920x1080 -framerate 30 -f x11grab -draw_mouse 0 -i :1 -c:v libx264 -crf 0 -preset ultrafast ~/Videos/$1
To use:
- chmod +x record.sh
./record filename.mp4
- adapt filename and extension as needed
- hit
q
when done - the video is recorded to
~/Videos/