This commit is contained in:
nik
2025-10-15 17:41:27 -07:00
parent 1f6349fdae
commit 5dee92a92a
9 changed files with 16 additions and 0 deletions

1
scripts/README Normal file
View File

@ -0,0 +1 @@
this dir contains less often used or old/deprecated scripts

15
scripts/record Executable file
View File

@ -0,0 +1,15 @@
#!/bin/sh
SCREEN="ffmpeg -s 3440x1440 -f x11grab -r 60 -i :0.0+0,0"
SYSTEM_AUDIO="-f pulse -i alsa_output.pci-0000_00_1f.3.iec958-stereo.monitor"
MICROPHONE="-f pulse -i default:monitor"
COMPRESSION="-c:a flac -c:v hevc_nvenc -b:v 12M"
FILENAME="$HOME/wdraidz/media/game-videos/$(date +%m-%d-%Y_%R:%S).mkv"
SIGSEND="kill -n 36 $(pidof dwmblocks)"
if [[ $1 == 1 ]]; then
$SCREEN $SYSTEM_AUDIO $MICROPHONE -filter_complex "[1:0][2:0]amerge=inputs=2[a]" -map 0:v -map "[a]" $COMPRESSION $FILENAME&
else
$SCREEN $SYSTEM_AUDIO $COMPRESSION $FILENAME&
fi
$SIGSEND