douyin-guoxue-volcengine-pipeline
Use this skill to run a production-tested Douyin guoxue pipeline.
Core workflow
- Load Volcengine env from
C:\Users\Lenovo\.openclaw\workspace\.volcengine_config
- Generate 3 vertical keyframes with
volcengine-image-studio
- Turn each keyframe into a 5s motion shot with
volcengine-video-studio
- Stitch 3 shots into a ~15s vertical cut with
ffmpeg
- Generate Chinese voiceover with
edge-tts
- Mix voice + BGM + subtitles
- Publish through
skills/douyin-publisher/scripts/publish.py
- Verify in Douyin creator backend after publish
Hard rules
- Do not use a single still image as the full video when the user wants a stronger result
- Prefer 3 shots; use about 3-5s per shot
- Always keep output 9:16 vertical
- Always do a backend verification after publish; do not trust script success text alone
- When publishing AI-generated work, use the publish flow that goes through:
Current validated local components
- Volcengine image script:
skills/volcengine-image-studio/scripts/generate_image.py
- Volcengine video script:
skills/volcengine-video-studio/scripts/generate_video.py
- Douyin publish script:
skills/douyin-publisher/scripts/publish.py
- Volcengine env file:
.volcengine_config
- Typical BGM asset:
generated/guoxue-douyin/final-cuts/guofeng-lite-bgm.wav
Fast execution pattern
1. Load config into current process
PowerShell:
$cfg = Get-Content .\.volcengine_config
foreach($line in $cfg){ if($line -match '^\s*([A-Z0-9_]+)=(.*)$'){ [Environment]::SetEnvironmentVariable($matches[1], $matches[2], 'Process') } }
[Environment]::SetEnvironmentVariable('VOLCENGINE_VIDEO_MODEL','doubao-seedance-1-0-pro-fast-251015','Process')
2. Generate 3 keyframes
Use thematic prompts for shot 1 / shot 2 / shot 3. Keep style consistent:
- Song-dynasty aesthetics
- Eastern negative space
- cinematic light
- no cartoon
- no modern city unless requested
3. Generate 3 motion shots
For each generated keyframe:
py -3.11 .\skills\volcengine-video-studio\scripts\generate_video.py "<motion prompt>" --image <cover> --ratio 9:16 --duration 5 --download-dir <dir>
4. Voiceover
edge-tts --voice zh-CN-XiaoxiaoNeural --file <script.txt> --write-media <voice.mp3>
Recommended voices:
zh-CN-XiaoxiaoNeural — warm / calm / female
zh-CN-YunxiNeural — male / composed / explanatory
5. Final assembly
Use ffmpeg to:
- trim each shot to ~4.8-4.9s
- concat 3 shots
- burn title / line subtitles
- mix voice + low-volume BGM
6. Publish and verify
Publish with py -3.11 skills/douyin-publisher/scripts/publish.py ...
Then must open creator manage page and confirm the new item appears in the list.
Suggested directory pattern
Store runs under:
generated/guoxue-douyin/<theme>-volcengine/
Example themes:
qian-gua-volcengine
kun-gua-volcengine
tai-gua-volcengine
Read next when needed
- For prompt structure and reusable shot patterns, read
references/prompt-patterns.md
- For publishing / verification / AI declaration notes, read
references/publish-notes.md