jianying-video-gen
Original:🇨🇳 Chinese
Translated
1 scripts
Automatically generate AI videos using the Seedance 2.0 model of Jianying (also called Xiaoyunque). It supports three modes: Text to Video (T2V), Image to Video (I2V) and Reference Video to Video (V2V). This skill is applicable when users need to generate AI videos, create short films with the Seedance model, or perform style conversion based on reference images/videos. Pre-configuration of the cookies.json login credential is required.
7installs
Sourcecclank/lanshu-waytovideo
Added on
NPX Install
npx skill4agent add cclank/lanshu-waytovideo jianying-video-genTags
Translated version includes tags in frontmatterSKILL.md Content (Chinese)
View Translation Comparison →Jianying AI Video Generator
Automate operations on Jianying (xyq.jianying.com) via Playwright to generate AI videos using the Seedance 2.0 model.
Prerequisites
- Python 3.9+ and installed
playwright - Chromium installed via
playwright install chromium - cookies.json — Jianying login credential (exported from browser), placed in the same directory as the script
bash
pip install playwright && playwright install chromiumCore Script
scripts/jianying_worker.pyUsage
Text to Video (T2V)
bash
python3 scripts/jianying_worker.py \
--cookies /path/to/cookies.json \
--output-dir /path/to/output \
--prompt "赛博朋克风格的长安城,飞行汽车穿梭在霓虹灯笼之间" \
--duration 10s \
--model "Seedance 2.0"Image to Video (I2V)
bash
python3 scripts/jianying_worker.py \
--cookies /path/to/cookies.json \
--output-dir /path/to/output \
--ref-image /path/to/image.png \
--prompt "将这张图片变成动画,镜头从左向右缓慢平移" \
--duration 10s \
--model "Seedance 2.0 Fast"Reference Video to Video (V2V)
bash
python3 scripts/jianying_worker.py \
--cookies /path/to/cookies.json \
--output-dir /path/to/output \
--ref-video /path/to/reference.mp4 \
--prompt "画风改成宫崎骏风格,其他不变" \
--duration 10s \
--model "Seedance 2.0"Dry-Run Mode (for debugging)
bash
python3 scripts/jianying_worker.py --cookies /path/to/cookies.json --prompt "测试" --dry-runOnly fill the form without submission, generatescreenshots for inspection.step_*.png
Parameter Description
| Parameter | Default Value | Optional Values | Description |
|---|---|---|---|
| "A beautiful woman is dancing" | Any text | Video description |
| | | Video duration |
| | | Aspect ratio |
| | | Model selection |
| None | Local image path | Reference image for I2V mode |
| None | Local video path | Reference video for V2V mode |
| | File path | Jianying login credential path |
| | Directory path | Output video saving directory |
| false | - | Only fill form without submission |
Model and Points
| Model | Points per second | 5s | 10s | 15s | Features |
|---|---|---|---|---|---|
| Seedance 2.0 Fast | 3 | 15 | 30 | 45 | Fast, suitable for testing |
| Seedance 2.0 | 5 | 25 | 50 | 75 | High quality, for formal production |
Automation Process
Login(cookies) → New project → Immersive short film → Select model → [Upload reference video] → Select duration → Enter Prompt → Submit
→ Intercept thread_id → Navigate to detail page → Poll for video → curl download MP4Prompt Writing Guide
For detailed prompt examples and writing tips, refer to .
references/prompt-guide.mdFAQ
Q: What to do if cookies expire?
Log in to xyq.jianying.com in your browser, export cookies.json using extensions like EditThisCookie.
Q: Encounter 403 error when downloading?
The script uses thread_id detail page + curl for downloading, CDN links do not require cookies. If it still fails, check your network.
Q: Is uploading reference video very slow?
It is normal, an 8MB video takes about 60-90 seconds. The script will automatically wait for up to 5 minutes.