← 返回
内容创作 中文

Auto Clipper

Automatically create clips and videos from media files in a specified folder. Uses Agent Swarm for intelligent task delegation and supports cron-based schedu...
自动从指定文件夹中的媒体文件创建视频片段和视频。使用 Agent Swarm 进行智能任务分配,支持基于 cron 的定时调度。
runeweaverstudios
内容创作 clawhub v1.0.0 1 版本 99892.6 Key: 无需
★ 1
Stars
📥 910
下载
💾 24
安装
1
版本
#latest

概述

AutoClipper

Description

Automatically create clips and videos from media files in a specified folder. Uses Agent Swarm for intelligent task delegation and supports cron-based scheduling.

AutoClipper

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.

Installation

# 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

Usage

  • Screen recording highlights: Auto-clip moments from Loom/obsidian recordings
  • Meeting recaps: Extract key segments from meeting recordings
  • Content creation: Batch-process raw footage into short clips
  • Security camera clips: Pull motion-triggered segments from camera feeds
  • Gaming highlights: Auto-clip "best of" moments from recordings
# 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

Purpose

AutoClipper enables OpenClaw agents to automatically:

  • Monitor a watch folder for new media files (videos, screen recordings, camera clips)
  • Analyze media to understand what's worth clipping (via Agent Swarm delegation)
  • Generate clips using ffmpeg (highlights, segments, trimmed videos)
  • Produce compilations by stitching multiple clips together
  • Schedule runs via cron for fully automated workflows

Architecture

┌─────────────────────────────────────────────────────────────┐
│                      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)  │
└─────────────────────────────────────────────────────────────┘

Components

1. Watch Folder Scanner

  • Monitors a configured input directory
  • Filters by file extensions: .mp4, .mov, .mkv, .avi, .webm
  • Tracks processed files (to avoid re-processing)
  • Configurable: watchFolder, fileExtensions, processedLog

2. Media Analyzer (via Agent Swarm)

  • Delegates analysis to appropriate model (MiniMax for code/technical, Kimi for creative)
  • Determines:
  • Which segments to clip (timestamp ranges)
  • Clip duration targets
  • Output format preferences
  • Returns structured clip plan: [{start, end, label, priority}]

3. Clip Engine (ffmpeg)

  • Trim: Extract segments without re-encoding (fast)
  • Transcode: Convert to target format/codec
  • Highlight: Auto-detect "interesting" segments (via scene detection)
  • Compile: Stitch multiple clips into single video
  • Overlay: Add watermarks, timestamps, captions

4. Output Manager

  • Organized output folder structure: output/YYYY-MM-DD/
  • Configurable naming: {original}-{timestamp}-{index}.mp4
  • Optional: Notify via OpenClaw message (Discord, WhatsApp, etc.)

5. Cron Scheduler

  • Standalone script for cron integration
  • Configurable schedule: 0 (hourly), 0 9 * (daily at 9am)
  • Dry-run mode for testing
  • Lock file to prevent overlapping runs

Configuration (config.json)

{
  "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"
  }
}

Tools Needed

ToolPurposeRequired
-------------------------
ffmpegVideo transcoding, trimming, clippingYes
ffprobeMedia metadata extraction (duration, codec)Yes
Agent SwarmAnalyze media and determine clip strategyYes
OpenClaw messageSend notifications when clips are readyOptional
OpenClaw nodesScreen recording capture (live input)Optional
file systemWatch folder, output managementYes

Agent Swarm integration

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}

Directory Structure

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

Keywords

  • video, clip, clips, highlight, highlights
  • trim, cut, extract, segment
  • ffmpeg, transcode, encode, convert
  • folder, watch, monitor, automation
  • cron, schedule, batch, process
  • screen recording, meeting, recording

Skill Name Ideas

  1. AutoClipper ✓ (chosen)
  2. ClipForge
  3. MediaMason
  4. VideoHarvest
  5. HighlightHub
  6. ClipStream
  7. MediaSnip
  8. AutoTrim

Implementation Phases

Phase 1: Core (MVP)

  • [ ] Folder scanner with extension filtering
  • [ ] Basic ffmpeg trim operation
  • [ ] Simple processed file tracking
  • [ ] CLI entry point

Phase 2: Intelligence

  • [ ] Agent Swarm integration for clip planning
  • [ ] Scene detection for auto-highlighting
  • [ ] Metadata extraction with ffprobe

Phase 3: Automation

  • [ ] Cron launcher script
  • [ ] Continuous watcher mode
  • [ ] Notification system
  • [ ] Output organization

Phase 4: Advanced

  • [ ] Multi-clip compilation
  • [ ] Overlay/watermark support
  • [ ] Custom clip templates
  • [ ] Node camera integration

Notes

  • Performance: Use -c copy for fast trimming (no re-encode)
  • Storage: Auto-cleanup processed files or move to archive
  • Error handling: Skip corrupted files gracefully, log failures
  • Idempotency: Same input file should not produce duplicate output

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 18:47 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Agent Swarm

runeweaverstudios
必须使用 OpenRouter。将任务路由至合适模型,并始终通过 sessions_spawn 委派工作。
★ 4 📥 3,611
content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 860 📥 200,066
content-creation

Baidu Wenku AIPPT

ide-rea
使用百度文库 AI 智能生成 PPT,自动根据内容选择模板。
★ 66 📥 46,232