@amaster.ai/pi-video-gen 0.1.18 → 0.1.20
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 +19 -18
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +46 -18
- package/dist/index.js.map +1 -1
- package/dist/jobs/store.d.ts +12 -0
- package/dist/jobs/store.d.ts.map +1 -1
- package/dist/jobs/store.js +23 -2
- package/dist/jobs/store.js.map +1 -1
- package/dist/remotion.d.ts +51 -0
- package/dist/remotion.d.ts.map +1 -0
- package/dist/remotion.js +547 -0
- package/dist/remotion.js.map +1 -0
- package/dist/render.d.ts +24 -3
- package/dist/render.d.ts.map +1 -1
- package/dist/render.js +488 -23
- package/dist/render.js.map +1 -1
- package/dist/text-layer.d.ts.map +1 -1
- package/dist/text-layer.js +43 -10
- package/dist/text-layer.js.map +1 -1
- package/dist/timeline-render.d.ts +2 -0
- package/dist/timeline-render.d.ts.map +1 -1
- package/dist/timeline-render.js +105 -53
- package/dist/timeline-render.js.map +1 -1
- package/dist/timeline.d.ts.map +1 -1
- package/dist/timeline.js +3 -0
- package/dist/timeline.js.map +1 -1
- package/dist/tts/edge-tts.d.ts +5 -0
- package/dist/tts/edge-tts.d.ts.map +1 -1
- package/dist/tts/edge-tts.js +28 -3
- package/dist/tts/edge-tts.js.map +1 -1
- package/package.json +7 -6
- package/preview.png +0 -0
- package/skills/video-gen/SKILL.md +30 -30
- package/skills/video-gen/references/remotion-handoff.md +21 -0
- package/skills/video-gen/references/video-render-workflow.md +23 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Render script and recovery
|
|
2
|
+
|
|
3
|
+
Create `<outputDir>/<jobId>/render-input.json`. The job ID and each shot ID use letters, digits, dash or underscore. The parent directory is the immutable job. Use `video_generate` directly when batch automation and recovery are unnecessary.
|
|
4
|
+
|
|
5
|
+
```json
|
|
6
|
+
{
|
|
7
|
+
"title": "Mixed product film",
|
|
8
|
+
"style": "cinematic product demo",
|
|
9
|
+
"shots": [
|
|
10
|
+
{"id":"opening","prompt":{"visuals":"static medium shot","action":"presenter lifts the product"},"firstFramePath":"/absolute/path/opening.png","durationSec":5},
|
|
11
|
+
{"id":"demo","videoPath":"/absolute/path/demo.mp4"}
|
|
12
|
+
],
|
|
13
|
+
"assembly": {"type":"remotion","projectDir":"/absolute/path/project","compositionId":"Promo"}
|
|
14
|
+
}
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Each shot has exactly one source. `videoPath` uses a local video and has no prompt, frame, reference asset or duration fields. A generated shot requires `firstFramePath` or a nonempty `referenceAssets` array, plus a structured `prompt` with `visuals` and `action`. `lastFramePath` requires `firstFramePath`. When using provider-managed reference assets without a first frame, also supply film-level `style` and shot-level `scene`; those prompt fields do not replace the visual input. The plugin snapshots local inputs, records remote task handles immediately and does not submit paid work again when resuming a finished shot.
|
|
18
|
+
|
|
19
|
+
`assembly` is optional. Without it, clips are concatenated in shot order. For a local FFmpeg timeline, use `{"type":"timeline","timeline":{"segments":[{"id":"a","shotId":"opening","durationSec":5},{"id":"b","shotId":"demo","durationSec":5}]}}`; timeline segments may also carry supported overlay, narration and transition fields. Every segment must refer to an existing shot ID and must not supply a separate `video` or `image`. For Remotion, pass `projectDir`, `compositionId`, optional `entryPoint`, `inputProps`, `assets` and `browserExecutable`. The plugin supplies a `videoGenAssets` map keyed by shot ID and merges extra assets with distinct IDs.
|
|
20
|
+
|
|
21
|
+
Before the first paid submit, the script checks all shot references, existing media, model capabilities and assembly environment. Remotion additionally bundles the project with placeholder video, selects the composition and renders frame zero. This does not prove that the eventual generated codec or duration is compatible; downloaded clips are checked again. If assembly fails after generation, rerun the same script after fixing the environment. The saved shot files and handles remain; changing frozen project source, original public resources, existing assets or the script requires a new job.
|
|
22
|
+
|
|
23
|
+
Approval is scoped to the generated shots, provider/account, model and duration. Reuse an existing approval only for the same scope. On ambiguous remote submission, inspect the provider console, then use `/video-gen recover <jobId> <shotId> reset` only when the task is confirmed absent or `adopt <taskId>` when found. Cancellation stops local work and may not cancel provider billing. A legacy completed manifest without a saved final SHA-256 cannot verify the old film; compose its saved clips in a new job directory.
|