Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
cclank avatar

Jianying Video Gen

  • 526 installs
  • 249 repo stars
  • Updated April 4, 2026
  • cclank/lanshu-waytovideo

jianying-video-gen is a Python Playwright agent skill that automates Jianying Seedance 2.0 AI video generation in four modes—T2V, I2V, V2V, and Extend—for developers who need CLI-driven short-form video from text, images

About

jianying-video-gen is a skill from cclank/lanshu-waytovideo that automates AI video creation on Jianying (剪映/小云雀) using the Seedance 2.0 model through Playwright browser control of xyq.jianying.com. It supports four generation modes: text-to-video (T2V), image-to-video (I2V), reference video-to-video (V2V), and backward extension (Extend) of existing clips. Prerequisites include Python 3.9+, playwright with Chromium installed via playwright install chromium, and a cookies.json login export placed beside scripts/jianying_worker.py. Example usage runs python3 scripts/jianying_worker.py with --cookies and --output-dir flags. Developers use it to batch-generate marketing clips, style-transfer experiments, or extend prior renders without manual browser clicking. The skill is China-ecosystem specific and requires valid Jianying session cookies. Skip it for teams without Jianying access or projects standardizing on other video APIs like Runway or Sora.

  • Automates Jianying (xyq.jianying.com) via Playwright to run Seedance 2.0
  • Supports four generation modes: T2V (text-to-video), I2V (image-to-video), V2V (video reference), and Extend
  • CLI-first workflow with full control over prompt, duration, model variant and output directory
  • Requires cookies.json login credential exported from browser
  • Runs on local Chromium for full browser fidelity

Jianying Video Gen by the numbers

  • 526 all-time installs (skills.sh)
  • Ranked #394 of 1,335 Generative Media skills by installs in the Skillselion catalog
  • Data as of Jul 29, 2026 (Skillselion catalog sync)
npx skills add https://github.com/cclank/lanshu-waytovideo --skill jianying-video-gen

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs526
repo stars249
Last updatedApril 4, 2026
Repositorycclank/lanshu-waytovideo

How do you automate Jianying Seedance video generation from CLI?

Automate high-quality AI video generation using Jianying's Seedance 2.0 model directly from the command line.

Who is it for?

Developers with Jianying accounts who want scripted Seedance 2.0 video generation across four modes without manual browser work.

Skip if: Teams without Jianying login cookies or projects standardized on Western-hosted video generation APIs.

When should I use this skill?

The user wants AI video from Seedance 2.0, Jianying automation, or CLI batch generation using text, images, or reference videos.

What you get

Rendered AI video files in the output directory from T2V, I2V, V2V, or Extend runs via Playwright automation.

  • Generated AI video files
  • Automated Playwright worker runs

By the numbers

  • 4 generation modes: T2V, I2V, V2V, and Extend
  • Requires Python 3.9+ and Playwright Chromium

Files

SKILL.mdMarkdownGitHub ↗

剪映 AI 视频生成器

通过 Playwright 自动化操作剪映(xyq.jianying.com),使用 Seedance 2.0 模型生成 AI 视频。

前置条件

1. Python 3.9+ + playwright 已安装 2. Chromium 已通过 playwright install chromium 安装 3. 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)

python3 scripts/jianying_worker.py \
  --cookies /path/to/cookies.json \
  --output-dir /path/to/output \
  --extend-url 'https://xyq.jianying.com/home?tab_name=integrated-agent&thread_id=YOUR_THREAD_ID&agent_name=pippit_video_part_agent' \
  --prompt "向后延伸,保持人物和镜头语言一致" \
  --duration 5s

Dry-Run 模式(调试用)

python3 scripts/jianying_worker.py --cookies /path/to/cookies.json --prompt "测试" --dry-run
只填写表单不提交,生成 step_*.png 截图供检查。
对 V2V 来说,dry-run 现在还会输出一段 表单状态 JSON,用来确认参考视频缩略图是否已挂上、发送按钮是否已解锁。

参数说明

参数默认值可选值说明
--prompt"一个美女在跳舞"任意文本视频描述
--duration10s5s, 10s, 15s视频时长
--ratio横屏横屏, 竖屏, 方屏画面比例
--modelSeedance 2.0Seedance 2.0, Seedance 2.0 Fast模型选择
--ref-image本地图片路径I2V 模式的参考图片
--ref-video本地视频路径V2V 模式的参考视频
--extend-urlthread 链接Extend 模式,基于已有视频继续生成
--cookiescookies.json文件路径剪映登录凭证路径
--output-dir.目录路径输出视频保存目录
--dry-runfalse-只填表不提交

模型与积分

模型积分/秒5s10s15s特点
Seedance 2.0 Fast3153045快速,适合测试
Seedance 2.05255075高质量,正式出片

自动化流程

登录(cookies) → 选模式(沉浸式短片) → 选模型 → [上传参考素材/打开已有 thread 并点向后延伸] → 选时长 → 输入Prompt → 发送
  → 拦截 thread_id → 导航详情页 → 轮询视频 → curl 下载 MP4

提示词编写指南

详细的提示词示例和编写技巧参见 references/prompt-guide.md

常见问题

Q: cookies 过期了怎么办? 在浏览器登录 xyq.jianying.com,使用 EditThisCookie 等扩展导出 cookies.json。

Q: 下载 403? 脚本使用 thread_id 详情页 + curl 下载,CDN 链接无需 cookie。如仍失败检查网络。

Q: 上传参考视频很慢? 正常,8MB 视频约需 60-90 秒。脚本会自动等待最多 5 分钟。

Related skills

How it compares

Use jianying-video-gen when you already rely on Jianying Seedance; pick API-native video skills for platforms without browser cookie auth.

FAQ

What modes does jianying-video-gen support?

jianying-video-gen supports four Seedance 2.0 modes on Jianying: text-to-video (T2V), image-to-video (I2V), reference video-to-video (V2V), and Extend to lengthen existing clips. Each mode runs through scripts/jianying_worker.py.

What setup does jianying-video-gen require?

jianying-video-gen requires Python 3.9+, playwright with Chromium installed, and a cookies.json Jianying login export. Run pip install playwright && playwright install chromium before invoking the worker script with --cookies and --output-dir.

Generative Mediaautomationllm

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.