22 lines
308 B
Bash
Executable File
22 lines
308 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Capture screen script
|
|
prefix=`date +"%G.%m.%d_%H.%M.%S"`
|
|
|
|
ffmpeg -y -f x11grab \
|
|
-video_size 1920x1080 \
|
|
-r 30 \
|
|
-i $DISPLAY \
|
|
-f pulse \
|
|
-ac 2 \
|
|
-i default \
|
|
-c:v libx264 \
|
|
-crf 0 \
|
|
-pix_fmt yuv420p \
|
|
-preset ultrafast \
|
|
-threads 0 \
|
|
$prefix.mp4
|
|
# -f alsa \
|
|
# -i hw:2,1 \
|
|
#-an \
|