Last active
July 9, 2023 18:46
-
-
Save felipsmartins/0e40d8ad8ee00a73a3e2615e44c28ec3 to your computer and use it in GitHub Desktop.
nvidia shadow play like
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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