当前位置: 首页 > Skill >

Video Production

Video Production

Video Production

完整A/B视频流水线——分镜、Veo 3批量生成、浏览器预览与反馈循环、ffmpeg组装成品视频,适用于创作时使用

1.0.0 2026.11.21 422
获取Skill文件查看使用说明
作 者:苏安 许可证: 更新时间:2026.11.21
本文目录展开

Video Production Skill

Generate cinematic video clips with Veo 3, review them in a browser preview, iterate with feedback, and assemble final A/B test videos — all with minimal token spend.

Quick Start

cd ~/.openclaw/workspace/skills/video-production

# 1. Generate all clips from storyboard
.venv/bin/python3 scripts/batch_generate.py --storyboard /path/to/storyboard.json

# 2. Open browser preview
.venv/bin/python3 scripts/generate_preview.py --storyboard /path/to/storyboard.json

# 3. (After feedback) Re-generate only revised scenes
.venv/bin/python3 scripts/apply_feedback.py --storyboard storyboard.json --feedback feedback.json

# 4. Assemble final video
.venv/bin/python3 scripts/ffmpeg_assembler.py --storyboard storyboard.json

A/B Video Architecture

Target: 15-second videos, 3 clips × 5s each

[HOOK: 5s] → [CORE: 5s] → [CTA/PAYOFF: 5s]
     ↑                           ↑
 swap for A/B               swap for A/B

Economics:

  • 5 Veo prompts → 4 unique A/B videos (2 hooks × 1 core × 2 CTAs)
  • 7 prompts → 9 videos | 9 prompts → 16+ videos
  • Transitions at 5s and 10s marks — clean for analytics

Pipeline Overview

storyboard.json
      ↓
batch_generate.py     → clips/scene_01.mp4 ... scene_05.mp4
      ↓
generate_preview.py   → preview.html (opens in browser, zero tokens)
      ↓
[review + paste feedback JSON to Muffin]
      ↓
[Muffin suggests revised prompts, updates storyboard.json]
      ↓
apply_feedback.py     → re-generates only 'revise' scenes
      ↓
ffmpeg_assembler.py   → final_AA.mp4, final_BA.mp4, final_AB.mp4, final_BB.mp4

Token cost: Only when writing storyboard + interpreting feedback. Preview, generation, and assembly are all zero tokens.

Storyboard Format

{
  "project": "my-video",
  "output_dir": "clips",
  "final_output": "final.mp4",
  "scenes": [
    {
      "id": "scene_01",
      "role": "hook_a",
      "label": "Hook A",
      "order": 1,
      "duration": 5,
      "aspect_ratio": "16:9",
      "prompt": "..."
    }
  ],
  "_ab_combinations": {
    "video_1_AA": ["scene_01", "scene_03", "scene_04"],
    "video_2_BA": ["scene_02", "scene_03", "scene_04"],
    "video_3_AB": ["scene_01", "scene_03", "scene_05"],
    "video_4_BB": ["scene_02", "scene_03", "scene_05"]
  }
}

See scripts/storyboard_template.json for full template.

Feedback Format

Paste this JSON to Muffin after reviewing preview.html:

{
  "scenes": [
    { "id": "scene_01", "action": "approve", "notes": "" },
    { "id": "scene_02", "action": "revise", "notes": "slower camera, warmer light" }
  ]
}

Veo 3 API — Current Limits (Gemini API, verified 2026-02-23)

Parameter Supported
aspect_ratio ✅
number_of_videos ✅
negative_prompt ✅
duration_seconds ❌ Broken (throws 400 even with valid values)
fps ❌ Vertex AI only
compression_quality ❌ Vertex AI only
enhance_prompt ❌ Vertex AI only

Models: veo-3.1-generate-preview (best) | veo-3.1-fast-generate-preview | veo-3.0-generate-001

SDK: google-genai (NOT google-generativeai)

Prompting Techniques

Motion in every sentence — Veo produces laggy output from static prompts. Every sentence should describe camera OR subject movement.

Character continuity — Veo can't maintain exact characters across clips. Describe physical details explicitly in every scene that includes the same character.

✅ "The same client character from the opening — dark jacket, professional bearing, 30s-40s"

Stitch continuity — For seamless cuts, open each prompt with the color/light state the previous clip ends on.

✅ "Warm amber light, a direct visual continuation from the post-production suite..."

Single continuous shot — Each prompt is one continuous clip. Design it as one camera move that reveals multiple elements — not a montage description.

Content policy — Environmental/prop-only scenes generate reliably. Stressed people on phones can silently return no video. Keep humans calm or describe the environment instead.

Quota Management

When you hit the daily limit (429 RESOURCE_EXHAUSTED), use the quota watcher:

# Sets a cron that retries every 30 min, texts Master when done
chmod +x scripts/quota_watcher.sh

# Add to crontab:
(crontab -l 2>/dev/null | grep -v quota_watcher; 
 echo "*/30 * * * * /path/to/quota_watcher.sh >> /tmp/quota_watcher.log 2>&1") | crontab -

See api-quota-watcher skill for the generic pattern.

Scripts

Script Purpose
scripts/batch_generate.py Generate all scenes from storyboard, skip existing
scripts/generate_preview.py Build preview.html with video players + feedback form
scripts/apply_feedback.py Re-generate only scenes marked 'revise'
scripts/ffmpeg_assembler.py Stitch approved clips → final MP4 (cut or crossfade)
scripts/quota_watcher.sh Retry + notify cron for quota recovery
scripts/storyboard_template.json Starting storyboard template

Environment Setup

cd ~/.openclaw/workspace/skills/video-production
uv venv .venv
uv pip install google-genai Pillow requests

# API key must be in ~/.zshenv:
export GOOGLE_API_KEY="AIza..."

Assembling A/B Combinations

After all scenes approved, run assembler for each combo:

# Assemble all 4 A/B videos
for combo in AA BA AB BB; do
  # Edit storyboard or pass scene list directly
  .venv/bin/python3 scripts/ffmpeg_assembler.py 
    --storyboard storyboard.json 
    --output "final_${combo}.mp4"
done

Or hardcode in _ab_combinations in storyboard.json — assembler reads it automatically.

Format Adaptation

Format Notes
16:9 (master) Default — all scripts use this
9:16 (vertical) Change aspect_ratio to "9:16" in storyboard
1:1 (square) Change aspect_ratio to "1:1"

Generate separate storyboards per format for best results. Don't crop 16:9 to 9:16 in post — re-generate with proper aspect.

What Veo 3 Does Well

  • Atmospheric/mood shots
  • Smooth camera movements (push-in, crane, tracking)
  • Lighting transitions within a single clip
  • Office/studio/urban environments
  • Abstract beauty (nature, space, product)

What Veo 3 Struggles With

  • Exact text on screen (add in post via After Effects/Resolve)
  • Maintaining character consistency across clips
  • Very fast montage within a single generation
  • Complex multi-person scenes
  • Specific prop/brand details

Character Registry & Learning System

Clean Slate Default

Every new campaign starts fresh. No inherited characters, no assumed cast, no prompt weights from previous runs. If you want continuity from a past campaign, explicitly say so:

"Use HERO_01 from the MMM campaign"

Character IDs (Bootstrap Defaults)

If no cast is defined, use these placeholders:

  • HERO_01 — Primary UGC creator
  • FRIEND_01 — Recurring side character
  • HAND_MODEL_01 — Hands-only product handler

First approved output becomes the canonical identity baseline for that campaign.

Character Bible (Per Campaign)

When characters are defined, maintain a character_registry.json in the project folder:

{
  "HERO_01": {
    "identity": {
      "age_range": "28-35",
      "gender": "male",
      "skin_tone": "...",
      "hair": "...",
      "build": "..."
    },
    "wardrobe": {
      "preferred": [],
      "avoid": [],
      "signature": ""
    },
    "camera_rules": {
      "preferred_framing": "medium close-up",
      "avoid": []
    },
    "negative_constraints": [],
    "reference_frames": [],
    "phrase_weights": {}
  }
}

CAST Block Injection

When characters are defined, every prompt must include:

CAST:
- HERO: HERO_01 (identity locked; must match reference frames exactly)
Do not alter identity traits across frames or across future assets.

Verification Thresholds

After generation, run vision model consistency check against reference frames:

  • >= 85 → auto-pass
  • 75–84 → escalate to Master (Telegram), do not auto-regen
  • <= 74 → auto-fail, apply stabilize patch, retry once → then escalate if still failing

Learning Loop

After every human review decision, update:

  • Approved → increase weights for phrases that produced good consistency; add best frames to approved reference set
  • Rejected → identify drift attributes; downweight or ban phrases causing drift; add negative constraints
  • Borderline → apply stabilize patch for that engine+character+scene combo

Generation Log

Append every attempt to generation_log.jsonl (never deleted):

{
  "timestamp": "...",
  "campaign": "...",
  "scene_id": "...",
  "engine": "veo-3.1-generate-preview",
  "attempt": 1,
  "characters": ["HERO_01"],
  "prompt": "...",
  "output": "clips/scene_01.mp4",
  "verification_score": 88,
  "drift_notes": "",
  "decision": "auto_pass",
  "human_outcome": "approved",
  "worked_phrases": [],
  "failed_phrases": []
}

Escalation Policy — Ask Before Guessing

Escalate to Master via Telegram (never silently loop) when:

  • Verification score is borderline (75–84)
  • Character is on a new engine for the first time
  • Scene type is new for that character+engine combo
  • Same prompt has failed 2+ times in a row

Escalation message must include: scene ID, engine, score, drift notes, and 2–3 options.

Archive (Persists Across Campaigns)

Even though each campaign starts clean, these persist in the skill folder:

  • generation_log.jsonl — full audit trail
  • approved_references/ — canonical frames by campaign, available to load on request
  • campaign_phrase_weights/ — weight archives per campaign, loadable for continuity

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,034
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,018
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,017
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,013
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,013
Skill 文件
  • SKILL.md
    • Video Production Skill
    • Quick Start
    • A/B Video Architecture
    • Pipeline Overview
    • Storyboard Format
    • Feedback Format
    • Veo 3 API — Current Limits (Gemini API, verified 2026-02-23)
    • Prompting Techniques
    • Quota Management
    • Scripts
    • Environment Setup
    • Assembling A/B Combinations
    • Format Adaptation
    • What Veo 3 Does Well
    • What Veo 3 Struggles With
    • Character Registry & Learning System
      • Clean Slate Default
      • Character IDs (Bootstrap Defaults)
      • Character Bible (Per Campaign)
      • CAST Block Injection
      • Verification Thresholds
      • Learning Loop
      • Generation Log
      • Escalation Policy — Ask Before Guessing
      • Archive (Persists Across Campaigns)
  • 项目或源文件

相关 Skill

更多
wangyiai-banana2 wangyiai-banana2 Generate images and videos via WangYi Banana API (nano-banana1&2, GORK 3). Supports text-to-image, image-to-image, text-to-video, image-to-video, and character creation for short video production.
Self Dev Ai Drama Video Production Self Dev Ai Drama Video Production AI竖屏短剧全流程生产Skill。图生视频(z-ai video)为主管线,FFmpeg后制合成,覆盖分镜图生成、TTS配音、Motion Prompt增强、批量图生视频、ffmpeg拼接烧录字幕、标准化交付检查全链路。
Agentic Video Production Reviewer Agentic Video Production Reviewer Review AI video production packages for creative consistency, asset provenance, platform metadata, disclosure wording, and publishing readiness. Use when a u...
视频批量生产管道 视频批量生产管道 Complete video production pipeline — voiceover generation → animation → audio mixing. Batch produce videos from scripts.
Pilot Video Production Pipeline Setup Pilot Video Production Pipeline Setup Deploy a video production pipeline with 3 agents that automate script writing, editing coordination, and multi-platform distribution. Use this skill when: 1....