dmenurecord script update

This commit is contained in:
krolyxon 2023-01-26 17:28:27 +05:30
parent 75b30174be
commit 112b027d52
1 changed files with 5 additions and 0 deletions

View File

@ -3,6 +3,11 @@
screencast() { \ screencast() { \
ffmpeg -f x11grab -r 30 -s 1920x1080 -i :0.0 \ ffmpeg -f x11grab -r 30 -s 1920x1080 -i :0.0 \
-f pulse -ac 2 -ar 48000 -i alsa_output.pci-0000_00_1b.0.analog-stereo.monitor \ -f pulse -ac 2 -ar 48000 -i alsa_output.pci-0000_00_1b.0.analog-stereo.monitor \
-r 24 \
-use_wallclock_as_timestamps 1 \
-f alsa -thread_queue_size 1024 -i default \
-c:v h264 \
-crf 0 -preset ultrafast -c:a aac \
~/vids/recs/"$(date '+%C%y-%m%M-%d-%H-%M-%S').mp4" & ~/vids/recs/"$(date '+%C%y-%m%M-%d-%H-%M-%S').mp4" &
echo $! > /tmp/recordingpid echo $! > /tmp/recordingpid
} }