| name | video-generator |
| description | Automated video generation pipeline with OpenAI TTS, Whisper, and Remotion - from text script to professional short videos |
| tags | ["video-generation","remotion","openai","tts","whisper","automation","ai-video","short-video","text-to-video"] |
๐ฌ Video Generator Skill
Automated video generation system that transforms text scripts into professional short videos with AI-powered voiceover, precise timing, and stunning cyber-wireframe visuals.
๐ฆ Installation
Step 1: Install the Skill
clawhub install video-generator
Step 2: Clone & Setup the Project
Option A: Via npm (Recommended)
npm install -g openclaw-video
git clone https://github.com/ZhenRobotics/openclaw-video.git ~/openclaw-video
cd ~/openclaw-video
npm install
echo 'OPENAI_API_KEY="sk-your-key-here"' > .env
Option B: From GitHub Only
git clone https://github.com/ZhenRobotics/openclaw-video.git ~/openclaw-video
cd ~/openclaw-video
npm install
echo 'OPENAI_API_KEY="sk-your-key-here"' > .env
Step 3: Verify Installation
cd ~/openclaw-video
./agents/video-cli.sh help
๐ Usage
When to Use This Skill
AUTO-TRIGGER when user's message contains:
- Keywords:
video, generate video, create video, make video, ็ๆ่ง้ข, ๅ่ง้ข
- Provides text that looks like a video script (multiple sentences describing a story/concept)
- Asks about video generation, TTS, or Remotion
- Wants to convert text to video format
TRIGGER EXAMPLES (always use this skill for these):
- "AI makes development easier. GPT writes code, Whisper transcribes audio, Remotion generates videos." โ This is a VIDEO SCRIPT
- "Generate a video: [any script]"
- "Make a video about AI tools"
- "Create a short video with this content..."
DO NOT USE when:
- Only video playback or format conversion (use video-frames skill)
- Video editing or clipping (use other tools)
๐ฏ Core Features
Complete video generation pipeline:
- ๐ค TTS Generation - OpenAI TTS API with multiple voice options
- โฑ๏ธ Timestamp Extraction - OpenAI Whisper API for precise segmentation
- ๐ฌ Scene Orchestration - Intelligent detection of 6 scene types
- ๐จ Video Rendering - Remotion with cyber-wireframe aesthetics
- ๐ค Agent Interface - Natural language interaction
- ๐จ Color Customization - Custom colors for scene titles (v1.1.0+)
๐ป Agent Usage Guide
Important Notes
CRITICAL: Use the existing project directory. Do NOT create new projects or run npx remotion.
Project location:
- Standard install:
~/openclaw-video/
- Or detect: Ask user for project location on first use
Primary Command: Generate Video
When user requests video generation, execute:
~/openclaw-video/generate-for-openclaw.sh "user's script content"
cd ~/openclaw-video && ./agents/video-cli.sh generate "script content"
cd ~/openclaw-video && pnpm exec tsx agents/video-agent.ts "generate video: script content"
Example:
User says: "Generate video: AI makes development easier"
Execute:
~/openclaw-video/generate-for-openclaw.sh "AI makes development easier"
Other Operations
Optimize script:
cd ~/openclaw-video && ./agents/video-cli.sh optimize "script content"
Get help:
cd ~/openclaw-video && ./agents/video-cli.sh help
Output Location
Generated video saved at: ~/openclaw-video/out/generated.mp4
โ๏ธ Configuration Options
Voice Selection
alloy - Neutral
echo - Clear
nova - Warm (Recommended)
shimmer - Soft
Speed
- Range: 0.25 - 4.0
- Recommended: 1.15 (fast-paced short videos)
- Default: 1.0
Video Style
- Fast-paced short video (default)
- Tutorial/explanation
- Product marketing
- Storytelling
๐ Video Specifications
- Resolution: 1080 x 1920 (Portrait, optimized for TikTok/YouTube Shorts)
- Frame Rate: 30 fps
- Format: MP4 (H.264 + AAC)
- Style: Cyber-wireframe with neon colors
- Duration: Auto-calculated based on script length
๐จ Scene Types
System automatically detects and generates 6 scene types:
| Type | Effect | Trigger Condition |
|---|
| title | Glitch effect + spring scale | First segment |
| emphasis | Pop-up zoom | Contains percentages, numbers |
| pain | Shake + red warning | Contains problems, pain points |
| content | Smooth fade-in | Regular content |
| circle | Rotating ring highlight | Listed points |
| end | Slide-up fade-out | Last segment |
๐ฐ Cost Estimation
Per 15-second video: ~$0.003 (less than 1 cent):
- OpenAI TTS: ~$0.001
- OpenAI Whisper: ~$0.0015
- Remotion rendering: Free (local)
๐ Usage Examples
Example 1: Quick Generation
User: "Generate a video: Three AI tools boost productivity. GPT writes code, Whisper transcribes audio, Remotion creates videos."
Agent executes:
~/openclaw-video/generate-for-openclaw.sh "Three AI tools boost productivity. GPT writes code, Whisper transcribes audio, Remotion creates videos."
Output: ~/openclaw-video/out/generated.mp4
Example 2: With Configuration
User: "Use warm voice and faster speed"
Agent:
- Confirm script content
- Execute with parameters:
cd ~/openclaw-video && ./agents/video-cli.sh generate "script content" --voice nova --speed 1.3
Example 3: Script Optimization
User: "Is this script good for a video: AI changes the world"
Agent:
cd ~/openclaw-video && ./agents/video-cli.sh optimize "AI changes the world"
Agent receives analysis and informs user.
๐ง Troubleshooting
Issue 1: Project Not Found
Error: bash: ~/openclaw-video/generate-for-openclaw.sh: No such file or directory
Solution:
ls ~/openclaw-video
git clone https://github.com/ZhenRobotics/openclaw-video.git ~/openclaw-video
cd ~/openclaw-video && npm install
Issue 2: API Key Error
Error: model_not_found or TTS access denied
Solution:
Issue 3: Missing Dependencies
Error: command not found: pnpm or tsx
Solution:
cd ~/openclaw-video
npm install
๐ Full Documentation
๐ Features
- โ
Fully automated video generation pipeline
- โ
Supports Chinese and English scripts
- โ
Low cost (< $0.01 per video)
- โ
Local rendering, no cloud services required
- โ
Cyberpunk visual style
- โ
Customizable configurations
- โ
Agent-friendly interface
โ ๏ธ Important Notes
- API Configuration: Valid
OPENAI_API_KEY required (use .env file for security)
- Project Installation: Must clone and install project before use
- Network Required: TTS and Whisper APIs need internet connection
- Path Assumption: Default project location is
~/openclaw-video/, adjust if different
- npm Package: Available on npm (
npm install -g openclaw-video)
๐ฏ Agent Behavior Guidelines
When using this skill, agents should:
DO:
- โ
Check if project is installed on first use
- โ
Use existing project, don't create new Remotion projects
- โ
Provide clear feedback (progress, estimated time)
- โ
Handle errors gracefully with solutions
- โ
Show output location after generation
DON'T:
- โ Run
npx remotion to create new projects
- โ Assume project is installed without checking
- โ Ignore error messages
- โ Use hardcoded absolute paths (except
~ paths)
๐ Tech Stack
- Remotion: React-based video generation framework
- OpenAI TTS: Text-to-speech API
- OpenAI Whisper: Speech recognition API
- TypeScript: Type-safe development
- React: UI component framework
- Node.js: Runtime environment
๐ Version History
v1.1.0 (2026-03-05)
- โจ NEW: Custom color support for scene titles
- ๐ SECURITY: Removed hardcoded API keys, now uses
.env file
- ๐ฆ npm: Published to npm registry (install with
npm install -g openclaw-video)
- ๐ ๏ธ Enhanced script portability with relative paths
- ๐ Added OpenClaw Chat integration guide
- ๐ฏ Better error messages and validation
v1.0.2 (2026-03-03)
- โจ Optimized installation guide with universal paths
- ๐ Improved documentation structure
- ๐ ๏ธ Added troubleshooting guide
- ๐ค Added agent behavior guidelines
- ๐ Full English version
v1.0.0 (2026-03-03)
- โจ Initial release
- ๐ค TTS voice generation
- โฑ๏ธ Whisper timestamp extraction
- ๐ฌ Intelligent scene orchestration
- ๐จ Cyber-wireframe visual style
- ๐ค Agent CLI interface
Project Status: โ
Production Ready
License: MIT
Author: @ZhenStaff
Support: https://github.com/ZhenRobotics/openclaw-video/issues
ClawHub: https://clawhub.ai/ZhenStaff/video-generator