Skip to content

How to start SSR in Background and PAUSE/SAVE/STOP teh record after TIME X #1083

Description

@Rockshots2

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions