Skip to content

Instantly share code, notes, and snippets.

@XnipS
Last active November 1, 2022 01:37
Show Gist options
  • Save XnipS/9d11a66aba7237cf95c603b1f5a2e52a to your computer and use it in GitHub Desktop.
Save XnipS/9d11a66aba7237cf95c603b1f5a2e52a to your computer and use it in GitHub Desktop.
Used to initialise shadowplay using gpu-screen-recorder
#!/bin/bash
gpu-screen-recorder -w DP-0 -c mp4 -f 30 -a desktop/alsa_output.usb-Plantronics_RIG_WD1-00.analog-stereo.monitor -a mic/alsa_input.usb-Plantronics_RIG_WD1-00.mono-fallback -q very_high -r 120 -k auto -o /home/luke/Videos/Replays
# To get audio -> LANG=C pactl list | grep -A2 'Source #' | grep 'Name: ' | cut -d" " -f2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment