2022-03-25 00:09:12 +00:00
|
|
|
#!/bin/sh -e
|
2020-08-28 03:04:16 +00:00
|
|
|
|
2022-03-25 00:09:12 +00:00
|
|
|
[ "$#" -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"
|