organize
This commit is contained in:
1
scripts/README
Normal file
1
scripts/README
Normal file
@ -0,0 +1 @@
|
|||||||
|
this dir contains less often used or old/deprecated scripts
|
||||||
15
scripts/record
Executable file
15
scripts/record
Executable 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
|
||||||
Reference in New Issue
Block a user