Save Replay
save_replayExport the last N seconds from an active replay buffer to an MP4 file while continuing to record, letting you preserve recent screen activity without stopping the session.
Instructions
Save the last N seconds of a replay buffer (start_recording replayBufferSec) to an mp4; the buffer keeps running.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | No | Output .mp4 path (default under SCREENCAST_HOME/recordings). | |
| lastSec | No | Seconds back from now (default and max: the buffer length). | |
| reencode | No | Frame-exact re-encode. Default: instant stream copy that may hide up to 2 s of earlier frames. | |
| overwrite | No | Allow replacing an existing file at the output path (default false). | |
| sessionId | Yes | Session id of a replay buffer. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | ||
| outputPath | Yes | ||
| durationSec | Yes |