@pixerate/editor 0.87.0 → 0.88.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/dist/video-editor/index.cjs +930 -503
- package/dist/video-editor/index.cjs.map +1 -1
- package/dist/video-editor/index.d.cts +158 -11
- package/dist/video-editor/index.d.ts +158 -11
- package/dist/video-editor/index.js +841 -414
- package/dist/video-editor/index.js.map +1 -1
- package/package.json +1 -1
- package/skills/pixerate-video-editor/SKILL.md +11 -2
package/package.json
CHANGED
|
@@ -116,7 +116,10 @@ For errors, namespaced tool names and undo conventions, see `pixerate-agent-tool
|
|
|
116
116
|
- **Grade in two passes: correct, then look.** First balance each shot so a scene matches
|
|
117
117
|
(`update_video_clip` `grade`: fix exposure and white balance against the best shot, then
|
|
118
118
|
`copy_video_grade` from it to the rest of the scene), then add a look with
|
|
119
|
-
`apply_video_grade_preset` at a modest `amount` (0.3-0.6)
|
|
119
|
+
`apply_video_grade_preset` at a modest `amount` (0.3-0.6), or a `.cube` look the user has with
|
|
120
|
+
`set_video_lut` (often at `strength` 0.5-0.8: film emulation and creative LUTs are strong at
|
|
121
|
+
full strength). A LUT runs after the grade's settings, so correct exposure and white balance
|
|
122
|
+
first; LUTs built for log footage expect a flat picture and look crushed on normal video. Check with `render_video_frame` at a
|
|
120
123
|
few times side by side. Skin tones are the reference: avoid strong `hue` or `tint` on people.
|
|
121
124
|
- **Measure, don't eyeball.** Where the host shows a preview, `get_video_scopes` reads the real
|
|
122
125
|
picture: keep `clipped.highlights` under about 1% and `clipped.shadows` under about 2% unless
|
|
@@ -187,7 +190,9 @@ For errors, namespaced tool names and undo conventions, see `pixerate-agent-tool
|
|
|
187
190
|
| `extract_video_range` | Remove `from`..`to` ms and close it up: as lift, then later material moves earlier on those and every sync-locked track. Refused (naming the clip) when a sync-locked track outside `tracks` has material there. Use to cut a section out of a finished sequence. |
|
|
188
191
|
| `delete_video_clips` | Remove `clips`; `ripple: true` pulls later clips up to close the gaps (a ripple delete). |
|
|
189
192
|
| `update_video_clip` | Change properties via `set`: opacity, transform (`x`, `y` px from centre, `scale`, `rotation`), `fit` (contain default for media, cover, fill, none), `animateIn` / `animateOut` (`{ effect: fade, rise, drop, slide-left, slide-right, zoom or pop, duration ms default 500 }`), `grade` (`exposure` stops -3-3, `contrast`, `saturation`, `temperature`, `tint` -1-1, `hue` degrees; replaces the whole grade), `blend` (normal, multiply, screen, overlay, darken, lighten, color-dodge, color-burn, hard-light, soft-light, difference, exclusion, add), `fadeIn` / `fadeOut`, name; media `volume` (0-4), `muted`, `fadeInCurve` / `fadeOutCurve` (the sound's fade shape: linear, equal-power, s-curve, exponential, logarithmic), `speed` (0.05-20, keeps the source range so the length changes), `asset`; title text and style; colour. `remove` resets to defaults. Not for timing. |
|
|
190
|
-
| `
|
|
193
|
+
| `set_video_lut` | Give `clips` (on video tracks) a 3D LUT: `src` a `.cube` file the host can load and ffmpeg can read, `strength` 0-1 (default 1). Reads the file first and fails without changing anything if it cannot be loaded or is not a 3D `.cube`. Keeps the clips' other grade settings; the LUT runs after them. One undo step; returns the LUT's `title` and `size` and each clip's grade. Copies with `copy_video_grade`. |
|
|
194
|
+
| `remove_video_lut` | Take the LUT off `clips`' grades, keeping their other settings (one undo step). Fails if none has one. |
|
|
195
|
+
| `apply_video_grade_preset` | Give `clips` (on video tracks) a named look at an `amount` 0-1 (default 1), replacing their grade settings (a LUT stays): warm, cool, punchy, faded, black-and-white, bleach-bypass, day-for-night. One undo step; returns each clip's grade to fine-tune with `update_video_clip`. |
|
|
191
196
|
| `copy_video_grade` | Match shots: give the `to` clips the grade of the `from` clip (one undo step; a source with no grade clears theirs). Returns the grade copied. |
|
|
192
197
|
| `set_video_speed_ramp` | Play a video or audio `clip` through `segments` of speed from its first frame: `[{ duration ms, speed, toSpeed? }]`; `toSpeed` glides evenly to a new speed over the stretch, speed 0 is a freeze. The clip's length becomes the segments' total; `ripple` (default true) moves later material. Returns the clip with its `timeRemap` and source range. |
|
|
193
198
|
| `add_video_freeze_frame` | Hold the frame a clip shows at timeline time `at` for `duration` ms, then play on; the clip gets longer and (with `ripple`, default) later material moves along. Works with or without a ramp. |
|
|
@@ -241,6 +246,10 @@ For errors, namespaced tool names and undo conventions, see `pixerate-agent-tool
|
|
|
241
246
|
wants that track changed.
|
|
242
247
|
- **Read-only**: when `get_video_project` says the project cannot be edited, write tools are
|
|
243
248
|
hidden; read, render and export still work. Tell the user rather than working around it.
|
|
249
|
+
- **LUTs are files.** `set_video_lut` needs a `src` both the preview (a URL it can fetch) and
|
|
250
|
+
ffmpeg (a local path; the host maps it with `resolveLut`) can read; the export notes a URL it
|
|
251
|
+
cannot. SVG frames from `render_video_frame` draw a LUT approximately (curves and a colour
|
|
252
|
+
matrix), so judge a LUT's exact colours with `get_video_scopes` or the preview.
|
|
244
253
|
- **Scopes need real pixels.** `get_video_scopes` reads what the host's preview draws, so it
|
|
245
254
|
fails when nothing is showing the project or the media cannot load in time, and a canvas
|
|
246
255
|
with media from another origin served without CORS cannot be read. Video drawn as a
|