merge gsr and record

This commit is contained in:
2026-03-01 22:46:26 -08:00
parent e0caf9e7cc
commit 02d25317bd

View File

@@ -1,8 +1,8 @@
#!/bin/sh #!/bin/sh
SCREEN="ffmpeg -s 3440x1440 -f x11grab -r 60 -i :0.0+0,0" SCREEN="ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -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" SYSTEM_AUDIO="-f pulse -i alsa_output.pci-0000_00_1f.3.iec958-stereo.monitor"
MICROPHONE="-f pulse -i default:monitor" MICROPHONE="-f pulse -i default:monitor"
COMPRESSION="-c:a flac -c:v hevc_nvenc -b:v 10M" COMPRESSION="-c:a flac -vf format=nv12,hwupload -c:v av1_vaapi -b:v 12M"
FILENAME="$HOME/wdraidz/media/game-videos/$(date +%m-%d-%Y_%R:%S).mkv" FILENAME="$HOME/wdraidz/media/game-videos/$(date +%m-%d-%Y_%R:%S).mkv"
SIGSEND="kill -RTMIN+2 $(pidof dwmblocks)" SIGSEND="kill -RTMIN+2 $(pidof dwmblocks)"
@@ -13,3 +13,28 @@ else
fi fi
$SIGSEND $SIGSEND
# gpu-screen-recorder
#GSRPID=$(pidof gpu-screen-recorder)
#DWMBLOCKSPID=$(pidof dwmblocks)
#AUDIO="-ac opus -a default_output|default_input"
#AUDIONOMIC="-ac opus -a default_output"
#VIDEO="-w DisplayPort-1 -k av1 -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 -SIGINT $GSRPID
# kill -RTMIN+2 $DWMBLOCKSPID
# notify-send "recording saved" -i :
# exit
#fi
#
#if [ $1 = 1 ]; then
# gpu-screen-recorder $VIDEO $AUDIONOMIC $OUTPUT&
# kill -RTMIN+2 $DWMBLOCKSPID
# notify-send "recording started with no mic" -i :
#else
# gpu-screen-recorder $VIDEO $AUDIO $OUTPUT&
# kill -RTMIN+2 $DWMBLOCKSPID
# notify-send "recording started" -i :
#fi