diff options
| author | dec05eba <dec05eba@protonmail.com> | 2026-08-05 15:26:36 +0200 |
|---|---|---|
| committer | dec05eba <dec05eba@protonmail.com> | 2026-08-05 15:26:36 +0200 |
| commit | 3a1ce0e17f209702095aaa86fedeb74400b3d039 (patch) | |
| tree | d16516e0876361da09c4ff6f05be5f190d0891a1 /gpu-screen-recorder.1 | |
| parent | f17157274d02ddf88af7af95ad6353b231983f5a (diff) | |
ipc: save-replay: add restart-replay option
Diffstat (limited to 'gpu-screen-recorder.1')
| -rw-r--r-- | gpu-screen-recorder.1 | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/gpu-screen-recorder.1 b/gpu-screen-recorder.1 index 67857a8..9f461cc 100644 --- a/gpu-screen-recorder.1 +++ b/gpu-screen-recorder.1 @@ -527,8 +527,22 @@ saved file, except in replay mode where nothing is saved. .B save-replay Save replay (replay mode only). .B data -is the number of seconds to save, which has to be larger than 0. The whole replay buffer is saved when +is an object with these optional fields: +.RS +.TP +.B seconds +The number of seconds to save, which has to be larger than 0. +.TP +.B restart-replay +true/false, which overrides the +.B \-restart\-replay\-on\-save +option for this save. Just like that option, the replay buffer is only cleared when the whole replay buffer is saved. +.RE +.IP +The whole replay buffer is saved when .B data +is omitted or null, or when +.B seconds is omitted or null. The reply contains the path of the saved file. .TP .B toggle-pause @@ -559,7 +573,7 @@ Example: .nf .RS gpu-screen-recorder -w screen -f 60 -c mp4 -r 60 -o ~/Videos -ipc "$XDG_RUNTIME_DIR/gsr.sock" & -echo '{"id":1,"name":"save-replay","data":30}' | socat - "UNIX-CONNECT:$XDG_RUNTIME_DIR/gsr.sock" +echo '{"id":1,"name":"save-replay","data":{"seconds":30}}' | socat - "UNIX-CONNECT:$XDG_RUNTIME_DIR/gsr.sock" .RE .fi which replies with the following when the replay has been saved: |
