加载中
阿里云百炼
一键编排 Spark Video 完整流程,从编剧、分镜和渲染到逐片段复核及最终拼接。
REVIEWED DOCUMENTATION EVIDENCE
以下内容来自与当前版本绑定并经 reviewer 批准的上游文档证据。它说明文档中存在相应安装或使用信息,不代表平台已经执行安装、完成兼容测试或验证运行结果。
安装证据
## Install — just ask your agent The whole install is **one prompt**. Open any agent that supports skills (Claude Code, Cursor, Qwen Code, Gemini CLI, …) and copy-paste this whole code block: ```text Install the spark-video skill for me: 1. Detect this OS's correct skills directory for the agent I'm running in (e.g. `~/.claude/skills/`, `~/.qwen/skills/`, `~/.cursor/skills/`, …) and `git clone https://github.com/JohnKeating1997/spark-video.git` into it as `spark-video`. 2. Tell me to open a new session so the skill gets loaded. 3. In the new session, read `spark-video/SKILL.md`, run `./scripts/doctor.sh`, and install any missing deps (`bl`, `ffmpeg`, `uv`) with my OS's package manager — ask before each install command. 4. Ask whether to also clone the Shanyin craft references via `./scripts/install-deps.sh` (failure is safe). 5. Re-run doctor and confirm everything is green. ``` That's it. No paths to memorize, no platform-specific commands to copy — the agent reads `SKILL.md` (which contains the full install runbook) and drives the rest. <details> <summary>Manual fallback (if your agent isn't skill-aware)</summary> ```bash
使用证据
## Examples > **Note:** The videos below were actually generated from **Chinese prompts** (see [`README.zh.md`](README.zh.md) for the originals). The prompts here are English translations for readability — spark-video works equally well in either language, but on-screen text, TTS narration, and rendered dialog will follow whichever language you write your prompt in. > > **GitHub cannot embed `<video>` in READMEs** — click a cover image to open the full video in a new tab. <table> <tr> <th width="44%">📝 Prompt (translated)</th> <th width="56%">🎬 Output</th> </tr> <tr> <td valign="top"> **① J-drama · First Love** (≈2 min, 16:9) > J-drama style. A high-school girl's sweet, awkward first-love story — heartwarming enough to make the viewer want to fall in love. About 2 minutes long. 16:9. </td> <td> <a href="https://cloud.video.taobao.com/vod/ToFBk3q6IrT1L6k9TAW3Qu0GdJAWN80uyb75zNelvE8.mp4" target="_blank"> <img src="https://img.alicdn.com/imgextra/i4/6000000000158/O1CN01Nko87m1D2Pip5isBr_!!6000000000158-0-tbvideo.jpg" alt="J-drama · First Love — click to play" width="100%"> </a> </td> </tr> <tr> <td valign="top"> **② Suspense · The Last Train** — narrator-only, no BGM, custom TTS voice <details> <summary>Full prompt</summary> Use spark-video to generate a suspense short film for me. **Synopsis:** I boarded an express train. About ten minutes before midnight, at an intermediate stop, a man also got on. The moment the doors closed, he seemed to snap back to consciousness and began scanning the faces of the passengers around him. *"Forgive my rudeness — but are you 28 this year?"* he asked me. *"Yes, but how could you tell?"* I replied — but he ignored me and kept talking to others on his own. *"You're 45 this year, aren't you?" — "That's right." — "And you — 62
### How to use a set 1. **Pick a stable folder name for each location AND lighting state.** 2. **Set `Scene.set_id`** to the most common lighting state for that scene. 3. **Per-shot override via `Shot.set_id`** when one shot in the scene genuinely lives in a different lighting state. Common in narration mode — a "Lu Chen's grueling daily routine" scene might span `office-tower-daytime` + `construction-site-night` + `rental-room-warm-lamp`. Each beat sets `Shot.set_id` explicitly; `Scene.set_id` stays `null`. Precedence: `null` = inherit from scene, `""` = explicit opt-out, any other string = override. 4. **Within ONE chain group**, every r2v shot must resolve to the **same** `set_id` (or none). The renderer's chain-bridging first_frame already locks lighting; appending a *different* set image fights that lock and produces flicker. The validator lints this — if you see `"chain rooted at S02-003 uses set_id='客栈-白天' but this shot resolves to '客栈-夜晚'"`, either split the chain (`use_prev_last_frame_as_first: false` on the offending shot) or align the `set_id`. 5. **The renderer auto-appends the set's reference image to every r2v shot's `media[]`** after cast portraits. You do NOT mention "[Image N] 客栈大堂" in the prompt — it's automatic. 6. **For `t2v` shots in a scene with `set_id`**, the model can't take a reference image. Weave the set's textual description (especially lighting/color words) into the prompt manually, OR change kind to `r2v` with `characters: []` (a "location-locked t2v"). 7. **Don't write clothing-style ban for sets either.** Describe action / camera only — let the reference image carry layout, materials, props, AND lighting.
### How to use a prop in a storyboard
1. **List the prop in the scene's `props_present`** for recall (mirrors
`characters_present`). The validator warns when a shot references a
prop the scene didn't declare.
2. **Set `Shot.props: ["<prop name>", ...]`** on every r2v shot where
the prop is on screen and matters. Names must match a folder —
case-sensitive, exact match.
3. **State transitions**: when the prop changes state mid-scene, swap
the prop name across shots:
```json
"shots": [
{"id": "S03-001", "kind": "r2v", "characters": ["陆辰"],
"props": ["红包-完整"], "prompt": "陆辰把现金塞进红包内层"},
{"id": "S03-002", "kind": "r2v", "characters": ["陆辰"],
"props": ["红包-起皱"], "prompt": "陆辰紧攥红包, 边角微皱",
"use_prev_last_frame_as_first": false},
{"id": "S03-003", "kind": "r2v", "characters": ["陆辰","钱夫人"],
"props": ["红包-撕碎"], "prompt": "钱夫人当面撕碎红包",
"use_prev_last_frame_as_first": false}
]
```
`use_prev_last_frame_as_first: false` on state-change shots — chaining
through a state transition tries to interpolate frame-by-frame and
produces flicker. Use a hard cut.
4. **The renderer auto-appends each prop's reference image to the r2v
shot's `media[]`** after cast portraits and after the set image. You
do NOT mention "[Image N] 红包" in the prompt — it's automatic.
5. **DON'T re-describe the prop's appearance in the prompt.** Same rule
as cast: material / color / shape / wear belongs to the reference image.
The prompt describes the *action* the character does WITH the prop
("stuff money in / crumple / tear / toss onto table"), framing, and at most a single
state word ("creased red envelope" — never "large red hot-stamped envelope printed with 囍").
6. **Provider image cap**: r2v media[] has a hard cUSER EXPERIENCE
暂无真实用户评价
如果你实际使用过这个 Skill,可以分享具体场景、效果和踩坑。平台不会用评价替代 VERIFIED、安全或兼容性证据。
REQUIREMENTS
当前版本没有声明额外依赖。
权限、网络访问和静态扫描结果放在“安全与兼容”页签,避免把工程细节堆在概览里。