videodraft 0.34.0 → 0.35.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/README.md +7 -7
- package/dist/index.js +335 -73
- package/package.json +1 -1
- package/skills/index.json +4 -4
- package/skills/videodraft/SKILL.md +2 -0
- package/skills/videodraft/references/cloud-render.md +37 -20
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "videodraft",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.35.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,8 +12,8 @@
|
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
"path": "references/cloud-render.md",
|
|
15
|
-
"sha256": "
|
|
16
|
-
"bytes":
|
|
15
|
+
"sha256": "c94221d3addd80b3e97d43de04d856fa9ff8b66e4eb96bdbb838f3dc6f66aa09",
|
|
16
|
+
"bytes": 10247
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
"path": "references/editor.md",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
"path": "SKILL.md",
|
|
40
|
-
"sha256": "
|
|
41
|
-
"bytes":
|
|
40
|
+
"sha256": "cf3189e9d267a18126bbb234fd543d37f7c9b9d05c288fb3f4965f636e103fa5",
|
|
41
|
+
"bytes": 59841
|
|
42
42
|
}
|
|
43
43
|
]
|
|
44
44
|
}
|
|
@@ -177,6 +177,8 @@ videodraft render stop # switch every GPU off whe
|
|
|
177
177
|
- 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.
|
|
178
178
|
- `videodraft render prices` lists the GPU sizes on offer; `--gpu full` (96 GB) is the default and fastest. When smaller sizes (`half`, `quarter`) are offered they 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.
|
|
179
179
|
- 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. When your task is done, run `videodraft render stop` so idle time is not billed.
|
|
180
|
+
- 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.
|
|
181
|
+
- 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.
|
|
180
182
|
- 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>`.
|
|
181
183
|
- Renders can take hours. For long jobs use `--no-wait`, then `videodraft render wait <job_id>`. Never submit the same render again to recover from a lost wait; check `videodraft render list`.
|
|
182
184
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Cloud render: Blender scenes on a cloud GPU
|
|
2
2
|
|
|
3
|
-
Cloud render renders the user's own `.blend` scene on cloud GPUs (NVIDIA RTX PRO 6000). Every job gets its own machine, so several jobs render at the same time; a machine starts on demand, takes the user's next job of its size when one is waiting, and switches itself off 1 minute after its last job. It generates nothing. Build or change the scene in Blender itself (in VideoDraft ADE, the `blender` app guide covers that); Cloud render only renders a saved file.
|
|
3
|
+
Cloud render renders the user's own `.blend` scene on cloud GPUs (NVIDIA RTX PRO 6000). Every job gets its own machine, so several jobs render at the same time; a machine starts on demand, takes the user's next job of its size when one is waiting, and switches itself off 1 minute after its last job. Waiting for a GPU is never billed. It generates nothing. Build or change the scene in Blender itself (in VideoDraft ADE, the `blender` app guide covers that); Cloud render only renders a saved file.
|
|
4
4
|
|
|
5
5
|
## Commands
|
|
6
6
|
|
|
@@ -8,19 +8,21 @@ Cloud render renders the user's own `.blend` scene on cloud GPUs (NVIDIA RTX PRO
|
|
|
8
8
|
videodraft render prices # live price per GPU-minute for each GPU size
|
|
9
9
|
videodraft render blender scene.blend --frames 1-240
|
|
10
10
|
videodraft render blender scene.blend --frames 1-240 --blender 4.5 --out ./media/renders/ --json
|
|
11
|
-
videodraft render blender scene.blend --frames 1001-1500 --no-wait --json
|
|
12
|
-
videodraft render wait
|
|
13
|
-
videodraft render status
|
|
14
|
-
videodraft render list --limit 10
|
|
11
|
+
videodraft render blender scene.blend --frames 1001-1500 --name "S4 final" --no-wait --json
|
|
12
|
+
videodraft render wait "S4 final" --out ./media/renders/ # a job id works everywhere a name does
|
|
13
|
+
videodraft render status "S4 final" --json
|
|
14
|
+
videodraft render list --limit 10 # names, status, cost, and what each machine is doing
|
|
15
|
+
videodraft render list --name "S4 final"
|
|
15
16
|
videodraft render cancel JOB_ID
|
|
16
17
|
videodraft render resume JOB_ID
|
|
17
|
-
videodraft render machine #
|
|
18
|
+
videodraft render machine # each machine's phase, what you pay now, 24 h and all-time spend
|
|
18
19
|
videodraft render stop # switch every GPU off now
|
|
19
20
|
```
|
|
20
21
|
|
|
21
22
|
`render blender` flags:
|
|
22
23
|
|
|
23
24
|
- `--frames <first>-<last>` (required): the inclusive frame range, or one frame such as `--frames 42`.
|
|
25
|
+
- `--name <label>`: what to call the job, up to 80 characters (default: the scene's file name and the frames, such as `main_v8 845-1350`). `render status`, `wait`, `cancel` and `resume` accept the name instead of the job id (the newest job with it; cancel and resume refuse when two jobs of that name qualify), and `render list --name` finds them. Name each job after its shot or purpose and you never need your own file of job ids.
|
|
24
26
|
- `--fps <n>`: frame rate of the output MP4 (default: the scene's own).
|
|
25
27
|
- `--chunk <n>`: frames per segment. Segments render in order, and finished ones are kept when a job pauses, fails or is cancelled.
|
|
26
28
|
- `--procs <n>`: Blender processes running in parallel on the GPU, 1-4.
|
|
@@ -33,11 +35,11 @@ videodraft render stop # switch every GPU off now
|
|
|
33
35
|
|
|
34
36
|
1. Hashes the file (SHA-256). A scene with the same bytes is uploaded only once, so re-rendering other frames skips the upload.
|
|
35
37
|
2. Uploads a new scene to its upload session in resumable 64 MiB chunks; after a dropped connection it asks the session what arrived and continues from there.
|
|
36
|
-
3. Submits the job.
|
|
37
|
-
4. Polls every 10 seconds with no time limit (renders can take hours), printing each
|
|
38
|
-
5. Downloads the finished MP4.
|
|
38
|
+
3. Submits the job. It waits for Google to hand over a GPU: usually 1 to 10 minutes, 15 or more at busy times. This wait is not billed, and the job keeps its place in the queue.
|
|
39
|
+
4. Polls every 10 seconds with no time limit (renders can take hours), printing each change: `waiting for a free GPU (not billed)`, `a GPU is starting for queued jobs (billed)`, `rendering (2/4 segments)`. After 5 minutes queued with a candidate still waiting for a GPU it says once that this can take longer. `--wait-timeout` and `--wait-interval` still apply when given.
|
|
40
|
+
5. Downloads the finished MP4, then says what the job cost and where the billed time went, for example `Billed 2m 18s of GPU time (start-up 15s, rendering 38s, idle before switch-off 1m 25s). Waited 8m 19s for a GPU, not billed.`
|
|
39
41
|
|
|
40
|
-
`--json` prints one document: the job (`job_id`, `status`, `segments_done`, `segments_total`, `timing`, `clip_url`) plus `scene_sha`, `uploaded` and `downloaded_files`. With `--no-wait` it is the submitted job: `job_id`, `status`, `machine`, `credits_per_minute` and `segments`.
|
|
42
|
+
`--json` prints one document: the job (`job_id`, `name`, `status`, `message`, `queued_seconds`, `wait_seconds`, `segments_done`, `segments_total`, `timing`, `cost`, `clip_url`) plus `scene_sha`, `uploaded` and `downloaded_files`. A queued job's machine is only a candidate and can change; `queued_seconds` can include billed start-up, while `wait_seconds` is the unbilled wait once known. With `--no-wait` it is the submitted job: `job_id`, `name`, `status`, `message`, `machine`, `credits_per_minute` and `segments`.
|
|
41
43
|
|
|
42
44
|
Exit codes: 0 done; 1 failed, cancelled or another error; 2 bad flags; 3 not signed in; 4 out of credits. Code 4 comes either before the job starts (the balance is below the minimum a job needs) or mid-render: the job pauses, keeps its finished segments, and waits. Tell the user, and after they add credits run `videodraft render resume <job_id>`. A failed job carries its error; `render resume` retries its unfinished segments, but fix the scene first when the error points at it.
|
|
43
45
|
|
|
@@ -45,11 +47,11 @@ Exit codes: 0 done; 1 failed, cancelled or another error; 2 bad flags; 3 not sig
|
|
|
45
47
|
|
|
46
48
|
`videodraft render prices` lists the sizes on offer and each one's rate:
|
|
47
49
|
|
|
48
|
-
| `--gpu`
|
|
49
|
-
|
|
50
|
-
| `full` (default)
|
|
51
|
-
| `half` (when offered)
|
|
52
|
-
| `quarter` (when offered) | 24 GB
|
|
50
|
+
| `--gpu` | GPU memory | Speed | Cost per frame |
|
|
51
|
+
| ------------------------ | ---------- | ------- | ---------------------------- |
|
|
52
|
+
| `full` (default) | 96 GB | fastest | highest |
|
|
53
|
+
| `half` (when offered) | 48 GB | slower | lower |
|
|
54
|
+
| `quarter` (when offered) | 24 GB | slowest | lowest, most of all on Eevee |
|
|
53
55
|
|
|
54
56
|
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.
|
|
55
57
|
|
|
@@ -59,14 +61,29 @@ Pack external files before rendering: in Blender, File > External Data > Pack Re
|
|
|
59
61
|
|
|
60
62
|
## Cost and machine time
|
|
61
63
|
|
|
62
|
-
|
|
64
|
+
What a job is billed for, at its GPU size's rate from `videodraft render prices` (MCP `cloud_render_prices`), per second:
|
|
63
65
|
|
|
64
|
-
|
|
66
|
+
| Part | Billed | Typical |
|
|
67
|
+
| -------------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------- |
|
|
68
|
+
| Waiting for Google to hand over a GPU | **No** | 1 to 10 minutes; 15 or more at busy times |
|
|
69
|
+
| Start-up, once Google hands the machine over | Yes | about 15 seconds, only on a machine's first job |
|
|
70
|
+
| Rendering | Yes | the frames |
|
|
71
|
+
| Idle wait and power-off after the job | Yes | about 85 seconds, only when no job of its size is waiting; a waiting job takes the machine over at once |
|
|
72
|
+
|
|
73
|
+
Each start has a one-minute minimum. So a short test job costs only a few credits, mostly its minute of start-up and idle time, and test renders, proofs and previews belong in the cloud as much as finals. Submit all the jobs you have at once: each gets its own machine, and jobs that wait for the same GPU size take over finished machines with no start-up or idle time.
|
|
74
|
+
|
|
75
|
+
`render status` and `render wait` show the split: `waited` (not billed), then `billed` as start-up, rendering and idle. A job's cost can still grow for about a minute after it is done, while its machine waits for more work; `cost.final` says when it is settled, and until then `cost.estimated_total_credits` says what it will be. `render machine` shows what each machine is doing: `waiting for a GPU (not billed)`, `starting up`, `rendering`, `idle` or `switching off`, and `billing now` adds up only the machines Google has handed over.
|
|
76
|
+
|
|
77
|
+
Waiting for a GPU is free. A queued job may also have a machine starting, which is billed, or charges from an earlier attempt; check its phase and cost. If a GPU takes long, say Google is short of GPUs at the moment and the job keeps its place.
|
|
78
|
+
|
|
79
|
+
Uploading and starting need a minimum balance; when only about two minutes of credit are left, every machine stops and the jobs pause. State the rate and get a go-ahead before long renders. When your task is finished, run `videodraft render stop` so idle time is not billed, unless the user still has renders queued.
|
|
80
|
+
|
|
81
|
+
Never submit the same render twice to recover from a lost wait or a timeout: the first job keeps running and billing. Check `videodraft render list` (or `render list --name <name>`) and continue with `render wait`.
|
|
65
82
|
|
|
66
83
|
## Without the CLI (MCP)
|
|
67
84
|
|
|
68
85
|
1. `cloud_render_upload_scene` with the file's `sha256` and `size`. `exists: true` means skip to step 3.
|
|
69
86
|
2. PUT the bytes to `upload_url`: one PUT of the whole file, or chunks that are multiples of 256 KiB with `Content-Range: bytes <first>-<last>/<size>` (308 means send the next chunk from the Range header, 200 or 201 means complete). Then `cloud_render_finalize_scene` with the same `sha256`.
|
|
70
|
-
3. `cloud_render_submit` with `scene_sha`, `start`, `end` and optional `gpu`, `fps`, `chunk`, `procs`, `blender_version`.
|
|
71
|
-
4. Poll `cloud_render_status` every 10 seconds or more. `clip_url` is the finished MP4; `segment_urls` lists finished pieces before then; `cost` has the credits so far and
|
|
72
|
-
5. `cloud_render_stop` when the work is done. `cloud_render_list
|
|
87
|
+
3. `cloud_render_submit` with `scene_sha`, `start`, `end` and optional `name`, `gpu`, `fps`, `chunk`, `procs`, `blender_version`.
|
|
88
|
+
4. Poll `cloud_render_status` every 10 seconds or more. `message` and `machine.phase` distinguish a free GPU wait from billable start-up; a queued job's machine is a candidate that can change. `queued_seconds` includes time queued; `wait_seconds` gives the free wait when known. `clip_url` is the finished MP4; `segment_urls` lists finished pieces before then; `cost` has the credits so far, `start_up_seconds`, `render_seconds` and `idle_seconds`, and `estimated_total_credits` (plus `estimated_minutes_left` while rendering).
|
|
89
|
+
5. `cloud_render_stop` when the work is done. `cloud_render_list` (with `name` to find jobs by name), `cloud_render_cancel`, `cloud_render_resume` and `cloud_render_machine` (each machine's `phase` and `billing`) match the CLI commands above.
|