Add example scripts to save recording in application specific directory

This commit is contained in:
dec05eba
2024-01-24 21:05:04 +01:00
parent bbf509caf2
commit c70c0c18bd
4 changed files with 12 additions and 2 deletions

View File

@@ -3,4 +3,4 @@
[ "$#" -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 mp4 -f "$2" -a "$active_sink" -r "$3" -o "$4"
gpu-screen-recorder -w "$1" -c mkv -f "$2" -a "$active_sink" -r "$3" -o "$4"