Remove old script, in start-replay script dont start if gpu screen recorder is already running

This commit is contained in:
dec05eba
2024-07-23 01:50:06 +02:00
parent e9343cce91
commit da73b3ac63
3 changed files with 2 additions and 7 deletions

2
TODO
View File

@@ -150,7 +150,7 @@ Detect if recording monitor on intel and plane is compressed. In that case give
Make dbus code and pipewire setup non blocking. Make dbus code and pipewire setup non blocking.
Support portal (pipewire) hdr capture when pipewire adds support for it. Support portal (pipewire) hdr capture when pipewire adds support for it. Maybe use the result of SelectSources and then query the hdr metadata with drm.
HDR support on x11? HDR support on x11?

View File

@@ -1,6 +0,0 @@
#!/bin/sh -e
[ "$#" -ne 4 ] && echo "usage: replay.sh <window_id> <fps> <replay_time_sec> <output_directory>" && exit 1
active_sink="$(pactl get-default-sink).monitor"
mkdir -p "$4"
gpu-screen-recorder -w "$1" -c mkv -f "$2" -a "$active_sink" -r "$3" -o "$4"

View File

@@ -1,5 +1,6 @@
#!/bin/sh #!/bin/sh
pidof -q gpu-screen-recorder && exit 1
video_path="$HOME/Videos" video_path="$HOME/Videos"
mkdir -p "$video_path" mkdir -p "$video_path"
gpu-screen-recorder -w screen -f 60 -a "$(pactl get-default-sink).monitor" -c mkv -r 30 -o "$video_path" gpu-screen-recorder -w screen -f 60 -a "$(pactl get-default-sink).monitor" -c mkv -r 30 -o "$video_path"