videodraft 0.32.1 → 0.33.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 +18 -1
- package/dist/index.js +690 -18
- package/package.json +1 -1
- package/skills/index.json +7 -2
- package/skills/videodraft/SKILL.md +19 -0
- package/skills/videodraft/references/cloud-render.md +59 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "videodraft",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.33.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
|
@@ -10,6 +10,11 @@
|
|
|
10
10
|
"sha256": "12a542bc0d902ae15e520b8d18b553bc5ff5229e97df60d0f799ba0c5387d334",
|
|
11
11
|
"bytes": 5431
|
|
12
12
|
},
|
|
13
|
+
{
|
|
14
|
+
"path": "references/cloud-render.md",
|
|
15
|
+
"sha256": "780c041eb2b20cffc0dd092135c5c7c22304157c9609ac63c400705696329cd1",
|
|
16
|
+
"bytes": 5269
|
|
17
|
+
},
|
|
13
18
|
{
|
|
14
19
|
"path": "references/editor.md",
|
|
15
20
|
"sha256": "82f1f972191430a4f44f28384cd3688c1553c744fcc5316c2798a400bff9d9be",
|
|
@@ -32,8 +37,8 @@
|
|
|
32
37
|
},
|
|
33
38
|
{
|
|
34
39
|
"path": "SKILL.md",
|
|
35
|
-
"sha256": "
|
|
36
|
-
"bytes":
|
|
40
|
+
"sha256": "b71fe7208f2cd79f97e2e91d0d0e9ef3fd0a2a76bb7be25e63d9d11d2251ebad",
|
|
41
|
+
"bytes": 58526
|
|
37
42
|
}
|
|
38
43
|
]
|
|
39
44
|
}
|
|
@@ -10,6 +10,7 @@ VideoDraft is an AI video creation platform where asset generation is the priori
|
|
|
10
10
|
- **Asset generation**: standalone images, video clips, Seed Audio, voiceovers, music, sound effects, dialogue, voice-changed audio, dubbed media, upscales, and image descriptions. This is the fastest and most important lane. Treat these as complete deliverables when the user asks for assets.
|
|
11
11
|
- **Asset I/O**: upload local files, download outputs, auto-upload local references, and save generated media where the user can see it.
|
|
12
12
|
- **3D assets**: standalone Meshy 7.1 and Tripo H3.1 meshes, multi-view generation, complete artifact downloads, and Meshy humanoid rigging through MCP/CLI. Read [references/3d.md](references/3d.md), or `videodraft skills show 3d`. These assets have their own saved library and do not require an AI Studio session or web viewer.
|
|
13
|
+
- **Cloud render**: render the user's own Blender scenes on a cloud GPU with `videodraft render blender`. See [Cloud render](#cloud-render-blender-on-a-cloud-gpu) below and [references/cloud-render.md](references/cloud-render.md), or `videodraft skills show render`.
|
|
13
14
|
- **Native editing**: local `.vdproject` timelines, cuts, layouts, captions, effects, audio, and exports through the headless VideoDraft Editor. Inside VideoDraft ADE, this is the default production and export lane when `videodraft_editor` is available and no chosen app or existing external project takes precedence.
|
|
14
15
|
- **Hosted project production**: idea → script → storyboard → hosted production timeline → exported MP4. Use the early stages for scripts, storyboards, and generated assets when useful. Treat hosted production and export as a fallback when the native editor is unavailable and no external app is selected, or as an explicit destination when the user asks for an editable web project or hosted workflow.
|
|
15
16
|
|
|
@@ -163,6 +164,23 @@ Raw MCP tools are `remove_image_background` and `remove_video_background`; poll
|
|
|
163
164
|
|
|
164
165
|
For an existing native-editor clip, follow the guarded [background-removal handoff](references/editor.md#background-removal-handoff): prepare the original source, process it through the CLI/MCP, import the transparent result, then apply it while keeping the original linked sound. PNG works directly; VP9 WebM requires an alpha-preserving MOV conversion and verification before import. Check conversion availability before spending credits.
|
|
165
166
|
|
|
167
|
+
## Cloud render (Blender on a cloud GPU)
|
|
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. It needs a paid plan or a past credit purchase.
|
|
170
|
+
|
|
171
|
+
```bash
|
|
172
|
+
videodraft render prices # live price per GPU-minute
|
|
173
|
+
videodraft render blender scene.blend --frames 1-240 # upload, render, wait, download media/renders/<job_id>.mp4
|
|
174
|
+
videodraft render stop # switch the GPU off when your task is done
|
|
175
|
+
```
|
|
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
|
+
- Each user has one GPU machine. It bills per second while it is on, at the rate `videodraft render prices` returns, and switches itself off 2 minutes after its last job. State the rate and get a go-ahead before long renders. When your task is done, run `videodraft render stop` so idle time is not billed.
|
|
179
|
+
- Exit code 4 means credits ran out, before the job started or mid-render (the job pauses and keeps its finished segments). Tell the user; after they top up, run `videodraft render resume <job_id>`.
|
|
180
|
+
- 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
|
+
Flags, outputs and the MCP flow (`cloud_render_*` tools): [references/cloud-render.md](references/cloud-render.md), or `videodraft skills show render`.
|
|
183
|
+
|
|
166
184
|
## Prefer references when continuity matters
|
|
167
185
|
|
|
168
186
|
Pure text-to-image or text-to-video is fine for a generic one-off asset. When a specific character, product, location, style, composition, or brand identity must survive generation, use references instead of hoping the prompt recreates it.
|
|
@@ -338,3 +356,4 @@ A hosted project is one JSON blob (script, storyboard scenes, shot cards, visual
|
|
|
338
356
|
- [references/editor.md](references/editor.md) — native headless editor routing, project selection, import, timeline edits, verification, and export
|
|
339
357
|
- [references/models.md](references/models.md) — choosing image/video models, pricing patterns, voices and styles
|
|
340
358
|
- [references/examples.md](references/examples.md) — recipes: batch product videos from a CSV, talking-head from a script, changelog video in CI
|
|
359
|
+
- [references/cloud-render.md](references/cloud-render.md): Cloud render commands, flags, exit codes, cost and the MCP flow
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Cloud render: Blender scenes on a cloud GPU
|
|
2
|
+
|
|
3
|
+
Cloud render renders the user's own `.blend` scene on a cloud GPU: one machine per user (an RTX PRO 6000) that starts on demand, renders that user's jobs one after another, and switches itself off 2 minutes 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. It needs a paid plan or a past credit purchase; other accounts are refused with an upgrade message, which you relay instead of retrying.
|
|
4
|
+
|
|
5
|
+
## Commands
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
videodraft render prices # live price per GPU-minute, GPU and machine type
|
|
9
|
+
videodraft render blender scene.blend --frames 1-240
|
|
10
|
+
videodraft render blender scene.blend --frames 1-240 --fps 24 --blender 4.5 --out ./media/renders/ --json
|
|
11
|
+
videodraft render blender scene.blend --frames 1001-1500 --no-wait --json
|
|
12
|
+
videodraft render wait JOB_ID --out ./media/renders/
|
|
13
|
+
videodraft render status JOB_ID --json
|
|
14
|
+
videodraft render list --limit 10
|
|
15
|
+
videodraft render cancel JOB_ID
|
|
16
|
+
videodraft render resume JOB_ID
|
|
17
|
+
videodraft render machine # state, billed time, GPU time used today
|
|
18
|
+
videodraft render stop # switch the GPU off now
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
`render blender` flags:
|
|
22
|
+
|
|
23
|
+
- `--frames <first>-<last>` (required): the inclusive frame range, or one frame such as `--frames 42`.
|
|
24
|
+
- `--fps <n>`: frame rate of the output MP4 (default 30).
|
|
25
|
+
- `--chunk <n>`: frames per segment. Segments render in order, and finished ones are kept when a job pauses, fails or is cancelled.
|
|
26
|
+
- `--procs <n>`: Blender processes running in parallel on the GPU, 1-4.
|
|
27
|
+
- `--blender 5.2|4.5`: Blender version (default 5.2).
|
|
28
|
+
- `--out <dir|file.mp4>`: where the clip goes (default `media/renders/<job_id>.mp4`).
|
|
29
|
+
- `--no-wait`: submit, print the job id and return. Resume with `videodraft render wait <job_id>`.
|
|
30
|
+
|
|
31
|
+
## What the CLI does
|
|
32
|
+
|
|
33
|
+
1. Hashes the file (SHA-256). A scene with the same bytes is uploaded only once, so re-rendering other frames skips the upload.
|
|
34
|
+
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.
|
|
35
|
+
3. Submits the job. The machine starts on demand, which can take a few minutes while a GPU is found.
|
|
36
|
+
4. Polls every 10 seconds with no time limit (renders can take hours), printing each status change and the segments done. `--wait-timeout` and `--wait-interval` still apply when given.
|
|
37
|
+
5. Downloads the finished MP4.
|
|
38
|
+
|
|
39
|
+
`--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`.
|
|
40
|
+
|
|
41
|
+
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
|
+
## Scenes must be self-contained
|
|
44
|
+
|
|
45
|
+
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
|
+
|
|
47
|
+
## Cost and machine time
|
|
48
|
+
|
|
49
|
+
The GPU bills per second while it is on, at the rate `videodraft render prices` (MCP `cloud_render_prices`) returns, with a one-minute minimum each time it starts. That includes start-up and the idle minutes before it switches itself off. 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. A daily GPU-time limit applies; `videodraft render machine` shows the time used and the limit.
|
|
50
|
+
|
|
51
|
+
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
|
+
|
|
53
|
+
## Without the CLI (MCP)
|
|
54
|
+
|
|
55
|
+
1. `cloud_render_upload_scene` with the file's `sha256` and `size`. `exists: true` means skip to step 3.
|
|
56
|
+
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.
|
|
59
|
+
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.
|