fablecut 1.16.0 → 1.18.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/CLAUDE.md +295 -6
- package/README.md +45 -10
- package/analyze.js +3 -96
- package/app.js +1254 -25
- package/beats.js +458 -0
- package/captions.js +227 -0
- package/delivery.js +22 -2
- package/encoding-profiles.json +26 -0
- package/export-jobs.js +14 -8
- package/highlights.js +296 -0
- package/index.html +17 -0
- package/mcp-server.js +639 -7
- package/package.json +1 -1
- package/project-ops.js +4 -3
- package/reframe.js +297 -0
- package/server.js +60 -0
- package/silence.js +97 -0
- package/style.css +170 -4
- package/transcribe-worker.js +39 -0
- package/transcribe.js +294 -0
- package/transcripts.js +78 -0
package/highlights.js
ADDED
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
/* FableCut highlights — the best moments of long footage, cut into a short
|
|
2
|
+
edit. Zero dependencies; loaded by the editor as a plain script (global
|
|
3
|
+
`FableCutHighlights`) and required by the MCP server, so the editor,
|
|
4
|
+
fablecut_highlights and Studio pick the same moments.
|
|
5
|
+
|
|
6
|
+
picture: small RGB frames sampled through each source (PIC_FPS a second) →
|
|
7
|
+
how much moves, how sharp it is, how dark. sound: the source's mono sound →
|
|
8
|
+
its loudness every AUD_STEP seconds. shots: sudden picture changes, the cuts
|
|
9
|
+
already in the footage. pick: score every half second (movement, loudness
|
|
10
|
+
against its surroundings, a clear picture), then take the best moments of
|
|
11
|
+
`shot` seconds, never across a cut, apart from each other, until the edit is
|
|
12
|
+
`duration` long; in story order, their ends nudged to quiet points. ops: the
|
|
13
|
+
patch that lays them back to back in a new sequence. */
|
|
14
|
+
(function (root, factory) {
|
|
15
|
+
const api = factory();
|
|
16
|
+
if (typeof module === "object" && module.exports) module.exports = api;
|
|
17
|
+
else root.FableCutHighlights = api;
|
|
18
|
+
})(typeof self !== "undefined" ? self : this, function () {
|
|
19
|
+
"use strict";
|
|
20
|
+
|
|
21
|
+
const PIC_FPS = 2; // frames looked at per second of footage (one score bin each)
|
|
22
|
+
const BIN = 1 / PIC_FPS; // seconds
|
|
23
|
+
const SAMPLE_W = 64; // their width in px
|
|
24
|
+
const AUD_STEP = 0.1; // seconds per loudness reading
|
|
25
|
+
const DEFAULTS = { duration: 30, minShot: 1.5, maxShot: 4 };
|
|
26
|
+
const LIMITS = { duration: [5, 600], shot: [0.5, 20] };
|
|
27
|
+
const MAX_SOURCE_SECS = 60 * 60; // footage looked at per call
|
|
28
|
+
const clamp = (v, a, b) => (v < a ? a : v > b ? b : v);
|
|
29
|
+
const round3 = (v) => Math.round(v * 1000) / 1000;
|
|
30
|
+
const median = (a) => { if (!a.length) return 0; const s = [...a].sort((x, y) => x - y); return s[s.length >> 1]; };
|
|
31
|
+
const quantile = (a, q) => { if (!a.length) return 0; const s = [...a].sort((x, y) => x - y); return s[Math.min(s.length - 1, Math.floor(q * s.length))]; };
|
|
32
|
+
|
|
33
|
+
/** Checked options: duration (seconds of edit), shot (seconds per moment; default from duration). */
|
|
34
|
+
function options(o = {}) {
|
|
35
|
+
const duration = o.duration == null ? DEFAULTS.duration : +o.duration;
|
|
36
|
+
if (!(duration >= LIMITS.duration[0] && duration <= LIMITS.duration[1]))
|
|
37
|
+
throw new Error(`duration must be ${LIMITS.duration[0]}…${LIMITS.duration[1]} seconds`);
|
|
38
|
+
let shot = o.shot == null ? clamp(duration / 8, DEFAULTS.minShot, DEFAULTS.maxShot) : +o.shot;
|
|
39
|
+
if (!(shot >= LIMITS.shot[0] && shot <= LIMITS.shot[1])) throw new Error(`shot must be ${LIMITS.shot[0]}…${LIMITS.shot[1]} seconds`);
|
|
40
|
+
shot = Math.min(shot, duration);
|
|
41
|
+
return { duration, shot };
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* ── reading the footage ── */
|
|
45
|
+
|
|
46
|
+
/** The picture, a frame at a time: push(rgb) for each frame (w×h×3 bytes, PIC_FPS a
|
|
47
|
+
* second); `motion`, `sharp` and `dark` grow by one value per frame (0…255 scales). */
|
|
48
|
+
function picture(w, h) {
|
|
49
|
+
const n = w * h, motion = [], sharp = [], dark = [];
|
|
50
|
+
let prev = null;
|
|
51
|
+
return {
|
|
52
|
+
motion, sharp, dark,
|
|
53
|
+
push(rgb) {
|
|
54
|
+
const y = new Float32Array(n);
|
|
55
|
+
let sum = 0;
|
|
56
|
+
for (let i = 0, j = 0; i < n; i++, j += 3) { y[i] = 0.2126 * rgb[j] + 0.7152 * rgb[j + 1] + 0.0722 * rgb[j + 2]; sum += y[i]; }
|
|
57
|
+
let g = 0, d = 0;
|
|
58
|
+
for (let r = 0; r < h - 1; r++) for (let c = 0; c < w - 1; c++) {
|
|
59
|
+
const i = r * w + c;
|
|
60
|
+
g += Math.abs(y[i + 1] - y[i]) + Math.abs(y[i + w] - y[i]);
|
|
61
|
+
}
|
|
62
|
+
if (prev) for (let i = 0; i < n; i++) d += Math.abs(y[i] - prev[i]);
|
|
63
|
+
motion.push(prev ? d / n : 0);
|
|
64
|
+
sharp.push(g / ((w - 1) * (h - 1) * 2));
|
|
65
|
+
dark.push(sum / n);
|
|
66
|
+
prev = y;
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/** The sound, a chunk at a time: push(mono Float32Array) at `rate`; `db` grows by one
|
|
72
|
+
* RMS reading (dBFS, -90 floor) per AUD_STEP. */
|
|
73
|
+
function sound(rate) {
|
|
74
|
+
const step = Math.max(1, Math.round(rate * AUD_STEP)), db = [];
|
|
75
|
+
let acc = 0, k = 0;
|
|
76
|
+
return {
|
|
77
|
+
db,
|
|
78
|
+
push(x) {
|
|
79
|
+
for (let i = 0; i < x.length; i++) {
|
|
80
|
+
acc += x[i] * x[i];
|
|
81
|
+
if (++k === step) { db.push(Math.max(-90, 10 * Math.log10(acc / step + 1e-12))); acc = 0; k = 0; }
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/** Cuts already in the footage: bins (seconds) where the picture changes all at once,
|
|
88
|
+
* far beyond the movement around them. */
|
|
89
|
+
function shots(motion) {
|
|
90
|
+
const cuts = [];
|
|
91
|
+
for (let i = 1; i < motion.length; i++) {
|
|
92
|
+
const around = motion.slice(Math.max(1, i - 10), i).concat(motion.slice(i + 1, i + 11));
|
|
93
|
+
if (motion[i] > Math.max(28, 4 * median(around) + 6)) cuts.push(round3(i * BIN));
|
|
94
|
+
}
|
|
95
|
+
return cuts;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/* ── scoring and picking ── */
|
|
99
|
+
|
|
100
|
+
/** Per-bin scores (0…1) for each source {pic: picture(), aud: sound() | null}; normalised
|
|
101
|
+
* across all of them so a busy source outranks a quiet one. Also each source's cuts. */
|
|
102
|
+
function score(sources) {
|
|
103
|
+
const cutsOf = sources.map((s) => shots(s.pic.motion));
|
|
104
|
+
// movement without the cut spikes, which are edits, not action
|
|
105
|
+
const moves = sources.map((s, k) => {
|
|
106
|
+
const at = new Set(cutsOf[k].map((t) => Math.round(t / BIN)));
|
|
107
|
+
return s.pic.motion.map((m, i) => (at.has(i) ? (s.pic.motion[i - 1] || 0) : m));
|
|
108
|
+
});
|
|
109
|
+
const mHi = Math.max(1, quantile(moves.flat(), 0.9));
|
|
110
|
+
const sHi = Math.max(1, quantile(sources.flatMap((s) => s.pic.sharp), 0.75));
|
|
111
|
+
return sources.map((s, k) => {
|
|
112
|
+
const n = s.pic.motion.length, db = s.aud && s.aud.db.length ? s.aud.db : null;
|
|
113
|
+
const loudAt = (i) => {
|
|
114
|
+
if (!db) return null;
|
|
115
|
+
const a = Math.floor((i * BIN) / AUD_STEP), b = Math.max(a + 1, Math.floor(((i + 1) * BIN) / AUD_STEP));
|
|
116
|
+
let v = -90;
|
|
117
|
+
for (let j = a; j < b && j < db.length; j++) v = Math.max(v, db[j]);
|
|
118
|
+
return v;
|
|
119
|
+
};
|
|
120
|
+
const loud = Array.from({ length: n }, (_, i) => loudAt(i));
|
|
121
|
+
const out = new Float32Array(n);
|
|
122
|
+
for (let i = 0; i < n; i++) {
|
|
123
|
+
const m = clamp(moves[k][i] / mHi, 0, 1);
|
|
124
|
+
const v = clamp(s.pic.sharp[i] / sHi, 0, 1);
|
|
125
|
+
const blank = s.pic.dark[i] < 16 || s.pic.sharp[i] < 0.6; // black, or a flat colour
|
|
126
|
+
let x;
|
|
127
|
+
if (loud[i] != null) {
|
|
128
|
+
// louder than the 20 s around it: a cheer, a laugh, a hit
|
|
129
|
+
const ctx = median(loud.slice(Math.max(0, i - 20), i + 21).filter((d) => d != null));
|
|
130
|
+
const lift = clamp((loud[i] - ctx) / 12, 0, 1), level = clamp((loud[i] + 50) / 40, 0, 1);
|
|
131
|
+
x = 0.45 * m + 0.25 * lift + 0.15 * level + 0.15 * v;
|
|
132
|
+
} else x = 0.75 * m + 0.25 * v;
|
|
133
|
+
out[i] = blank ? x * 0.2 : x;
|
|
134
|
+
}
|
|
135
|
+
return { scores: out, cuts: cutsOf[k] };
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/** The best moments: sources [{id, len, pic, aud, speed?}] (len: seconds of footage looked at,
|
|
140
|
+
* times from its start; speed: how fast the clip plays it, default 1) → [{source, from, to, len,
|
|
141
|
+
* score, why}] in story order: from / to in seconds of footage, len in seconds of edit, `duration`
|
|
142
|
+
* seconds of edit in all (the last ones trimmed to fit). */
|
|
143
|
+
function pick(sources, opts = {}) {
|
|
144
|
+
const { duration, shot } = options(opts);
|
|
145
|
+
const scored = score(sources);
|
|
146
|
+
const gap = Math.max(1, shot * 0.5);
|
|
147
|
+
const cands = [];
|
|
148
|
+
sources.forEach((s, k) => {
|
|
149
|
+
const sc = scored[k].scores, n = sc.length, sp = speedOfSource(s);
|
|
150
|
+
const len = Math.min(s.len, n * BIN);
|
|
151
|
+
const bounds = [0, ...scored[k].cuts, len];
|
|
152
|
+
for (let b = 0; b + 1 < bounds.length; b++) {
|
|
153
|
+
const a0 = bounds[b], a1 = bounds[b + 1];
|
|
154
|
+
const L = Math.min(shot * sp, a1 - a0); // `shot` seconds of edit, in seconds of footage
|
|
155
|
+
if (L / sp < Math.min(1, shot)) continue; // a flash between two cuts
|
|
156
|
+
for (let t = a0; t + L <= a1 + 1e-6; t += BIN) {
|
|
157
|
+
const i0 = Math.round(t / BIN), i1 = Math.max(i0 + 1, Math.round((t + L) / BIN));
|
|
158
|
+
let sum = 0;
|
|
159
|
+
for (let i = i0; i < i1 && i < n; i++) sum += sc[i];
|
|
160
|
+
cands.push({ k, shotNo: b, from: t, to: t + L, score: sum / (i1 - i0), lo: a0, hi: a1 });
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
const chosen = [], perShot = new Map();
|
|
165
|
+
let total = 0;
|
|
166
|
+
while (total < duration - 1e-6) {
|
|
167
|
+
let best = null, bestV = -1;
|
|
168
|
+
for (const c of cands) {
|
|
169
|
+
if (c.used) continue;
|
|
170
|
+
if (chosen.some((p) => p.k === c.k && c.from < p.to + gap && c.to > p.from - gap)) { c.used = true; continue; }
|
|
171
|
+
const v = c.score * Math.pow(0.8, perShot.get(c.k + ":" + c.shotNo) || 0); // variety: a shot already used counts less
|
|
172
|
+
if (v > bestV) { bestV = v; best = c; }
|
|
173
|
+
}
|
|
174
|
+
if (!best) break;
|
|
175
|
+
best.used = true;
|
|
176
|
+
chosen.push(best);
|
|
177
|
+
perShot.set(best.k + ":" + best.shotNo, (perShot.get(best.k + ":" + best.shotNo) || 0) + 1);
|
|
178
|
+
total += (best.to - best.from) / speedOfSource(sources[best.k]);
|
|
179
|
+
}
|
|
180
|
+
chosen.sort((a, b) => a.k - b.k || a.from - b.from);
|
|
181
|
+
// ends on a quiet moment nearby (not through a word or a hit), never past a cut
|
|
182
|
+
for (const c of chosen) {
|
|
183
|
+
const db = sources[c.k].aud && sources[c.k].aud.db;
|
|
184
|
+
if (!db || !db.length) continue;
|
|
185
|
+
const quiet = (lo, hi, t) => {
|
|
186
|
+
let bestT = t, bestD = Infinity;
|
|
187
|
+
for (let u = lo; u <= hi + 1e-6; u += AUD_STEP) {
|
|
188
|
+
const d = db[Math.round(u / AUD_STEP)];
|
|
189
|
+
if (d != null && d < bestD - 1) { bestD = d; bestT = u; }
|
|
190
|
+
}
|
|
191
|
+
return bestT;
|
|
192
|
+
};
|
|
193
|
+
// the start moves either way and the moment keeps its length; the end only moves later, so the
|
|
194
|
+
// edit never comes out short (the trim below takes any extra off the last moments)
|
|
195
|
+
const L = c.to - c.from;
|
|
196
|
+
c.from = quiet(Math.max(c.lo, c.from - 0.3), Math.max(c.lo, Math.min(c.from + 0.3, c.hi - L)), c.from);
|
|
197
|
+
c.to = c.from + L;
|
|
198
|
+
c.to = quiet(c.to, Math.min(c.hi, c.to + 0.3), c.to);
|
|
199
|
+
}
|
|
200
|
+
// exactly `duration`: trim the moments from the end
|
|
201
|
+
// (in seconds of edit: a clip at 2× spends two seconds of footage on each)
|
|
202
|
+
let over = chosen.reduce((n, c) => n + (c.to - c.from) / speedOfSource(sources[c.k]), 0) - duration;
|
|
203
|
+
for (let i = chosen.length - 1; i >= 0 && over > 1e-3; i--) {
|
|
204
|
+
const c = chosen[i], sp = speedOfSource(sources[c.k]), cut = Math.min(over, (c.to - c.from) / sp - 0.5);
|
|
205
|
+
if (cut > 0) { c.to -= cut * sp; over -= cut; }
|
|
206
|
+
}
|
|
207
|
+
return chosen.map((c) => {
|
|
208
|
+
const sc = scored[c.k].scores, i0 = Math.round(c.from / BIN), i1 = Math.max(i0 + 1, Math.round(c.to / BIN));
|
|
209
|
+
const moves = sources[c.k].pic.motion.slice(i0, i1);
|
|
210
|
+
const busy = moves.length && median(moves) > quantile(sources[c.k].pic.motion, 0.6);
|
|
211
|
+
// loud: well above the footage's usual level somewhere in the moment
|
|
212
|
+
const db = sources[c.k].aud && sources[c.k].aud.db;
|
|
213
|
+
const peak = db ? Math.max(-90, ...db.slice(Math.floor(c.from / AUD_STEP), Math.ceil(c.to / AUD_STEP))) : -90;
|
|
214
|
+
const loud = !!(db && db.length && peak > median(db) + 8);
|
|
215
|
+
return { source: sources[c.k].id, from: round3(c.from), to: round3(c.to), len: round3((c.to - c.from) / speedOfSource(sources[c.k])),
|
|
216
|
+
score: Math.round(c.score * 100) / 100,
|
|
217
|
+
why: busy && loud ? "movement and sound" : busy ? "movement" : loud ? "sound" : "a clear picture", bins: sc.slice(i0, i1).length };
|
|
218
|
+
}).map(({ bins, ...p }) => p);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/* ── the edit ── */
|
|
222
|
+
|
|
223
|
+
/** Clips this tool reads: video clips with a picture, at a steady speed. `ids` limits them. */
|
|
224
|
+
function sourcesOf(doc, ids = null) {
|
|
225
|
+
const take = [], skip = [];
|
|
226
|
+
const off = new Set(Array.isArray(doc.disabledTracks) ? doc.disabledTracks : []);
|
|
227
|
+
for (const c of doc.clips || []) {
|
|
228
|
+
if (ids && !ids.includes(c.id)) continue;
|
|
229
|
+
const why = c.kind !== "video" ? (ids ? `${/^[aeiou]/.test(c.kind) ? "an" : "a"} ${c.kind} clip` : null)
|
|
230
|
+
: c.disabled || off.has(c.track) ? "disabled"
|
|
231
|
+
: Array.isArray(c.keyframes?.speed) && c.keyframes.speed.length ? "a speed ramp"
|
|
232
|
+
: null;
|
|
233
|
+
if (c.kind !== "video" && !ids) continue;
|
|
234
|
+
if (why) skip.push({ id: c.id, why }); else take.push(c);
|
|
235
|
+
}
|
|
236
|
+
return { take, skip };
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
const speedOf = (c) => clamp(+(c.props && c.props.speed) || 1, 0.1, 8);
|
|
240
|
+
function speedOfSource(s) { return clamp(+s.speed || 1, 0.1, 8); }
|
|
241
|
+
|
|
242
|
+
/** The patch: a new sequence (`seq`: {name, width?, height?, fps?}) holding each moment as
|
|
243
|
+
* a clip back to back on V1, with the sound clips linked to its source alongside.
|
|
244
|
+
* `picks` from pick(), whose `source` is a clip id in `doc` or "media:<id>" for a whole file
|
|
245
|
+
* (its `from` / `to` in seconds from the start of that clip's window). */
|
|
246
|
+
function ops(doc, picks, seq) {
|
|
247
|
+
const out = [{ op: "addSequence", from: "empty", name: seq.name, ...(seq.width ? { width: seq.width, height: seq.height } : {}),
|
|
248
|
+
...(seq.fps ? { fps: seq.fps } : {}), open: true }];
|
|
249
|
+
const clips = doc.clips || [];
|
|
250
|
+
// ids no clip in the project has, in any sequence or composition (a second run gets hl1_2, …)
|
|
251
|
+
const used = new Set([...clips, ...(doc.sequences || []).flatMap((q) => q.clips || []), ...(doc.comps || []).flatMap((q) => q.clips || [])].map((c) => c.id));
|
|
252
|
+
let run = 1;
|
|
253
|
+
const tag = () => (run === 1 ? "" : `_${run}`);
|
|
254
|
+
while (picks.some((_, n) => [...used].some((u) => u === `hl${n + 1}${tag()}` || u.startsWith(`hl${n + 1}${tag()}a`)))) run++;
|
|
255
|
+
let at = 0;
|
|
256
|
+
picks.forEach((p, n) => {
|
|
257
|
+
const id = `hl${n + 1}${tag()}`;
|
|
258
|
+
let c = clips.find((x) => x.id === p.source);
|
|
259
|
+
if (!c && String(p.source).startsWith("media:")) {
|
|
260
|
+
const m = (doc.media || []).find((x) => x.id === p.source.slice(6));
|
|
261
|
+
if (m) c = { id, mediaId: m.id, kind: "video", track: "V1", start: 0, in: 0, duration: m.duration, props: {} };
|
|
262
|
+
}
|
|
263
|
+
if (!c) return;
|
|
264
|
+
const sp = speedOf(c), len = (p.to - p.from) / sp;
|
|
265
|
+
const props = { ...(c.props || {}) };
|
|
266
|
+
delete props.reframe; // the new canvas gets framed anew
|
|
267
|
+
const partners = clips.filter((x) => x !== c && x.id !== c.id && x.kind === "audio" &&
|
|
268
|
+
((c.linkGroup && x.linkGroup === c.linkGroup) || (c.linkedId && c.linkedId === x.id) || x.linkedId === c.id));
|
|
269
|
+
const group = partners.length ? `hl_${n + 1}` : null;
|
|
270
|
+
out.push({ op: "addClip", clip: { id, mediaId: c.mediaId, kind: "video", track: "V1", start: round3(at),
|
|
271
|
+
in: round3((c.in || 0) + p.from), duration: round3(len), props, ...(group ? { linkGroup: group } : {}) } });
|
|
272
|
+
partners.forEach((x, j) => {
|
|
273
|
+
// the same moment of the sound: through where the two sit on the timeline
|
|
274
|
+
const t0 = c.start + p.from / sp, xs = speedOf(x);
|
|
275
|
+
const xin = (x.in || 0) + (t0 - x.start) * xs;
|
|
276
|
+
if (xin < (x.in || 0) - 1e-3 || t0 + len > x.start + x.duration + 1e-3) return;
|
|
277
|
+
out.push({ op: "addClip", clip: { id: `${id}a${j + 1}`, mediaId: x.mediaId, kind: "audio", track: x.track, start: round3(at),
|
|
278
|
+
in: round3(xin), duration: round3(len), props: { ...(x.props || {}) }, linkGroup: group } });
|
|
279
|
+
});
|
|
280
|
+
at += len;
|
|
281
|
+
});
|
|
282
|
+
return out;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
/** The reply: what was picked, and why. */
|
|
286
|
+
function describe(picks, { duration, seqName, made = false } = {}) {
|
|
287
|
+
const clock = (t) => `${Math.floor(t / 60)}:${(t % 60).toFixed(1).padStart(4, "0")}`;
|
|
288
|
+
const lenOf = (p) => (p.len != null ? p.len : p.to - p.from);
|
|
289
|
+
const total = picks.reduce((n, p) => n + lenOf(p), 0);
|
|
290
|
+
const lines = picks.map((p, i) => ` ${i + 1}. ${p.source} ${clock(p.from)}–${clock(p.to)} (${lenOf(p).toFixed(1)} s, ${p.why}, score ${p.score})`);
|
|
291
|
+
return (made ? `New sequence "${seqName}", opened: ` : "") + `${picks.length} moment${picks.length === 1 ? "" : "s"}, ${total.toFixed(1)} s` +
|
|
292
|
+
(duration && total < duration - 0.5 ? ` (asked for ${duration} s: the footage has no more distinct moments)` : "") + ":\n" + lines.join("\n");
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
return { PIC_FPS, BIN, SAMPLE_W, AUD_STEP, DEFAULTS, LIMITS, MAX_SOURCE_SECS, options, picture, sound, shots, score, pick, sourcesOf, ops, describe };
|
|
296
|
+
});
|
package/index.html
CHANGED
|
@@ -196,12 +196,14 @@
|
|
|
196
196
|
<button type="button" data-side="inspector" class="on" title="Selected clip: transform, effects & audio">Inspector</button>
|
|
197
197
|
<button type="button" data-side="mixer" title="Track and master faders, pan, mute / solo, meters">Mixer</button>
|
|
198
198
|
<button type="button" data-side="color" title="Grade the selected clip: wheels, exposure, white balance, tone">Color</button>
|
|
199
|
+
<button type="button" data-side="transcript" title="The words spoken on the timeline: transcribe, find, and cut by text">Transcript</button>
|
|
199
200
|
</div>
|
|
200
201
|
<div class="inspector-body" id="inspector">
|
|
201
202
|
<div class="inspector-empty">Select a clip to edit its<br>transform, effects & audio.</div>
|
|
202
203
|
</div>
|
|
203
204
|
<div class="mixer hidden" id="mixer"></div>
|
|
204
205
|
<div class="color-page hidden" id="colorPage"></div>
|
|
206
|
+
<div class="tr-page hidden" id="transcriptPage"></div>
|
|
205
207
|
</aside>
|
|
206
208
|
</div>
|
|
207
209
|
|
|
@@ -654,6 +656,15 @@
|
|
|
654
656
|
<tr><td>Track point</td><td>Click the spot to follow on the monitor — it tracks from the playhead to the clip's end · <kbd>Esc</kbd> cancels the pick, or stops a running track (what was tracked so far is kept)</td></tr>
|
|
655
657
|
</table>
|
|
656
658
|
</section>
|
|
659
|
+
<section class="keys-sec">
|
|
660
|
+
<h3>Transcript <span>side panel → Transcript</span></h3>
|
|
661
|
+
<table class="keys">
|
|
662
|
+
<tr><td>Click a word</td><td>Go to it · <kbd>⇧</kbd>+click or drag selects a run of words</td></tr>
|
|
663
|
+
<tr><td><kbd>Del</kbd></td><td>Cut the selected words and the pause after them (extract on the targeted tracks) · <kbd>Esc</kbd> clears the selection</td></tr>
|
|
664
|
+
<tr><td>Find words</td><td><kbd>Enter</kbd> / <kbd>⇧</kbd>+<kbd>Enter</kbd> go to the next / previous match · <b>Cut</b> extracts every match</td></tr>
|
|
665
|
+
<tr><td>Captions</td><td>Pick a style, then <b>Add captions</b> (one undo step; replaces the captions there) · <b>SRT</b> / <b>VTT</b> download them · <b>Import…</b> places a subtitle file's captions</td></tr>
|
|
666
|
+
</table>
|
|
667
|
+
</section>
|
|
657
668
|
<p class="help-empty hidden" id="helpEmpty">No shortcut matches that.</p>
|
|
658
669
|
</div>
|
|
659
670
|
<div class="dialog-actions"><button class="btn primary" id="btnCloseHelp">Close</button></div>
|
|
@@ -664,9 +675,15 @@
|
|
|
664
675
|
|
|
665
676
|
<script src="loudness.js"></script>
|
|
666
677
|
<script src="ducking.js"></script>
|
|
678
|
+
<script src="silence.js"></script>
|
|
679
|
+
<script src="beats.js"></script>
|
|
680
|
+
<script src="transcribe.js"></script>
|
|
681
|
+
<script src="captions.js"></script>
|
|
667
682
|
<script src="audio-fx.js"></script>
|
|
668
683
|
<script src="mask.js"></script>
|
|
669
684
|
<script src="tracker.js"></script>
|
|
685
|
+
<script src="reframe.js"></script>
|
|
686
|
+
<script src="highlights.js"></script>
|
|
670
687
|
<script src="motion.js"></script>
|
|
671
688
|
<script src="color.js"></script>
|
|
672
689
|
<script src="edit-ops.js"></script>
|