Community Hook Script Library
CaptureGem's hook system allows you to run custom code whenever a recording begins or ends. Browse our community-contributed library of scripts to extend your automation.
Bash
Discord Webhook Notification
Sends an alert to Discord when a recording starts or stops.
#!/bin/bash
# Hook: on_start or on_stop
# Config: /path/to/script.sh "%m" "%s" "%v"
MODEL=$1
SITE=$2
EVENT=$3 # Custom field in config
WEBHOOK_URL="https://discord.com/api/webhooks/YOUR_URL_HERE"
PAYLOAD='{"content": "🔴 **'$MODEL'** is now LIVE on **'$SITE'**! Recording started."}'
curl -H "Content-Type: application/json" -X POST -d "$PAYLOAD" "$WEBHOOK_URL" PowerShell
Automated Archive Mover
Moves finished recordings to a dedicated archive drive on Windows.
# Hook: on_stop
# Config: powershell.exe -File C:\scripts\move.ps1 "%f"
$FilePath = $args[0]
$DestDir = "D:\Archives\Recordings\"
if (Test-Path $FilePath) {
Move-Item -Path $FilePath -Destination $DestDir -Force
Write-Output "Moved $FilePath to $DestDir"
} Bash
FFmpeg Thumbnail Generator
Generates a high-quality JPG thumbnail from the 10-second mark.
#!/bin/bash
# Hook: on_stop
# Config: /path/to/thumb.sh "%f"
FILE=$1
OUT="${FILE%.*}.jpg"
ffmpeg -ss 00:00:10 -i "$FILE" -vframes 1 -q:v 2 "$OUT"
Loading comments...