
Jianying Video Gen
This automates JianYing's Seedance 2.0 model using Playwright to generate AI videos without touching the web UI. You get four modes: text-to-video, image-to-video, video-to-video style transfer, and extending existing clips. It handles the full workflow,logs in with cookies, fills forms, intercepts thread IDs, polls for completion, and downloads the MP4. Runs 3-5 credits per second depending on whether you pick Fast or standard. The dry-run mode is smart, letting you debug form state with screenshots before burning credits. You'll need Python 3.9+, a cookies.json from your browser session, and patience for video uploads (60-90 seconds for 8MB). Good for batching video generation or integrating JianYing into larger pipelines.
- skills.sh installs
- 556
- GitHub stars
- 252
- last updated
- Aug 21, 2026
Install
$ npx -y skills add cclank/lanshu-waytovideo --skill jianying-video-gen --agent claude-codeInstalls into .claude/skills of the current project.
Files
剪映 AI 视频生成器
通过 Playwright 自动化操作剪映(xyq.jianying.com),使用 Seedance 2.0 模型生成 AI 视频。
前置条件
- Python 3.9+ +
playwright已安装 - Chromium 已通过
playwright install chromium安装 - cookies.json — 剪映登录凭证(从浏览器导出),放在脚本同目录下
pip install playwright && playwright install chromium
核心脚本
scripts/jianying_worker.py — 主自动化脚本
使用方式
文生视频 (T2V)
python3 scripts/jianying_worker.py \
--cookies /path/to/cookies.json \
--output-dir /path/to/output \
--prompt "赛博朋克风格的长安城,飞行汽车穿梭在霓虹灯笼之间" \
--duration 10s \
--model "Seedance 2.0"
图生视频 (I2V)
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"
参考视频生成 (V2V)
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"
向后延伸 (Extend)
Sponsors
Details
- Repository
- github.com/cclank/lanshu-waytovideo
- Category
- Generative Media
- First seen
- Jun 3, 2026