davinci-resolve-mcp 2.152.0 → 2.154.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/CHANGELOG.md +34 -0
- package/README.md +1 -1
- package/README.zh-CN.md +2 -2
- package/install.py +1 -1
- package/package.json +1 -1
- package/resolve-advanced/server/author-interchange.mjs +58 -7
- package/resolve-advanced/server/tools/editorial.mjs +1 -1
- package/src/granular/common.py +1 -1
- package/src/server.py +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,40 @@
|
|
|
2
2
|
|
|
3
3
|
Release history for the DaVinci Resolve MCP Server. The latest release is summarized in the root README; older entries live here to keep the README focused.
|
|
4
4
|
|
|
5
|
+
## What's New in v2.154.0 — the QC loop learns retimes
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- **`editorial.verify_roundtrip` is retime-aware.** A conform that lost its
|
|
10
|
+
retime is a wrong timeline that record/source geometry alone cannot catch
|
|
11
|
+
— the record extent is unchanged, only the playback rate. Speed and
|
|
12
|
+
reverse now compare pairwise (`kind: 'retime'` on drift).
|
|
13
|
+
|
|
14
|
+
### Measured (good news, for once)
|
|
15
|
+
|
|
16
|
+
- **`EXPORT_OTIO` carries an authored `Sm2TimeMap` back as
|
|
17
|
+
`LinearTimeWarp`**: a 50% M2 retime conformed offline reads back out of
|
|
18
|
+
Resolve's OTIO export as `time_scalar: 0.5`. The retime loop closes
|
|
19
|
+
losslessly through OTIO — live loop verified both ways (pass on the true
|
|
20
|
+
export, `retime` drift on a speed-stripped one).
|
|
21
|
+
|
|
22
|
+
## What's New in v2.153.0 — the QC loop learns fades
|
|
23
|
+
|
|
24
|
+
### Added
|
|
25
|
+
|
|
26
|
+
- **`editorial.verify_roundtrip` is fade-aware.** A correct fade conform
|
|
27
|
+
used to fail QC three ways: the re-export's Solid Color legs mismatched
|
|
28
|
+
the EDL's BL reels, the leg counts differed, and the fade boundary-shift
|
|
29
|
+
moved picture edges by half the transition. Now BL/Solid-Color legs
|
|
30
|
+
canonicalize to BLACK and drop out of the pairwise compare (counted in
|
|
31
|
+
`blackSegments`), picture edges inside an input junction's fade window are
|
|
32
|
+
excused into `fadeReshapedBoundaries` — reported, never silently absorbed
|
|
33
|
+
— and the per-source TC offset is fitted net of the record shift so a
|
|
34
|
+
source cut both plain and faded doesn't read as source-frames drift.
|
|
35
|
+
Live loop verified: EDL fades → conform → import → OTIO re-export →
|
|
36
|
+
`pass: true` with the reshape named. Beyond-window shifts and shifts at
|
|
37
|
+
junction-free edges still fail as real record drift.
|
|
38
|
+
|
|
5
39
|
## What's New in v2.152.0 — AAF dissolves conform at last, and AAF fades join the family
|
|
6
40
|
|
|
7
41
|
### Fixed
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
English | [简体中文](README.zh-CN.md)
|
|
4
4
|
|
|
5
|
-
[](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
|
|
6
6
|
[](https://www.npmjs.com/package/davinci-resolve-mcp)
|
|
7
7
|
[](docs/reference/api-coverage.md)
|
|
8
8
|
[-blue.svg)](#server-modes)
|
package/README.zh-CN.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[English](README.md) | 简体中文
|
|
4
4
|
|
|
5
|
-
[](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
|
|
6
6
|
[](https://www.npmjs.com/package/davinci-resolve-mcp)
|
|
7
7
|
[](docs/reference/api-coverage.md)
|
|
8
8
|
[-blue.svg)](#服务器模式)
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
[](https://www.python.org/downloads/)
|
|
13
13
|
[](https://opensource.org/licenses/MIT)
|
|
14
14
|
|
|
15
|
-
> 本翻译对应 v2.
|
|
15
|
+
> 本翻译对应 v2.154.0 版 README。如与英文原版有出入,以 [英文原版](README.md) 为准。
|
|
16
16
|
|
|
17
17
|
一个 Model Context Protocol (MCP) 服务器,让 AI 助手通过官方脚本 API 控制 DaVinci Resolve Studio(达芬奇)。它提供完整的 API 覆盖,外加带护栏的工作流助手,涵盖剪辑、媒体池整理、渲染设置、审阅标记、调色、Fusion、Fairlight、项目生命周期任务、扩展开发,以及不碰源媒体的媒体分析。
|
|
18
18
|
|
package/install.py
CHANGED
|
@@ -37,7 +37,7 @@ from src.utils.update_check import (
|
|
|
37
37
|
|
|
38
38
|
# ─── Version ──────────────────────────────────────────────────────────────────
|
|
39
39
|
|
|
40
|
-
VERSION = "2.
|
|
40
|
+
VERSION = "2.154.0"
|
|
41
41
|
# Only hard floor: mcp[cli] requires Python 3.10+. There is no upper bound —
|
|
42
42
|
# Resolve's scripting bridge loads into newer interpreters on recent builds
|
|
43
43
|
# (Python 3.14 verified against Resolve Studio 20.3.2). Older Resolve builds
|
package/package.json
CHANGED
|
@@ -839,11 +839,32 @@ export function verifyRoundtrip(inputEvents, exportedEvents, opts = {}) {
|
|
|
839
839
|
if (!v.length) return [];
|
|
840
840
|
const off = Math.min(...v.map((e) => e.recIn));
|
|
841
841
|
return v
|
|
842
|
-
.map((e) => ({ track: canonTrack(e.track), source: mapSource(canonSource(e.source)), recIn: e.recIn - off, recOut: e.recOut - off, srcIn: e.srcIn ?? 0 }))
|
|
842
|
+
.map((e) => ({ track: canonTrack(e.track), source: mapSource(canonSource(e.source)), recIn: e.recIn - off, recOut: e.recOut - off, srcIn: e.srcIn ?? 0, speed: e.speed ?? 100, reverse: Boolean(e.reverse) }))
|
|
843
843
|
.sort((a, b) => a.track.localeCompare(b.track) || a.recIn - b.recIn);
|
|
844
844
|
};
|
|
845
|
-
const
|
|
846
|
-
const
|
|
845
|
+
const a0 = norm(inputEvents);
|
|
846
|
+
const b0 = norm(exportedEvents);
|
|
847
|
+
// FADES (E94): BL legs on the input side and the Solid Color generators a
|
|
848
|
+
// fade conform authors for them are the same thing — BLACK. Black segments
|
|
849
|
+
// are synthesized filler whose extents follow from the picture boundaries,
|
|
850
|
+
// so the pairwise compare runs over PICTURE legs only; black is counted
|
|
851
|
+
// informationally. And a fade's boundary-shift legitimately moves a
|
|
852
|
+
// picture edge by up to the transition duration (matching Resolve's own
|
|
853
|
+
// start-at-cut reshaping), so an edge within an input junction's fade
|
|
854
|
+
// window is excused — and reported, not silently absorbed.
|
|
855
|
+
const isBlackSeg = (e) => /^(bl|black|solid color)$/.test(e.source);
|
|
856
|
+
const a = a0.filter((e) => !isBlackSeg(e));
|
|
857
|
+
const b = b0.filter((e) => !isBlackSeg(e));
|
|
858
|
+
const blackSegments = { input: a0.length - a.length, exported: b0.length - b.length };
|
|
859
|
+
const rawVids = vids(inputEvents);
|
|
860
|
+
const inOff = rawVids.length ? Math.min(...rawVids.map((e) => e.recIn)) : 0;
|
|
861
|
+
const junctions = inputEvents
|
|
862
|
+
.filter((e) => /^V\d*$/.test(String(e.track)) && e.recIn != null && e.transition && e.transition.duration > 0)
|
|
863
|
+
.map((e) => ({ frame: e.recIn - inOff, d: e.transition.duration }));
|
|
864
|
+
const inFadeWindow = (edgeIn, edgeExp) => junctions.some(
|
|
865
|
+
(j) => Math.abs(edgeIn - j.frame) <= j.d && Math.abs(edgeExp - edgeIn) <= j.d,
|
|
866
|
+
);
|
|
867
|
+
const fadeReshapedBoundaries = [];
|
|
847
868
|
const mismatches = [];
|
|
848
869
|
if (a.length !== b.length) mismatches.push({ kind: 'count', input: a.length, exported: b.length });
|
|
849
870
|
const srcOffsets = {};
|
|
@@ -852,11 +873,36 @@ export function verifyRoundtrip(inputEvents, exportedEvents, opts = {}) {
|
|
|
852
873
|
const x = a[i], y = b[i];
|
|
853
874
|
if (x.track !== y.track) { mismatches.push({ kind: 'track', at: i, input: x.track, exported: y.track }); continue; }
|
|
854
875
|
if (x.source !== y.source) { mismatches.push({ kind: 'source', at: i, input: x.source, exported: y.source }); continue; }
|
|
855
|
-
|
|
856
|
-
|
|
876
|
+
const inBad = Math.abs(x.recIn - y.recIn) > recTol;
|
|
877
|
+
const outBad = Math.abs(x.recOut - y.recOut) > recTol;
|
|
878
|
+
if (inBad || outBad) {
|
|
879
|
+
const inExcused = !inBad || inFadeWindow(x.recIn, y.recIn);
|
|
880
|
+
const outExcused = !outBad || inFadeWindow(x.recOut, y.recOut);
|
|
881
|
+
if (inExcused && outExcused) {
|
|
882
|
+
fadeReshapedBoundaries.push({ at: i, source: x.source, input: [x.recIn, x.recOut], exported: [y.recIn, y.recOut] });
|
|
883
|
+
} else {
|
|
884
|
+
mismatches.push({ kind: 'record', at: i, input: [x.recIn, x.recOut], exported: [y.recIn, y.recOut] });
|
|
885
|
+
continue;
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
// RETIMES (E95): a conform that lost its retime is a wrong timeline that
|
|
889
|
+
// record/source geometry alone cannot catch (the record extent is
|
|
890
|
+
// unchanged; only the playback rate is). Resolve's EXPORT_OTIO carries
|
|
891
|
+
// an authored Sm2TimeMap back as LinearTimeWarp (measured live: 50%
|
|
892
|
+
// in → time_scalar 0.5 out), so a speed/reverse mismatch is real drift.
|
|
893
|
+
if (Math.abs((x.speed ?? 100) - (y.speed ?? 100)) > 0.5 || x.reverse !== y.reverse) {
|
|
894
|
+
mismatches.push({
|
|
895
|
+
kind: 'retime', at: i, source: x.source,
|
|
896
|
+
input: { speed: x.speed, reverse: x.reverse },
|
|
897
|
+
exported: { speed: y.speed, reverse: y.reverse },
|
|
898
|
+
});
|
|
857
899
|
continue;
|
|
858
900
|
}
|
|
859
|
-
|
|
901
|
+
// A fade-reshaped head trims record AND source together (source stays
|
|
902
|
+
// record-aligned), so the per-source constant offset is fitted net of
|
|
903
|
+
// the record shift — otherwise a source cut both plain and faded would
|
|
904
|
+
// read as a source-frames drift.
|
|
905
|
+
const off = (y.srcIn - (y.recIn - x.recIn)) - x.srcIn;
|
|
860
906
|
if (srcOffsets[x.source] === undefined) srcOffsets[x.source] = off;
|
|
861
907
|
else if (Math.abs(off - srcOffsets[x.source]) > srcTol) {
|
|
862
908
|
mismatches.push({ kind: 'source-frames', at: i, source: x.source, expectedOffset: srcOffsets[x.source], gotOffset: off });
|
|
@@ -893,5 +939,10 @@ export function verifyRoundtrip(inputEvents, exportedEvents, opts = {}) {
|
|
|
893
939
|
}
|
|
894
940
|
mismatches.push(...markers.mismatches);
|
|
895
941
|
}
|
|
896
|
-
return {
|
|
942
|
+
return {
|
|
943
|
+
pass: mismatches.length === 0, pairs: n, srcOffsets, mismatches, markers,
|
|
944
|
+
...(markersNotInExport ? { markersNotInExport } : {}),
|
|
945
|
+
...(blackSegments.input || blackSegments.exported ? { blackSegments } : {}),
|
|
946
|
+
...(fadeReshapedBoundaries.length ? { fadeReshapedBoundaries } : {}),
|
|
947
|
+
};
|
|
897
948
|
}
|
|
@@ -86,7 +86,7 @@ const markerSchema = z.object({
|
|
|
86
86
|
export const editorialTool = {
|
|
87
87
|
name: 'editorial',
|
|
88
88
|
description:
|
|
89
|
-
'Editorial integrity (Cluster E) — turnover interchange → normalized events → changelist + conform manifest with TIMING silent-lie guards (flattened retime / dropped J/L-cut audio / framerate-pulldown slip / reverse dropped / transition-handle starvation → flag, skip-not-fake). Report-only (gate: review). Actions: parse_interchange (EDL/OTIO/XMEML natively + AAF via pyaaf2 + PRPROJ via gunzip+XML → normalized events; for AAF/PRPROJ pass the file PATH as content; AAF also returns per-sequence startTimecode/startFrame — build the timeline at THAT start, not the Resolve 01:00:00:00 default — and per-clip `geometry` for Avid transform effects), list_sequences (ONE offline picker entry point across xml/edl/otio/drt/drp/aaf/prproj → [{id,name,eventCount}], plus startTimecode/startFrame for AAF), convert_to_interchange (author OTIO/EDL/DRT Resolve CAN import from events or a parsed source — the .prproj→Resolve conform bridge, no Premiere needed; editorial timing/transitions survive and per-clip effects/color do not. SPEED/REVERSE survive on the otio (LinearTimeWarp) and edl (M2) targets ONLY — this FLAT drt target flattens every retime to 100% forward and returns `flattened`/`flattenedCount` naming each event that lost one (`flattened` is always present on `drt`, empty when there were none); for a .drt that AUTHORS retimes/dissolves/multi-track/audio, use drt.assemble_from_interchange), turnover_changelist (diff old vs new → moved/retimed/replaced/new/gone + timing flags), conform_manifest (per-event assert: source resolved/handles/retime/reverse/TC-base), marker_roundtrip (markers with provenance tags), verify_roundtrip (input events vs re-export events -> pass/mismatches + fitted per-source TC offsets; the conform QC loop-closer). Offline (AAF needs pyaaf2; live AAF/DRP import is on the Python davinci-resolve MCP).',
|
|
89
|
+
'Editorial integrity (Cluster E) — turnover interchange → normalized events → changelist + conform manifest with TIMING silent-lie guards (flattened retime / dropped J/L-cut audio / framerate-pulldown slip / reverse dropped / transition-handle starvation → flag, skip-not-fake). Report-only (gate: review). Actions: parse_interchange (EDL/OTIO/XMEML natively + AAF via pyaaf2 + PRPROJ via gunzip+XML → normalized events; for AAF/PRPROJ pass the file PATH as content; AAF also returns per-sequence startTimecode/startFrame — build the timeline at THAT start, not the Resolve 01:00:00:00 default — and per-clip `geometry` for Avid transform effects), list_sequences (ONE offline picker entry point across xml/edl/otio/drt/drp/aaf/prproj → [{id,name,eventCount}], plus startTimecode/startFrame for AAF), convert_to_interchange (author OTIO/EDL/DRT Resolve CAN import from events or a parsed source — the .prproj→Resolve conform bridge, no Premiere needed; editorial timing/transitions survive and per-clip effects/color do not. SPEED/REVERSE survive on the otio (LinearTimeWarp) and edl (M2) targets ONLY — this FLAT drt target flattens every retime to 100% forward and returns `flattened`/`flattenedCount` naming each event that lost one (`flattened` is always present on `drt`, empty when there were none); for a .drt that AUTHORS retimes/dissolves/multi-track/audio, use drt.assemble_from_interchange), turnover_changelist (diff old vs new → moved/retimed/replaced/new/gone + timing flags), conform_manifest (per-event assert: source resolved/handles/retime/reverse/TC-base), marker_roundtrip (markers with provenance tags), verify_roundtrip (input events vs re-export events -> pass/mismatches + fitted per-source TC offsets + marker compare w/ markersNotInExport honesty flag; FADE-AWARE: BL/Solid-Color legs merge out as blackSegments and fade-window boundary reshapes are excused into fadeReshapedBoundaries instead of failing; RETIME-AWARE: speed/reverse compare pairwise — EXPORT_OTIO carries an authored Sm2TimeMap back as LinearTimeWarp (measured), so a flattened/lost retime fails as drift geometry alone cannot catch; the conform QC loop-closer). Offline (AAF needs pyaaf2; live AAF/DRP import is on the Python davinci-resolve MCP).',
|
|
90
90
|
async handler({ action, args }) {
|
|
91
91
|
if (action === 'parse_interchange') {
|
|
92
92
|
const p = parseSchema.parse(args);
|
package/src/granular/common.py
CHANGED
|
@@ -87,7 +87,7 @@ if not logging.getLogger().handlers:
|
|
|
87
87
|
handlers=[logging.StreamHandler()],
|
|
88
88
|
)
|
|
89
89
|
|
|
90
|
-
VERSION = "2.
|
|
90
|
+
VERSION = "2.154.0"
|
|
91
91
|
logger = logging.getLogger("davinci-resolve-mcp")
|
|
92
92
|
logger.info(f"Starting DaVinci Resolve MCP Server v{VERSION}")
|
|
93
93
|
logger.info(f"Detected platform: {get_platform()}")
|