ai-video-creator
3
总安装量
2
周安装量
#61054
全站排名
安装命令
npx skills add https://github.com/codalabs-xyz/ai-video-creator-skill --skill ai-video-creator
Agent 安装分布
opencode
2
antigravity
2
claude-code
2
continue
1
mcpjam
1
Skill 文档
AI Video Creator
Complete video production pipeline: Audio â Visual composition â Optional avatar overlay.
â ï¸ Best Practice: Audio-First Workflow
Don’t start with full avatar videos! This wastes money and time.
Recommended Approach for Tutorials:
Phase 1: Audio only (TTS) â Iterate on script timing
Phase 2: Compose visuals (code + browser) â Test layout
Phase 3: Add avatar overlay (optional) â Final polish
Layout for Technical Tutorials:
ââââââââââââââââââââââââââââââââââââââââââââââ
â ð° Openfort React SDK 01-intro â â Top bar
âââââââââââââââââââââââ¬âââââââââââââââââââââââ¤
â â â
â CODE â BROWSER â
â (55%) â (45%) â
â â â
â â â
â â [localhost:3000] â
â â â
â â â
â ââââââ´âââ® â
â â ð¤ â â Avatar circle â
â âavatar â (optional, â
â â°âââââââ⯠added last) â
ââââââââââââââââââââââââââââââââââââââââââââââ
Quick Reference
# 1. Generate AUDIO only (cheap, fast)
node scripts/generate-audio.js --config clips.json --output ./audio
# 2. Compose video with audio + visuals (no avatar)
npx remotion render Prototype ./output/prototype.mp4
# 3. Review and iterate (repeat 1-2 until happy)
# 4. ONLY THEN: Generate avatar clips (expensive)
HEYGEN_API_KEY=xxx node scripts/generate-clips.js --config clips.json --output ./clips
# 5. Final render with avatar overlay
npx remotion render TutorialWithAvatar ./output/final.mp4
Workflow
Phase 1: Audio-First (Iterate Cheap)
Generate just the audio narration:
# Option A: HeyGen audio-only (uses voice without avatar)
node scripts/generate-audio.js --config clips.json --voice VOICE_ID
# Option B: ElevenLabs (often cheaper)
node scripts/generate-audio-eleven.js --config clips.json --voice "Rachel"
# Option C: OpenAI TTS (cheapest)
node scripts/generate-audio-openai.js --config clips.json --voice "nova"
Phase 2: Visual Composition
Create the split-screen layout without avatar:
// Remotion component structure
<SplitLayout>
<CodePanel width="55%">
<SyntaxHighlightedCode />
</CodePanel>
<BrowserPanel width="45%">
<BrowserChrome url="localhost:3000">
<AppScreenshot />
</BrowserChrome>
</BrowserPanel>
<Audio src={narrationAudio} />
</SplitLayout>
Render prototype:
npx remotion render Prototype ./output/prototype.mp4
Review the prototype before spending on avatar!
Phase 3: Avatar Generation (Only When Satisfied)
Now that the content is finalized, generate avatar clips:
HEYGEN_API_KEY=xxx node scripts/generate-clips.js \
--config clips.json \
--output ./clips \
--resolution 720p # Use 720p unless plan supports 1080p
Phase 4: Final Composition
Add avatar as circular overlay (picture-in-picture):
// Avatar overlay style
<AvatarOverlay
position="bottom-right" // or "bottom-center"
size={280}
style="circle"
border="4px solid rgba(255,255,255,0.2)"
>
<OffthreadVideo src={avatarClip} />
</AvatarOverlay>
HeyGen Resolution & Plans
| Plan | Max Resolution | Notes |
|---|---|---|
| Free/Basic | 720p (1280×720) | Most accounts |
| Pro | 1080p (1920×1080) | Requires subscription |
| Enterprise | 4K | Custom plans |
Always check your plan before generating! Using unsupported resolution = failed jobs + wasted queue time.
Cost Optimization
| Approach | Cost | Use When |
|---|---|---|
| Audio-only TTS | $0.01-0.05/min | Prototyping, iteration |
| HeyGen 720p | ~$1/min | Final avatar |
| HeyGen 1080p | ~$1.50/min | High-quality final |
Rule: Iterate with audio-only, render avatar once.
Script Best Practices
- Length: 35-45 words per clip (ideal for 15-20 seconds)
- Max: 100 words (longer = audio sync issues)
- Tech terms: Write phonetically for Spanish
- “npm” â “ene pe eme”
- “.tsx” â “punto tee ese equis”
- “localhost” â “localhost” (usually ok)
- Pauses:
<break time="0.5s"/>for natural rhythm
Multi-Language Workflow
# 1. Audio prototype in target language
node scripts/generate-audio.js --config clips-es.json --voice "es-ES-female"
# 2. Compose & review
npx remotion render Prototype-ES ./output/prototype-es.mp4
# 3. Generate Spanish avatar only when satisfied
node scripts/generate-clips.js --config clips-es.json --voice "1eca26cb..."
Troubleshooting
| Issue | Solution |
|---|---|
| “RESOLUTION_NOT_ALLOWED” | Use 720p (1280×720) |
| Clips stuck “waiting” | Check credits/subscription |
| Avatar desync | Keep clips under 100 words |
| Expensive iteration | Use audio-only for prototypes! |
See Also
references/heygen-api.mdâ Full HeyGen API docsreferences/remotion-templates.mdâ Ready-to-use layoutsreferences/tts-comparison.mdâ TTS providers comparison