videodraft 0.33.2 → 0.34.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 +3 -2
- package/dist/index.js +77 -34
- package/package.json +1 -1
- package/skills/index.json +4 -4
- package/skills/videodraft/SKILL.md +7 -6
- package/skills/videodraft/references/cloud-render.md +20 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "videodraft",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.34.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": "9d82618d63f3cc8e69e9d062edc09baa875146cb56069a5c5fc04db1718fdc85",
|
|
16
|
+
"bytes": 6406
|
|
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": "4423cf42faa00cc3432e8b514a2194804c0e69f0946510a03b885ab656b71eaf",
|
|
41
|
+
"bytes": 59055
|
|
42
42
|
}
|
|
43
43
|
]
|
|
44
44
|
}
|
|
@@ -166,17 +166,18 @@ For an existing native-editor clip, follow the guarded [background-removal hando
|
|
|
166
166
|
|
|
167
167
|
## Cloud render (Blender on a cloud GPU)
|
|
168
168
|
|
|
169
|
-
Use Cloud render when the user wants their own Blender scene, an animation or a frame range, rendered on a cloud GPU, for example because rendering locally is too slow. It renders a saved `.blend`; it does not generate or edit the scene.
|
|
169
|
+
Use Cloud render when the user wants their own Blender scene, an animation or a frame range, rendered on a cloud GPU, for example because rendering locally is too slow. It renders a saved `.blend`; it does not generate or edit the scene.
|
|
170
170
|
|
|
171
171
|
```bash
|
|
172
|
-
videodraft render prices # live price per GPU-minute
|
|
172
|
+
videodraft render prices # live price per GPU-minute for each GPU size on offer
|
|
173
173
|
videodraft render blender scene.blend --frames 1-240 # upload, render, wait, download media/renders/<job_id>.mp4
|
|
174
|
-
videodraft render stop # switch
|
|
174
|
+
videodraft render stop # switch every GPU off when your task is done
|
|
175
175
|
```
|
|
176
176
|
|
|
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.
|
|
178
|
-
-
|
|
179
|
-
-
|
|
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
|
+
- `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
|
+
- 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
|
+
- 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>`.
|
|
180
181
|
- 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`.
|
|
181
182
|
|
|
182
183
|
Flags, outputs and the MCP flow (`cloud_render_*` tools): [references/cloud-render.md](references/cloud-render.md), or `videodraft skills show render`.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# Cloud render: Blender scenes on a cloud GPU
|
|
2
2
|
|
|
3
|
-
Cloud render renders the user's own `.blend` scene on
|
|
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.
|
|
4
4
|
|
|
5
5
|
## Commands
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
videodraft render prices # live price per GPU-minute
|
|
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
11
|
videodraft render blender scene.blend --frames 1001-1500 --no-wait --json
|
|
@@ -14,8 +14,8 @@ videodraft render status JOB_ID --json
|
|
|
14
14
|
videodraft render list --limit 10
|
|
15
15
|
videodraft render cancel JOB_ID
|
|
16
16
|
videodraft render resume JOB_ID
|
|
17
|
-
videodraft render machine #
|
|
18
|
-
videodraft render stop # switch
|
|
17
|
+
videodraft render machine # every machine, what it costs per minute, billed time
|
|
18
|
+
videodraft render stop # switch every GPU off now
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
`render blender` flags:
|
|
@@ -25,6 +25,7 @@ videodraft render stop # switch the GPU off now
|
|
|
25
25
|
- `--chunk <n>`: frames per segment. Segments render in order, and finished ones are kept when a job pauses, fails or is cancelled.
|
|
26
26
|
- `--procs <n>`: Blender processes running in parallel on the GPU, 1-4.
|
|
27
27
|
- `--blender 5.2|4.5`: Blender version (default 5.2).
|
|
28
|
+
- `--gpu full|half|quarter`: GPU size (default `full`). See [Choosing a GPU size](#choosing-a-gpu-size).
|
|
28
29
|
- `--out <dir|file.mp4>`: where the clip goes (default `media/renders/<job_id>.mp4`).
|
|
29
30
|
- `--no-wait`: submit, print the job id and return. Resume with `videodraft render wait <job_id>`.
|
|
30
31
|
|
|
@@ -40,13 +41,25 @@ videodraft render stop # switch the GPU off now
|
|
|
40
41
|
|
|
41
42
|
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.
|
|
42
43
|
|
|
44
|
+
## Choosing a GPU size
|
|
45
|
+
|
|
46
|
+
`videodraft render prices` lists the sizes on offer and each one's rate:
|
|
47
|
+
|
|
48
|
+
| `--gpu` | GPU memory | Speed | Cost per frame |
|
|
49
|
+
|---|---|---|---|
|
|
50
|
+
| `full` (default) | 96 GB | fastest | highest |
|
|
51
|
+
| `half` (when offered) | 48 GB | slower | lower |
|
|
52
|
+
| `quarter` (when offered) | 24 GB | slowest | lowest, most of all on Eevee |
|
|
53
|
+
|
|
54
|
+
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
|
+
|
|
43
56
|
## Scenes must be self-contained
|
|
44
57
|
|
|
45
58
|
Pack external files before rendering: in Blender, File > External Data > Pack Resources, then save. Linked libraries, simulation caches and images outside the `.blend` are missing on the machine, and the machine has no internet. Blender runs in background mode with auto-run off, so scripts and drivers that need Python inside the file do not run.
|
|
46
59
|
|
|
47
60
|
## Cost and machine time
|
|
48
61
|
|
|
49
|
-
|
|
62
|
+
Each machine bills per second while it is on, at its GPU size's rate from `videodraft render prices` (MCP `cloud_render_prices`), with a one-minute minimum each time it starts. That includes start-up and the idle minute before it switches itself off, so a job's cost can still grow for a minute after it is done; `cost.final` says when it is settled. 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.
|
|
50
63
|
|
|
51
64
|
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` and continue with `render wait`.
|
|
52
65
|
|
|
@@ -54,6 +67,6 @@ Never submit the same render twice to recover from a lost wait or a timeout: the
|
|
|
54
67
|
|
|
55
68
|
1. `cloud_render_upload_scene` with the file's `sha256` and `size`. `exists: true` means skip to step 3.
|
|
56
69
|
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`.
|
|
57
|
-
3. `cloud_render_submit` with `scene_sha`, `start`, `end` and optional `fps`, `chunk`, `procs`, `blender_version`.
|
|
58
|
-
4. Poll `cloud_render_status` every 10 seconds or more. `clip_url` is the finished MP4; `segment_urls` lists finished pieces before then
|
|
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, while rendering, `estimated_total_credits` and `estimated_minutes_left`.
|
|
59
72
|
5. `cloud_render_stop` when the work is done. `cloud_render_list`, `cloud_render_cancel`, `cloud_render_resume` and `cloud_render_machine` match the CLI commands above.
|