GSR-CLI(1)
GSR-CLI(1) ๐ โ the GPU Screen Recorder CLI Manual
โจ NAME โจ
gsr-cli โ control a running GPU Screen Recorder instance. That's literally it, bestie: it's the little remote control for a GPU Screen Recorder that's already vibing in the background. ๐ฎโจ
๐ธ SYNOPSIS ๐ธ
gsr-cli -ipc socket_path command [command_arguments...]
gsr-cli -h | --help
๐ DESCRIPTION ๐
Okay so gsr-cli sends a command to a gpu-screen-recorder(1) instance that was started with the -ipc option, and then it reports the reply back to you. ๐ This gives the same control as sending signals to GPU Screen Recorder, except that a replay can be saved with an arbitrary number of seconds and that the result of the command is known instead of being sent blindly. No cap.
gsr-cli exits with 0 when the command succeeded and 1 when it failed. When a command fails the reason is printed to stderr. ๐ญ but like, useful ๐ญ
๐ OPTIONS ๐
-ipc socket_pathโ The unix domain socket that GPU Screen Recorder was started with. Required. ๐
๐ COMMANDS ๐
statusโ Check if a GPU Screen Recorder instance is listening on the socket, which is done by connecting to the socket without sending a command. Printsrunningornot runningand exits with0when it's running. A socket file that was left behind by a GPU Screen Recorder instance that was killed counts as not running. ๐stopโ Stop and save recording (stop without save in replay mode). Waits until the recording has been saved and prints the path of the saved file. Nothing is printed in replay mode since nothing is saved. ๐๐พtoggle-pauseโ Pause/unpause recording (not for streaming/replay). โฏ๏ธset-paused true|falseโ Pause/unpause recording (not for streaming/replay). Unliketoggle-pausethis doesn't fail when the recording is already paused/unpaused, so the result doesn't depend on the current state. ๐งtoggle-replay-recordingโ Start/stop regular recording during replay/streaming, which requires GPU Screen Recorder to run with the-rooption. ๐start-replay-recordingโ Start regular recording during replay/streaming, which requires GPU Screen Recorder to run with the-rooption. Does nothing when a recording is already running. โถ๏ธstop-replay-recordingโ Stop the regular recording that runs during replay/streaming. Waits until the recording has been saved and prints the path of the saved file. Fails when no recording is running. โน๏ธsave-replay [seconds] [restart-replay=true|false]โ Save replay (replay mode only). The number of seconds has to be larger than0. The whole replay buffer is saved when no number of seconds is given. Waits until the replay has been saved and prints the path of the saved file.restart-replayoverrides the-restart-replay-on-saveoption of GPU Screen Recorder for this save, which clears the replay buffer after the whole replay buffer has been saved. ๐พโจ
๐ฆ EXAMPLES ๐ฆ
Start GPU Screen Recorder in replay mode with an ipc socket:
gpu-screen-recorder -w screen -f 60 -c mp4 -r 60 -o ~/Videos -ipc "$XDG_RUNTIME_DIR/gsr.sock" &
Save the last 30 seconds:
gsr-cli -ipc "$XDG_RUNTIME_DIR/gsr.sock" save-replay 30
Save the whole replay buffer and clear it:
gsr-cli -ipc "$XDG_RUNTIME_DIR/gsr.sock" save-replay restart-replay=true
Start replay only when it isn't already running:
gsr-cli -ipc "$XDG_RUNTIME_DIR/gsr.sock" status >/dev/null || start-replay.sh
๐ NOTES ๐
- The socket can only be used by the user that started GPU Screen Recorder. ๐
- The
stop,save-replayandstop-replay-recordingcommands are replied to when the file has been saved and the script given with the-scoption has been started, and the reply contains the path of the saved file. The other commands are replied to as soon as GPU Screen Recorder accepts them. ๐ฌ - GPU Screen Recorder creates the socket before it has finished starting up, so a command that is sent while it's starting up is replied to when the recording starts. โณ
๐ AUTHORS ๐
gsr-cli was written by the GPU Screen Recorder contributors. ๐
๐ REPORTING BUGS ๐
Report bugs to: dec05eba@protonmail.com. ๐ซถ
๐ COPYRIGHT ๐
Copyright ยฉ dec05eba. Licensed under GPL-3.0-only. ๐
โญ SEE ALSO โญ
Project homepage: https://git.dec05eba.com/gpu-screen-recorder/about/ ๐
xoxo, this iconic little page is from version 6.1.5, dated 2026-10-22 โ go be the main character of your own recording setup ๐๐
๐ฆ where this page comes from
- arch rolling: gpu-screen-recorder 6.1.6-1 ยท GPL-3.0-only
- nixpkgs unstable: gpu-screen-recorder 6.1.6
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms