Task Objective
- This Skill is used to: provide complete video creation capabilities, supporting three creation modes
- Capabilities include:
- Mode 1: Original Creation: 11 agents collaborate on original video creation (The Three-Body Problem IP creation, general original creation)
- Mode 2: Video Secondary Creation: A complete secondary creation workflow from reverse-engineering the original video to synthesizing a new video
- Mode 3: Video Analysis: Video frame extraction, visual analysis, content extraction
- Technical Capabilities: Voiceover generation, sound effect generation, background music generation, video synthesis
- Trigger conditions: The user needs to perform video creation (original creation/secondary creation/analysis)
Three Creation Modes
Mode 1: Original Creation
- Applicable Scenarios: Create an original video from scratch
- Sub-modes:
- The Three-Body Problem IP creation (specifically for The Three-Body Problem IP)
- General multi-agent collaboration (division of labor among 11 agents)
- Workflow: Topic planning → Visual design → Material generation → Video synthesis → Quality inspection
Mode 2: Video Secondary Creation
- Applicable Scenarios: Perform secondary creation based on an existing video
- Workflow: Video reverse-engineering analysis → Material generation → Video synthesis → File download
- Capabilities: Video frame extraction, visual analysis, image generation, voiceover, sound effects, music, synthesis
Mode 3: Video Analysis
- Applicable Scenarios: Analyze video content, extract storyboard references, generate creation prompts
- Workflow: Video frame extraction → Visual analysis → Structured output
- Capabilities: Frame extraction, visual model invocation, prompt generation
Prerequisites
Environment Dependencies
opencv-python>=4.8.0
pillow>=10.0.0
moviepy>=1.0.3
numpy>=1.24.0
requests>=2.28.0
edge-tts>=6.1.0
API Configuration (Optional)
- Coze Bot API: Visual analysis
- Environment variable:
COZE_BOT_ID,COZE_API_KEY
- Environment variable:
- Edge-TTS: Voiceover generation
- Install:
pip install edge-tts
- Install:
- Suno API: Background music generation
- Environment variable:
SUNO_API_KEY - Three modes: developer, user, placeholder
- Environment variable:
Operation Steps
Mode Selection
The agent automatically selects the mode based on user input:
Determine Original Creation Mode
- User mentions "create a The Three-Body Problem video," "The Three-Body Problem IP creation" → The Three-Body Problem IP creation
- User mentions "multi-agent collaboration," "original video," "create from scratch" → General multi-agent collaboration
Determine Video Secondary Creation Mode
- User mentions "secondary creation video," "reverse-engineer video," "video remake," "create based on a reference video" → Video secondary creation
Determine Video Analysis Mode
- User mentions "analyze video," "extract storyboard," "generate prompts" → Video analysis
Mode 1: Original Creation
Sub-mode 1: The Three-Body Problem IP creation
Phase 1: Pre-production Preparation
-
Source Material Research and Setting Extraction
- Read references/three-body-settings.md
- Extract the core settings of The Three-Body Problem 2: Deterrence Era
- Output: Timeline anchor table, character behavior compliance checklist
-
Plot Structure Design
- Build a "three-line parallel" narrative framework
- Design 3 core conflict points and 1 emotional climax
- Output: Three-line parallel narrative storyboard outline, emotional curve chart
-
Dialogue Writing
- Write dialogue based on character personalities
- Output: Character dialogue script (including tone/pause markers)
Phase 2: Visual Production
-
Visual Style Specification Development
- Read references/visual-style-guide.md
- Output: Visual style guide, scene/character design specifications
-
Scene Design
- Design 3 core scenes
- Output: Scene concept art prompts, scene element checklist
-
Character Consistency Modeling
- Luo Ji image anchoring
- Output: Luo Ji standard image anchor atlas, character state comparison table
-
Storyboard Script Refinement
- Convert the plot outline into professional storyboards
- Output: Film storyboard script (including time codes), rendering metadata
Phase 3: Audio and Editing
-
Asset Generation
- Voiceover Generation: Call
scripts/voice_generator.pyto generate character voiceover- Parameters:
--input <旁白数据JSON> --output ./output/audio/voice
- Parameters:
- Sound Effect Generation: Call
scripts/sound_generator.py --type soundto generate sound effects- Parameters:
--input <音效配置JSON> --output ./output/audio/sound_effects
- Parameters:
- Background Music Generation: Call
scripts/sound_generator.py --type musicto generate background music- Parameters:
--input <音乐配置JSON> --output ./output/audio/background_music
- Parameters:
- Video Compositing: Call
scripts/video_compositor.pyto composite the final video- Parameters:
--images <图片目录> --audio <音频目录> --subtitles <字幕文件> --output <输出路径>
- Parameters:
- Voiceover Generation: Call
-
Quality Control
- Call
scripts/quality_checker.pyto detect technical indicators - Source material compliance detection
- Bilibili adaptation optimization
- Call
Sub-mode 2: General Multi-Agent Collaboration
Division of labor among 11 agents
- Copywriting
- Story Planning
- Script Writing
- Storyboard Director
- Storyboard Artist
- Subtitle Artist
- Voiceover Artist
- Sound Effects Artist
- Video Engineer
- Quality Inspection
- Data Feedback
5-Phase Collaborative Workflow
- Requirement Intake
- Content Creation
- Image Generation
- Audio and Subtitles
- Video Compositing
- Full-Process Quality Control
- Data Iteration
Mode 2: Video Secondary Creation
Phase 1: Video Reverse-Engineering Analysis
-
Extract Video Keyframes
- Call
scripts/video_frame_extractor.pyto extract keyframes - Parameters:
--input <原视频路径> --output ./output/frames --interval 2 - Output: Sequence images to
./output/frames/
- Call
-
Visual Analysis
- Call
scripts/coze_bot_client.pyto analyze keyframes - Agent description analysis requirements: "Analyze these video frames and extract: visual style, color tone characteristics, composition method, rhythm pattern"
- Output: Save the analysis results to
./output/analysis.json
- Call
-
Generate creation plan
- The agent generates a derivative creation plan based on the analysis results
- Output: new video theme, visual style adjustments, script outline, material requirements list
Phase 2: Material generation
-
Generate image materials
- The agent generates keyframe prompts based on the script
- Call
scripts/image_generator.pyto generate images - Output: images to
./output/images/
-
Generate voiceover
- The agent acts as a voice actor and creates the narration script
- Call
scripts/voice_generator.pyto synthesize voiceover (based on Edge-TTS) - Parameters:
--input <旁白脚本JSON> --output ./output/voice - Output: voiceover file to
./output/voice/
-
Generate sound effects and background music
- Call
scripts/sound_generator.py --type bothto generate sound effects and background music - Parameters:
--input <完整配置JSON> --output ./output/audio - Output: sound effects to
./output/audio/sound_effects/, background music to./output/audio/background_music/
- Call
-
Generate subtitles
- The agent creates subtitle content
- Call
scripts/subtitle_generator.pyto generate subtitle file - Parameters:
--input <字幕数据JSON> --output ./output/subtitles - Output: SRT subtitles to
./output/subtitles/
Phase 3: Video composition
-
Compose final video
- Call
scripts/video_compositor.pyto compose video - Parameters:
--images ./output/images --audio ./output/audio --voice ./output/voice --subtitles ./output/subtitles --output ./output/final.mp4 - Output: final video
./output/final.mp4
- Call
-
File download
- Call
scripts/file_server.pyto start HTTP server - Parameters:
--port 8080 --directory ./output - Output: download link
http://localhost:8080/final.mp4
- Call
Mode 3: Video analysis
Analysis workflow
-
Video frame extraction
- Call
scripts/video_frame_extractor.pyto extract keyframes - Parameters:
--input <视频路径> --output <输出目录> --interval <间隔秒数>
- Call
-
Visual analysis
- Call
scripts/coze_bot_client.pyto analyze each frame's content - Parameters:
--message "<分析提示>" --image_path <图片路径> - Output: structured analysis results (JSON format)
- Call
-
Batch processing
- Automatically iterate through all keyframes
- Batch call the visual model
- Aggregate analysis results
Resource index
Technical scripts
- Video processing: scripts/video_frame_extractor.py - Extract keyframes
- Visual analysis: scripts/coze_bot_client.py - Call Coze Bot API
- Image generation: scripts/image_generator.py - Generate image materials
- Voiceover generation: scripts/voice_generator.py - Generate voiceover (Edge-TTS)
- Sound effects and music: scripts/sound_generator.py - Generate sound effects and background music (Suno API)
- Subtitle generation: scripts/subtitle_generator.py - Generate subtitles
- Video composition: scripts/video_compositor.py - Compose final video
- File service: scripts/file_server.py - HTTP download server
- Quality inspection: scripts/quality_checker.py - Inspect technical metrics
- Error handling: scripts/error_handler.py - Retry and error logs
Reference documents
-
"The Three-Body Problem" IP creation:
- references/three-body-settings.md - "The Three-Body Problem" original settings and Deterrence Era rules
- references/visual-style-guide.md - Visual style specifications and design principles
- references/storyboard-template.md - Storyboard script standard template
- references/character-profiles.md - Character profiles and code of conduct
-
Video secondary creation:
- references/recreation-guide.md - Video secondary creation methodology
- references/prompt-templates.md - Analysis prompt examples
- references/suno-api-guide.md - Suno API usage guide
Resource files
- assets/scene-examples/ - Scene design prompt examples
- assets/character-reference/ - Character appearance description reference
Notes
- Automatic mode selection: The agent automatically selects the appropriate creation mode based on user input
- Script sharing: All modes share the same set of technical scripts to avoid duplication
- API configuration: All APIs are configured through environment variables, supporting multiple modes
- Error handling: All scripts include error handling and retry mechanisms
- Fault-tolerant degradation: Automatically degrades to a placeholder implementation when the API is unavailable
Usage examples
Example 1: 《The Three-Body Problem》IP creation
用户: "帮我创作一个《三体》威慑纪元的8分钟视频"
智能体执行:
1. 自动选择模式一: 《三体》IP创作
2. 按照前期筹备 → 视觉制作 → 音频与剪辑 → 质量管控流程
3. 调用相应脚本生成配音、音效、背景音乐
4. 合成最终视频
Example 2: Video secondary creation
用户: "这个视频帮我二创一下,换个风格"
智能体执行:
1. 自动选择模式二: 视频二创
2. 提取原视频关键帧
3. 视觉分析,提取风格特征
4. 生成新素材(图片、配音、音效、音乐)
5. 合成新视频
Example 3: Video analysis
用户: "分析这个视频,提取分镜和提示词"
智能体执行:
1. 自动选择模式三: 视频分析
2. 抽取视频关键帧
3. 分析每帧内容
4. 输出结构化分析结果
API configuration instructions
Suno API three modes
- Developer mode: Skill preset API Key, ready to use out of the box
- User mode: Users configure their own API Key
- Placeholder mode: Automatic degradation, completely free
Edge-TTS voice list
- Chinese: zh-CN-XiaoxiaoNeural(lively), zh-CN-XiaomengNeural(gentle), zh-CN-YunyangNeural(steady)
- English: en-US-JennyNeural(American), en-GB-SoniaNeural(British)
Coze Bot API
- Used for visual analysis
- Environment variables: COZE_BOT_ID, COZE_API_KEY