You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wiki/wiki/linux/gpu_screen_recorder.md

1.4 KiB

GPU Screen Recorder

GPU Screen Recorder is a utility similar to Nvidia ShadowPlay.

Setup

GPU Screen Recorder can be installed on some distributions by installing the gpu-screen-recorder-git package. An installation via git is always possible.

Usage

The program features normal recording of the screen and recording in the so called replay mode. To start a simple screen recording run the following command.

gpu-screen-recorder -w $(xdotool selectwindow) -c mp4 -f 60 -a "$(pactl get-default-sink).monitor" -o test_video.mp4`

The window to record has to be selected first by clicking on it. The default audio device is already selected.

To stop the recording Ctrl-C the previous command or use the command below.

killall -SIGINT gpu-screen-recorder

For the replay mode the recording can be started the following way.

gpu-screen-recorder -w $(xdotool selectwindow) -c mp4 -f 60 -a "$(pactl get-default-sink).monitor" -r 30 -o .`

In this case a replay will have the maximum length of 30 seconds (specified by -r 30). It is also important to assign the -o flag with a directory and not a file anymore. The last 30 seconds (replay) can then be sending a SIGUSR1 signal.

killall -SIGUSR1 gpu-screen-recorder