Automatically create clips and videos from media files in a specified folder. Uses Agent Swarm for intelligent task delegation and supports cron-based scheduling.
Automatically create clips and videos from media files in a specified folder. Uses Agent Swarm for intelligent task delegation and supports cron-based scheduling.
Automatic Video Clip & Highlight Generator for OpenClaw.
v1.0.0 — Design draft. Automatically scan a folder for media files, create clips/highlights using ffmpeg, and organize output. Cron-ready for scheduled automation.
# Add to crontab (crontab -e)
# Run every hour at minute 0
0 * * * * /Users/ghost/.openclaw/workspace/skills/auto-clipper/scripts/run.sh
# Or run daily at 9 AM
0 9 * * * /Users/ghost/.openclaw/workspace/skills/auto-clipper/scripts/run.sh --output daily
# Run once (scan and process)
python3 scripts/auto_clipper.py run
# Dry run (show what would be processed)
python3 scripts/auto_clipper.py run --dry-run
# Force reprocess all files
python3 scripts/auto_clipper.py run --force
# Start continuous watcher (not cron-based)
python3 scripts/auto_clipper.py watch
# Show status
python3 scripts/auto_clipper.py status
AutoClipper enables OpenClaw agents to automatically:
┌─────────────────────────────────────────────────────────────┐
│ AutoClipper Skill │
├─────────────────────────────────────────────────────────────┤
│ 1. Watch Folder (configurable input path) │
│ ↓ │
│ 2. Media Scanner (find new files, filter by extension) │
│ ↓ │
│ 3. Agent Swarm delegation (analyze → clip strategy) │
│ ↓ │
│ 4. Clip Engine (ffmpeg operations) │
│ ↓ │
│ 5. Output Organizer (save to output folder, optional SNS) │
└─────────────────────────────────────────────────────────────┘
.mp4, .mov, .mkv, .avi, .webmwatchFolder, fileExtensions, processedLog[{start, end, label, priority}]output/YYYY-MM-DD/{original}-{timestamp}-{index}.mp40 * * * * (hourly), 0 9 * * * (daily at 9am){
"watchFolder": "~/Downloads/Recordings",
"outputFolder": "~/Videos/Clips",
"fileExtensions": [".mp4", ".mov", ".mkv"],
"processedLog": "logs/processed.json",
"clipSettings": {
"defaultDuration": 60,
"minClipDuration": 10,
"maxClipDuration": 300,
"outputCodec": "h264",
"outputFormat": "mp4"
},
"intentRouter": {
"enabled": true,
"model": "openrouter/minimax/minimax-m2.5"
},
"cron": {
"schedule": "0 * * * *",
"enabled": false
},
"notifications": {
"enabled": false,
"channel": "discord"
}
}
| Tool | Purpose | Required |
|---|---|---|
| ffmpeg | Video transcoding, trimming, clipping | Yes |
| ffprobe | Media metadata extraction (duration, codec) | Yes |
| Agent Swarm | Analyze media and determine clip strategy | Yes |
| OpenClaw message | Send notifications when clips are ready | Optional |
| OpenClaw nodes | Screen recording capture (live input) | Optional |
| file system | Watch folder, output management | Yes |
When AutoClipper finds new media, it delegates analysis:
User task: "Analyze video and suggest clip timestamps for meeting highlights"
→ router.spawn() → sessions_spawn(task, model)
← Returns: [{start: "00:05:30", end: "00:07:45", label: "action item discussion"}, ...]
Prompt template for media analysis:
Analyze this video file: {filename}
Duration: {duration_seconds} seconds
Extract: Key moments worth clipping as short highlights (30-90 seconds each)
Output: JSON array of {start_timestamp, end_timestamp, description}
auto-clipper/
├── SKILL.md # This file
├── _meta.json # Skill metadata
├── config.json # Configuration
├── README.md # Setup instructions
├── scripts/
│ ├── auto_clipper.py # Main entry point
│ ├── scanner.py # Watch folder scanner
│ ├── clipper.py # ffmpeg wrapper
│ ├── analyzer.py # Agent Swarm integration
│ └── run.sh # Cron launcher
└── logs/
└── processed.json # Track processed files
-c copy for fast trimming (no re-encode)