From 3ae89c8d7c25f23a70bdec34c6e43cfe916f2d0c Mon Sep 17 00:00:00 2001 From: 4censord Date: Sun, 15 Oct 2023 15:44:33 +0200 Subject: Add the ability to save replays into folders by date This adds a new flag, '-mf' with a boolean argument If this is set, replays are organized in folders by date. With this, replays are saved like: $output_folder/2023-10-15/Replay_15-39-28.mp4 instead of all into the same folder. --- README.md | 1 + 1 file changed, 1 insertion(+) (limited to 'README.md') diff --git a/README.md b/README.md index b6a1805..e224606 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,7 @@ Here is an example of how to record all monitors and the default audio output: ` Streaming works the same as recording, but the `-o` argument should be path to the live streaming service you want to use (including your live streaming key). Take a look at scripts/twitch-stream.sh to see an example of how to stream to twitch. ## Replay mode Run `gpu-screen-recorder` with the `-c mp4` and `-r` option, for example: `gpu-screen-recorder -w screen -f 60 -r 30 -c mp4 -o ~/Videos`. Note that in this case, `-o` should point to a directory (that exists).\ +If `-mf yes` is set, replays are save in folders based on the date. To save a video in replay mode, you need to send signal SIGUSR1 to gpu screen recorder. You can do this by running `killall -SIGUSR1 gpu-screen-recorder`.\ To stop recording, send SIGINT to gpu screen recorder. You can do this by running `killall gpu-screen-recorder` or pressing `Ctrl-C` in the terminal that runs gpu screen recorder.\ The file path to the saved replay is output to stdout. All other output from GPU Screen Recorder is output to stderr. -- cgit v1.2.3