
jianying-video-gen
使用剪映(Jianying/小云雀)的 Seedance 2.0 模型自动生成AI视频。支持文生视频(T2V)、图生视频(I2V)、参考视频生成(V2V)和向后延伸(Extend)四种模式。当用户需要生成AI视频、使用Seedance模型创作短片、基于参考图像/视频进行风格转换,或对已有结果继续延长时使用此技能。需要预先配置 cookies.json 登录凭证。
- Installs
- 552
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/cclank/lanshu-waytovideo --skill jianying-video-gen- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads jianying-video-gen automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
剪映 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)
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 | "一个美女在跳舞" | 任意文本 | 视频描述 |
--duration | 10s | 5s, 10s, 15s | 视频时长 |
--ratio | 横屏 | 横屏, 竖屏, 方屏 | 画面比例 |
--model | Seedance 2.0 | Seedance 2.0, Seedance 2.0 Fast | 模型选择 |
--ref-image | 无 | 本地图片路径 | I2V 模式的参考图片 |
--ref-video | 无 | 本地视频路径 | V2V 模式的参考视频 |
--extend-url | 无 | thread 链接 | Extend 模式,基于已有视频继续生成 |
--cookies | cookies.json | 文件路径 | 剪映登录凭证路径 |
--output-dir | . | 目录路径 | 输出视频保存目录 |
--dry-run | false | - | 只填表不提交 |
模型与积分
| 模型 | 积分/秒 | 5s | 10s | 15s | 特点 |
|---|---|---|---|---|---|
| Seedance 2.0 Fast | 3 | 15 | 30 | 45 | 快速,适合测试 |
| Seedance 2.0 | 5 | 25 | 50 | 75 | 高质量,正式出片 |
自动化流程
登录(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 分钟。
FAQ
What does the jianying-video-gen skill do?
使用剪映(Jianying/小云雀)的 Seedance 2.0 模型自动生成AI视频。支持文生视频(T2V)、图生视频(I2V)、参考视频生成(V2V)和向后延伸(Extend)四种模式。当用户需要生成AI视频、使用Seedance模型创作短片、基于参考图像/视频进行风格转换,或对已有结果继续延长时使用此技能。需要预先配置 cookies.json 登录凭证。
How do I install jianying-video-gen?
Run npx skills add https://github.com/cclank/lanshu-waytovideo --skill jianying-video-gen in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/jianying-video-gen/ (personal) or .claude/skills/jianying-video-gen/ (project).
Which AI agents can use jianying-video-gen?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is jianying-video-gen safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains jianying-video-gen?
It is published by cclank in cclank/lanshu-waytovideo. It has 552 recorded installs.
Popular media & creative skills
hyperframes
heygen-com/hyperframes
Read first to make, edit, animate or render any video with HyperFrames (HTML rendered to video), including launch films, explainers, music videos, charts, maps, vertical clips, title cards, captions and overlays. Holds the render contract, the work loop and what each kind of video needs.
media-use
heygen-com/hyperframes
Get or make any media for a HyperFrames video - music, sound effects, images, icons, logos, voiceover, avatar and generated video, transcripts, cutouts, colour grades and looks - with HeyGen or free local tools, and mix placed audio. Also for footage that looks dark, flat or dull, or should be stylized or hidden.
hyperframes-registry
heygen-com/hyperframes
About 450 ready-made HyperFrames blocks and components installed as editable source - transitions, overlays, titles, kinetic type, captions, charts, map overlays, 3D, camera moves. Use it before hand-building any named visual (CRT scanlines, glitch, film grain, a chart); also for hyperframes add and catalog.
hyperframes-creative
heygen-com/hyperframes
Non-animation creative direction for HyperFrames videos. Use for design spec (frame.md / design.md) handling, palettes, typography, narration, beat planning, audio-reactive visuals, composition patterns, and brand / style decisions. For atomic motion patterns and scene blueprints, use hyperframes-animation.
ai-video-generation
101-skills/superpowers
Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0, HappyHorse 1.0, Wan 2.5, Grok Imagine Video, OmniHuman, Fabric, HunyuanVideo. Capabilities: text-to-video, image-to-video, reference-to-video, video editing, lipsync, avatar animation, video upscaling, foley sound. Use for: social media videos, marketing content, explainer videos, product demos, AI avatars. Triggers: video generation, ai video, text to video, image to video, veo, animate image, video from image, ai animation, video generator, generate video, t2v, i2v, ai video maker, create video with ai, runway alternative, pika alternative, sora alternative, kling alternative, seedance, happyhorse
ai-image-generation
101-skills/superpowers
Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FLUX.2 Klein LoRA, Gemini 3 Pro Image, Grok Imagine, Seedream 4.5, Reve, ImagineArt. Capabilities: text-to-image, image-to-image, inpainting, LoRA, image editing, upscaling, text rendering. Use for: AI art, product mockups, concept art, social media graphics, marketing visuals, illustrations. Triggers: flux, image generation, ai image, text to image, stable diffusion, generate image, ai art, midjourney alternative, dall-e alternative, text2img, t2i, image generator, ai picture, create image with ai, generative ai, ai illustration, grok image, gemini image, gpt image, openai image, chatgpt image