update signaling
This commit is contained in:
8
bin/gsr
8
bin/gsr
@ -7,18 +7,18 @@ VIDEO="-w DP-3 -k av1_10bit -c mkv -fm content -bm vbr"
|
||||
OUTPUT="-o $HOME/wdraidz/media/game-videos/$(date +%m-%d-%Y_%R:%S).mkv"
|
||||
|
||||
if [ -n "$GSRPID" ]; then
|
||||
kill -2 $GSRPID
|
||||
kill -36 $DWMBLOCKSPID
|
||||
kill -SIGINT $GSRPID
|
||||
kill -RTMIN+2 $DWMBLOCKSPID
|
||||
notify-send "recording saved" -i :
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ $1 = 1 ]; then
|
||||
gpu-screen-recorder $VIDEO $AUDIONOMIC $OUTPUT&
|
||||
kill -36 $DWMBLOCKSPID
|
||||
kill -RTMIN+2 $DWMBLOCKSPID
|
||||
notify-send "recording started with no mic" -i :
|
||||
else
|
||||
gpu-screen-recorder $VIDEO $AUDIO $OUTPUT&
|
||||
kill -36 $DWMBLOCKSPID
|
||||
kill -RTMIN+2 $DWMBLOCKSPID
|
||||
notify-send "recording started" -i :
|
||||
fi
|
||||
|
||||
@ -4,7 +4,7 @@ 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 10M"
|
||||
FILENAME="$HOME/wdraidz/media/game-videos/$(date +%m-%d-%Y_%R:%S).mkv"
|
||||
SIGSEND="kill -n 36 $(pidof dwmblocks)"
|
||||
SIGSEND="kill -RTMIN+2 $(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&
|
||||
|
||||
Reference in New Issue
Block a user