Good morning,
i tried to automate my recording with SSR and want to SAVE/STOP my record after a specific time. Therefor i start it in my Script,
#!/bin/bash
# Funktion: HH:MM:SS in Sekunden umwandeln
to_seconds() {
IFS=: read -r h m s <<< "$1"
echo $((10#$h * 3600 + 10#$m * 60 + 10#$s))
}
simplescreenrecorder --start-recording --start-hidden &
SSR_PID=$!
sleep 2
xdotool search --onlyvisible --class "Brave" windowactivate --sync
sleep 1
xdotool key --clearmodifiers space
# Pause
sleep $(to_seconds "00:00:10")
echo "record-pause" | /proc/$SSR_PID/exe
# Save
sleep $(to_seconds "00:00:02")
echo "record-save" | /proc/$SSR_PID/exe
The PAUSE/SAVE command do not reach SSR.
Any hints?
Good morning,
i tried to automate my recording with SSR and want to SAVE/STOP my record after a specific time. Therefor i start it in my Script,
The PAUSE/SAVE command do not reach SSR.
Any hints?