mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-05-05 06:20:43 +09:00
Create example start recording script
This commit is contained in:
5
scripts/start-recording.sh
Executable file
5
scripts/start-recording.sh
Executable file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
pidof -q gpu-screen-recorder && exit 1
|
||||||
|
video="$HOME/Videos/$(date +"Video_%Y-%m-%d_%H-%M-%S.mp4")"
|
||||||
|
gpu-screen-recorder -w screen -f 60 -a "$(pactl get-default-sink).monitor" -o "$video"
|
||||||
@@ -2571,7 +2571,7 @@ int main(int argc, char **argv) {
|
|||||||
} else {
|
} else {
|
||||||
if(replay_buffer_size_secs == -1) {
|
if(replay_buffer_size_secs == -1) {
|
||||||
char directory_buf[PATH_MAX];
|
char directory_buf[PATH_MAX];
|
||||||
strcpy(directory_buf, filename);
|
snprintf(directory_buf, sizeof(directory_buf), "%s", filename);
|
||||||
char *directory = dirname(directory_buf);
|
char *directory = dirname(directory_buf);
|
||||||
if(strcmp(directory, ".") != 0 && strcmp(directory, "/") != 0) {
|
if(strcmp(directory, ".") != 0 && strcmp(directory, "/") != 0) {
|
||||||
if(create_directory_recursive(directory) != 0) {
|
if(create_directory_recursive(directory) != 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user