@vivix-labs/media-tools 1.0.0-beta.15 → 1.0.0-beta.18
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 +16 -3
- package/dist/assets/fullscreen-exit-ADYOPBYH.svg +3 -0
- package/dist/client.bundle.js +216 -86
- package/dist/client.css +125 -17
- package/dist/server.js +62 -13
- package/dist/shared.d.ts +41 -6
- package/dist/shared.js +26 -3
- package/package.json +3 -3
- package/skills/SKILL.md +5 -0
package/README.md
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
# Media tools
|
|
2
2
|
|
|
3
|
-
One project-scoped plugin provides video Crop, Trim, independent Compare previews and
|
|
3
|
+
One project-scoped plugin provides video Crop, Trim, Adjust Color, Speed, independent Compare previews and
|
|
4
4
|
explicit file processing. It uses the existing Studio Host, project asset service and
|
|
5
5
|
creative-data store. Native FFmpeg and ffprobe must already be installed; the package
|
|
6
6
|
includes its short-lived supervision worker, UI, styles, fonts and icons.
|
|
7
7
|
|
|
8
|
+
Trim handle changes pause preview and seek to the changed boundary in either direction.
|
|
9
|
+
Moving the start earlier or the end later refreshes the displayed source frame even
|
|
10
|
+
when the old playhead remains within the expanded range. The end preview stays one
|
|
11
|
+
millisecond inside the exclusive out-point; source files remain unchanged until processing.
|
|
12
|
+
|
|
8
13
|
## Save, process and choose
|
|
9
14
|
|
|
10
15
|
Apply saves an immutable editing recipe and returns `SavedEdit`. It does not encode a
|
|
@@ -25,7 +30,7 @@ Declare the configured media instance as a same-page dependency and use the publ
|
|
|
25
30
|
|
|
26
31
|
| UI id | Public props | Caller responsibility |
|
|
27
32
|
| --------------------- | ------------------- | --------------------------------------------------------------------------------- |
|
|
28
|
-
| `media.video-editor` | `VideoEditorProps` | Fixed input, crop/trim mode, async `onApply`, close.
|
|
33
|
+
| `media.video-editor` | `VideoEditorProps` | Fixed input, crop/trim/color/speed mode, async `onApply`, close. |
|
|
29
34
|
| `media.video-export` | `VideoExportProps` | Sequence preview, ordered fixed inputs and source canvas, result download, close. |
|
|
30
35
|
| `media.video-compare` | `VideoCompareProps` | Two to four fixed slots, replacement, details return, optional selection actions. |
|
|
31
36
|
| `media.jobs` | `MediaJobsProps` | Open a standard result in the caller's file library. |
|
|
@@ -83,7 +88,15 @@ the UI does not retry automatically.
|
|
|
83
88
|
- Missing or unknown color primaries, transfer or matrix use a recorded BT.709 assumption.
|
|
84
89
|
Editor and Compare details show that colors may differ slightly after export. Explicit
|
|
85
90
|
non-BT.709 declarations and known HDR metadata, including Dolby Vision, are rejected.
|
|
86
|
-
Original files and hashes remain unchanged;
|
|
91
|
+
Original files and hashes remain unchanged; HDR conversion remains unsupported.
|
|
92
|
+
- Optional recipe `color` stores brightness (-0.5–0.5), contrast (0–2), and saturation
|
|
93
|
+
(0–2), applied by FFmpeg's `eq` filter. The browser color preview is approximate;
|
|
94
|
+
the processed candidate contains the final adjustment.
|
|
95
|
+
- Optional recipe `speed` supports 0.25–4×. Preview and output duration account for
|
|
96
|
+
speed; FFmpeg adjusts video timestamps and uses chained `atempo` filters to retain
|
|
97
|
+
audio pitch. Accelerated output is capped at 60 fps when necessary. Legacy recipes
|
|
98
|
+
without these fields retain their original colors and 1× speed. Each editor resets
|
|
99
|
+
only its own adjustment and preserves the others.
|
|
87
100
|
- No audio, or one mono/stereo AAC stream with a positive integer sample rate. Unsupported color, streams,
|
|
88
101
|
dimensions and codecs fail explicitly.
|
|
89
102
|
- Source display dimensions must be even, with long edge at most 3840 and short edge
|