videodraft 0.38.1 → 0.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "videodraft",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.40.0",
|
|
4
4
|
"description": "Official VideoDraft CLI for AI videos, images, audio and 3D assets. Agent-friendly: --json everywhere, stable exit codes, async job polling.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
package/skills/index.json
CHANGED
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
"path": "references/cloud-render.md",
|
|
15
|
-
"sha256": "
|
|
16
|
-
"bytes":
|
|
15
|
+
"sha256": "38968295c36d29e302809ebdb7f9e9b6cb01481c6c4252bdf3171dc2742e9a89",
|
|
16
|
+
"bytes": 12521
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
"path": "references/cloud-sessions.md",
|
|
20
|
-
"sha256": "
|
|
21
|
-
"bytes":
|
|
20
|
+
"sha256": "63ebd83964b7f780064ea64d267891b48b0161ca922f7da3a1340ed809c99b44",
|
|
21
|
+
"bytes": 9566
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
"path": "references/editor.md",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
"path": "SKILL.md",
|
|
45
|
-
"sha256": "
|
|
46
|
-
"bytes":
|
|
45
|
+
"sha256": "30ba613b2fe76481735013c2dc84a84dba7581cf12a08961e7417200f0748f61",
|
|
46
|
+
"bytes": 61542
|
|
47
47
|
}
|
|
48
48
|
]
|
|
49
49
|
}
|
|
@@ -176,9 +176,9 @@ videodraft render stop # every machine on the acc
|
|
|
176
176
|
```
|
|
177
177
|
|
|
178
178
|
- Pack the scene first (Blender: File > External Data > Pack Resources, then save). Files outside the `.blend` are missing on the GPU, and scripts inside it never run. The engine (Cycles or Eevee) is whatever the scene is set to.
|
|
179
|
-
- `videodraft render prices` lists the GPU sizes on offer; `--gpu full` (96 GB) is the default and fastest.
|
|
179
|
+
- `videodraft render prices` lists the GPU sizes on offer; `--gpu full` (96 GB) is the default and fastest. The smaller sizes (`half` 48 GB, `quarter` 24 GB) cost less per frame but take longer: use them when the user wants it cheaper and is not in a hurry, and run a render again on a bigger size if it fails for GPU memory.
|
|
180
180
|
- Every job gets its own machine, so several renders run at the same time. A machine bills per second while it is on, at the rate `videodraft render prices` returns, and switches itself off 1 minute after its last job. State the rate and get a go-ahead before long renders; `render status` shows a job's cost so far and an estimate. `videodraft render stop` switches off every machine on the account, other agents' included, so run it only when the user asks.
|
|
181
|
-
- When Google has no regular GPU for a few minutes, a
|
|
181
|
+
- When Google has no regular GPU for a few minutes, a job also asks for a Spot GPU of its size at Google's own Spot price where it lands, never more than the regular rate (`render prices` shows each size's range), and the first GPU found takes the job; a Spot machine that is already on can also take the next job at once. When you state the rate before a long render, say it may run on Spot at no more than that rate. Google can reclaim a Spot machine; the job then continues from its finished segments. Tell the user when a job runs on Spot, and use `--no-spot` when they want the regular rate only or the render must not be interrupted.
|
|
182
182
|
- Waiting for a GPU is never billed. A job waits for Google to hand over a machine (usually 1 to 10 minutes, longer at busy times), then pays for about 15 seconds of start-up, the rendering, and about a minute of idle time before its machine switches off (none when another job takes the machine over). Test renders cost a few credits, so run tests and proofs in the cloud too, and submit jobs together. A queued job may have a machine starting or charges from an earlier attempt; check its phase and cost. Its displayed machine is only a candidate until the job is claimed.
|
|
183
183
|
- Name jobs with `--name "S4 final"` (default: the scene's file name and frames); `render status`, `wait`, `cancel` and `resume` take the name, and `render list --name` finds it, so you need no file of job ids.
|
|
184
184
|
- Exit code 4 means credits ran low, before the job started or mid-render (the job pauses and keeps its finished segments; uploading and starting need a minimum balance). Tell the user; after they top up, run `videodraft render resume <job_id>`.
|
|
@@ -186,7 +186,7 @@ videodraft render stop # every machine on the acc
|
|
|
186
186
|
|
|
187
187
|
Flags, outputs and the MCP flow (`cloud_render_*` tools): [references/cloud-render.md](references/cloud-render.md), or `videodraft skills show render`.
|
|
188
188
|
|
|
189
|
-
For building scenes with scripts, look-dev stills and many short Blender runs, or several projects at once, use a Cloud session: a cloud GPU machine a project keeps while it works (`videodraft render session start --name <project>`, then `push`, `run`, `pull`, and `render session blender` for the final frames). It pauses itself when idle and bills per second while on, at the
|
|
189
|
+
For building scenes with scripts, look-dev stills and many short Blender runs, or several projects at once, use a Cloud session: a cloud GPU machine a project keeps while it works (`videodraft render session start --name <project>`, then `push`, `run`, `pull`, and `render session blender` for the final frames). It runs on a full GPU by default (`--gpu half` or `quarter` for less), pauses itself when idle and bills per second while on, at the rate of its size. Commands, limits and the MCP flow: [references/cloud-sessions.md](references/cloud-sessions.md), or `videodraft skills show sessions`.
|
|
190
190
|
|
|
191
191
|
## Prefer references when continuity matters
|
|
192
192
|
|
|
@@ -53,18 +53,18 @@ Exit codes: 0 done; 1 failed, cancelled or another error; 2 bad flags; 3 not sig
|
|
|
53
53
|
| `--gpu` | GPU memory | Speed | Cost per frame |
|
|
54
54
|
| ------------------------ | ---------- | ------- | ---------------------------- |
|
|
55
55
|
| `full` (default) | 96 GB | fastest | highest |
|
|
56
|
-
| `half`
|
|
57
|
-
| `quarter`
|
|
56
|
+
| `half` | 48 GB | slower | lower |
|
|
57
|
+
| `quarter` | 24 GB | slowest | lowest, most of all on Eevee |
|
|
58
58
|
|
|
59
59
|
All bill per second. A smaller GPU is cheaper overall, not just per minute, because one render rarely uses a whole RTX PRO 6000. Use `full` when the user is waiting, has a deadline or the scene is heavy; a smaller size when they want it cheaper and are not in a hurry. The scene has to fit in the GPU memory: if a render fails for memory, run it again on a bigger size. `render status` shows a job's cost so far and, while it renders, an estimate for the whole job.
|
|
60
60
|
|
|
61
61
|
## Spot GPUs, when regular ones run out
|
|
62
62
|
|
|
63
|
-
When Google has no regular GPU for a few minutes (`after_minutes` in `render prices`), a
|
|
63
|
+
When Google has no regular GPU for a few minutes (`after_minutes` in `render prices`), a job also asks for a Spot GPU of its size, while its request for a regular one keeps its place. Whichever GPU comes first takes the job, and a Spot machine that is already on (one that just finished a job) can also take the next job at once. A Spot machine costs Google's own Spot price in the region it lands in, kept for the machine's life: never more than the regular rate, and often 10 to 40% less (the `spot credits/min` column of `render prices` shows each size's range; `spot.sizes` in `--json`). The cheapest regions are asked first. When you state the rate and get a go-ahead before a long render, say it may run on Spot at no more than that rate, and tell the user when a job runs on Spot (`render status` then shows the machine's own rate). The fallback itself needs no further go-ahead.
|
|
64
64
|
|
|
65
65
|
Google can reclaim a Spot machine at any time. The job then goes back to the queue and continues from its finished segments, so only the segment in progress renders again; a Spot machine reclaimed in its first minute is not billed. `render wait` says when a job starts asking for Spot and when Google reclaims its machine; `render status` has a `spot` line, and `render machine` marks Spot machines.
|
|
66
66
|
|
|
67
|
-
Use `--no-spot` (MCP: `spot: "never"`) when the user wants the regular rate only, or a render must not be interrupted, for example close to a deadline where a restart costs more time than a wait.
|
|
67
|
+
Use `--no-spot` (MCP: `spot: "never"`) when the user wants the regular rate only, or a render must not be interrupted, for example close to a deadline where a restart costs more time than a wait.
|
|
68
68
|
|
|
69
69
|
## Scenes must be self-contained
|
|
70
70
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Cloud sessions: a GPU machine to work on
|
|
2
2
|
|
|
3
|
-
A Cloud session is a cloud GPU machine (NVIDIA RTX PRO 6000
|
|
3
|
+
A Cloud session is a cloud GPU machine (NVIDIA RTX PRO 6000) that you work on for a while: push files once, run shell commands and Blender scripts on it, pull results back, and render from it. Each project gets its own session, so several projects run at the same time without waiting on one local Blender.
|
|
4
4
|
|
|
5
5
|
## Which to use
|
|
6
6
|
|
|
@@ -29,11 +29,21 @@ videodraft render session status film76
|
|
|
29
29
|
videodraft render session list # every session, and storage used of the cap
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
-
`start` flags: `--name` (use it everywhere instead of the id; give each project its own), `--from-snapshot <name>`, `--idle-minutes <n>` (1 to 1440, default 15), `--budget <credits>` (pauses the session at that cost; saving and switching off add about a minute), `--no-spot`, `--no-wait`. Without `--no-wait`, `start` waits until the machine is ready.
|
|
32
|
+
`start` flags: `--name` (use it everywhere instead of the id; give each project its own), `--gpu full|half|quarter` (below), `--from-snapshot <name>`, `--idle-minutes <n>` (1 to 1440, default 15), `--budget <credits>` (pauses the session at that cost; saving and switching off add about a minute), `--no-spot`, `--no-wait`. Without `--no-wait`, `start` waits until the machine is ready.
|
|
33
|
+
|
|
34
|
+
## GPU size
|
|
35
|
+
|
|
36
|
+
| `--gpu` | GPU memory | Rate (`render prices`) | Good for |
|
|
37
|
+
| ---------------- | ---------- | ---------------------- | ----------------------------------------------------------- |
|
|
38
|
+
| `full` (default) | 96 GB | highest | heavy scenes, full-size stills, anything the user waits for |
|
|
39
|
+
| `half` | 48 GB | about 58% of full | most scene building, look-dev and proofs |
|
|
40
|
+
| `quarter` | 24 GB | about 29% of full | scripts, small stills and proofs that fit 24 GB |
|
|
41
|
+
|
|
42
|
+
A session keeps its size: every machine it starts on, after a pause too, has the same GPU. For another size, start another session (`--from-snapshot` to bring the files). Its final frames can still render on any size: `render session blender --gpu`. On a half or quarter, run heavy Blender commands one at a time: commands share the GPU's memory.
|
|
33
43
|
|
|
34
44
|
## How it works
|
|
35
45
|
|
|
36
|
-
- **Billing.** Per second from the moment Google hands the machine over, at the Cloud render rate, with at least a minute per start. Start-up (booting and loading the session's files) takes about 1 to 2 minutes before the session is ready and is billed; the status can still say "waiting" for part of it. Waiting for a GPU is not billed, and neither is a paused session. A session asks for a regular GPU and, after about 2 minutes without one, a Spot GPU too, at
|
|
46
|
+
- **Billing.** Per second from the moment Google hands the machine over, at the Cloud render rate of the session's size plus about a cent an hour for its bigger disk (the `session credits/min` column of `render prices`), with at least a minute per start. Start-up (booting and loading the session's files) takes about 1 to 2 minutes before the session is ready and is billed; the status can still say "waiting" for part of it. Waiting for a GPU is not billed, and neither is a paused session. A session asks for a regular GPU and, after about 2 minutes without one, a Spot GPU of its size too, at Google's own Spot price where it lands, never more than the regular rate (`--no-spot` waits for a regular one); `status` says "on Spot" when it got one, and "billing now" shows the machine's rate. Google can take a Spot machine back at any time: the session then pauses with what finished commands saved (a running command is cut off), and the next `run` resumes it.
|
|
37
47
|
- **Idle pause.** A session pauses itself after its idle minutes: billing stops, its files stay saved, and `resume` or the next `run` starts it on a new machine with them.
|
|
38
48
|
- **Files.** `push` sends files and folders by content: unchanged files are never uploaded again. A folder keeps its name under `--to` (`push s blender --to project` makes `project/blender/...`); a file lands as `--to/<file name>`. Pushes go to storage, not the machine, so they work while the session starts or is paused: start with `--no-wait` and push during the GPU wait. Commands start once the machine has the current files. `pull <folder>` puts that folder's files straight into `--out`; without a folder, everything comes with its session path.
|
|
39
49
|
- **The machine.** Linux with Blender 5.2 as `blender` (`$BLENDER`) and 4.5 as `$BLENDER_4_5`; Python 3 with NumPy, SciPy, OpenCV, Pillow and imageio; FFmpeg, ImageMagick, OpenEXR tools, git, curl, wget, 7-Zip, jq and common fonts. It reaches the web over HTTP and HTTPS, so scripts can download assets and `pip install --user` packages directly (much faster than pushing them from this computer). Commands run as a restricted user: no admin rights (no `apt`), and no access to the machine's credentials. Up to about 20 GB may be sent out to the internet per machine start; downloads are not counted.
|