Community Automation Script Library
CaptureGem has no hook or plugin system: it doesn't run scripts when a recording begins or ends. These community-contributed scripts are ones you run yourself, by hand or from Task Scheduler or cron, on finished videos in your Video Save Location. Never run them on CaptureGem's temporary files.
Bash
Discord Webhook Notification
Posts a message to a Discord channel. Call it from your own scripts, for example when a backup finishes.
#!/bin/bash
# Run it yourself, e.g. at the end of your own backup script:
# ./notify.sh "Backup finished"
# CaptureGem has no hooks and never runs this script.
MESSAGE=$1
WEBHOOK_URL="https://discord.com/api/webhooks/YOUR_URL_HERE"
PAYLOAD='{"content": "'"$MESSAGE"'"}'
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. Run it yourself or from Task Scheduler.
# Run it yourself or from Task Scheduler; CaptureGem has no hooks.
# Moves finished videos older than 1 day out of CaptureGem's default
# Video Save Location. Moved videos no longer show in the Review tab.
$SourceDir = "$env:LOCALAPPDATA\capturegem\videos\out"
$DestDir = "D:\Archives\Recordings\"
Get-ChildItem -Path $SourceDir -File -Include *.mp4, *.mkv -Recurse |
Where-Object { $_.LastWriteTime -lt (Get-Date).AddDays(-1) } |
ForEach-Object {
Move-Item -Path $_.FullName -Destination $DestDir
Write-Output "Moved $($_.Name) to $DestDir"
} Bash
FFmpeg Thumbnail Generator
Generates a high-quality JPG thumbnail from the 10-second mark of a finished video.
#!/bin/bash
# Run it yourself on a finished video:
# ./thumb.sh "/path/to/video.mp4"
# CaptureGem already shows a thumbnail grid for each video in Review.
FILE=$1
OUT="${FILE%.*}.jpg"
ffmpeg -ss 00:00:10 -i "$FILE" -vframes 1 -q:v 2 "$OUT"
Loading comments...