Skip to content

Instantly share code, notes, and snippets.

@felipsmartins
Last active July 9, 2023 18:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save felipsmartins/0e40d8ad8ee00a73a3e2615e44c28ec3 to your computer and use it in GitHub Desktop.
Save felipsmartins/0e40d8ad8ee00a73a3e2615e44c28ec3 to your computer and use it in GitHub Desktop.
nvidia shadow play like
# example: DP-0
MONITOR=$__GL_SYNC_DISPLAY_DEVICE
# old working comand on debian 11
# gpu-screen-recorder -o ~/clips -c mp4 -f 60 -r 15 -w $MONITOR -a "$X_AUDIO1.monitor"
# updated command
DEFAULT_AUDIO_OUTPUT=$(pactl get-default-sink)
DEFAULT_AUDIO_INPUT=$(pactl get-default-source)
gpu-screen-recorder -o ~/clips -c mp4 -f 60 -r 15 -w $MONITOR -a "$DEFAULT_AUDIO_OUTPUT.monitor|$DEFAULT_AUDIO_INPUT"
# no record mic:
# gpu-screen-recorder -o ~/clips -c mp4 -f 60 -r 15 -w $MONITOR -a "$DEFAULT_AUDIO_OUTPUT.monitor"
# Finally, bind keyboard shortcut for `killall -SIGUSR1 gpu-screen-recorder` for clipping
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment