davinci-resolve-mcp 2.185.0 → 2.187.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 +40 -0
- package/README.md +1 -1
- package/README.zh-CN.md +2 -2
- package/docs/reference/api-limitations.md +1 -1
- package/install.py +1 -1
- package/package.json +1 -1
- package/resolve-advanced/server/prproj.mjs +60 -5
- package/resolve-advanced/server/tools/editorial.mjs +1 -1
- package/src/granular/common.py +1 -1
- package/src/server.py +1 -1
- package/src/utils/api_truth.py +13 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,46 @@
|
|
|
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.187.0 — E134: real Premiere transitions attach, with their real type
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- **Real Premiere transitions were invisible.** A Premiere 2025 track keeps
|
|
10
|
+
its transitions in a separate `TransitionItems` list, not among
|
|
11
|
+
`ClipItems` (measured on the reel: two video `Cross Dissolve (Legacy)`
|
|
12
|
+
items and one audio `Constant Power` fade-in, none of which reached the
|
|
13
|
+
parser). Each carries its span under `TransitionTrackItem.TrackItem`, an
|
|
14
|
+
`Alignment`, `HasIncomingClip` / `HasOutgoingClip` (false = a fade from or
|
|
15
|
+
to black or silence) and a `DisplayName`. The walk now reads
|
|
16
|
+
`TransitionItems` alongside `ClipItems`; transitions attach to the
|
|
17
|
+
incoming clip whose record-in falls inside the span and carry the real
|
|
18
|
+
`DisplayName` as their type, so the bridge routes dissolves and audio
|
|
19
|
+
cross-fades by name; a transition with no outgoing clip synthesizes the
|
|
20
|
+
black/silence leg as before. The synthetic real-shape fixture pins a
|
|
21
|
+
`TransitionItems` dissolve attaching at its explicit span.
|
|
22
|
+
|
|
23
|
+
### Measured (filed in api-limitations)
|
|
24
|
+
|
|
25
|
+
- The Premiere 2025 transition item shape and its fade flags.
|
|
26
|
+
|
|
27
|
+
## What's New in v2.186.0 — E133: Premiere nested sequences flatten into the reel
|
|
28
|
+
|
|
29
|
+
### Fixed
|
|
30
|
+
|
|
31
|
+
- **A nested sequence used as a clip was an unmapped reel.** In a real
|
|
32
|
+
Premiere 2025 reels project, 3,607 items reference another sequence
|
|
33
|
+
(`Clip.Source` → `VideoSequenceSource` / `AudioSequenceSource` →
|
|
34
|
+
`SequenceSource.Sequence`), and the parser emitted the nested sequence's
|
|
35
|
+
name as a source the bridge could not map. Those items now flatten: the
|
|
36
|
+
nested sequence walks with its own cursor, its cuts of the same track kind
|
|
37
|
+
translate through the clip's in-point window into the parent's record
|
|
38
|
+
span (source frames trimmed at each cut's play rate), each tagged
|
|
39
|
+
`fromCompound` — the OTIO Stack (E120) and AAF nested-composition (E125)
|
|
40
|
+
flatten for Premiere. Depth and cycle guards keep a self-referencing
|
|
41
|
+
sequence as a named `compound` hole. Measured on the reels project:
|
|
42
|
+
13,711 events flatten, none remain as sequence-named sources. The real
|
|
43
|
+
shape is pinned in the synthetic fixture.
|
|
44
|
+
|
|
5
45
|
## What's New in v2.185.0 — E132: real Premiere projects parse — 739 sequences where there were zero
|
|
6
46
|
|
|
7
47
|
### 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.187.0 版 README。如与英文原版有出入,以 [英文原版](README.md) 为准。
|
|
16
16
|
|
|
17
17
|
一个 Model Context Protocol (MCP) 服务器,让 AI 助手通过官方脚本 API 控制 DaVinci Resolve Studio(达芬奇)。它提供完整的 API 覆盖,外加带护栏的工作流助手,涵盖剪辑、媒体池整理、渲染设置、审阅标记、调色、Fusion、Fairlight、项目生命周期任务、扩展开发,以及不碰源媒体的媒体分析。
|
|
18
18
|
|
|
@@ -322,7 +322,7 @@ equivalent, blocking full automation.
|
|
|
322
322
|
- **Object:** `editorial.parse_interchange / list_sequences (prproj)`
|
|
323
323
|
- **Signature:** `(path.prproj) -> sequences/events`
|
|
324
324
|
- **Behavior:** Measured on a real 130 MB colour turnover (E132): objects are defined in TWO id spaces — numeric ObjectID referenced by ObjectRef, and uuid ObjectUID referenced by ObjectURef — and Sequence, ClipProjectItem, MasterClip, Media, VideoClipTrack and AudioClipTrack are all UID-defined. A Sequence lists its tracks through <TrackGroups><TrackGroup><Second ObjectRef> → VideoTrackGroup / AudioTrackGroup (a third DataTrackGroup is empty) → <TrackGroup><Tracks><Track ObjectURef> → Video/AudioClipTrack → <ClipTrack><ClipItems><TrackItems><TrackItem ObjectRef>. An item's record span sits under <ClipTrackItem><TrackItem> (Start/End ticks) and its source under ClipTrackItem.SubClip → SubClip.Clip → VideoClip.Clip (InPoint/OutPoint, Source) → VideoMediaSource.MediaSource.Media (ObjectURef) → Media (FilePath / ActualMediaFilePath); SubClip.Name and MasterClip.Name are the fallbacks. A ZERO is written as ABSENCE (the counting leader at record 0 has End and no Start). Names are direct <Name> children. Legacy/synthetic files instead use ObjectID/ObjectRef throughout, <VideoTracks>/<AudioTracks> track lists, Start/End/InPoint/OutPoint on the item and Node/Properties names.
|
|
325
|
-
- **Workaround / current handling:** Index both id spaces and follow both reference attributes; walk TrackGroups when present; read timing through the *TrackItem child; treat a missing Start/InPoint beside a present End/OutPoint as 0. With that, the turnover lists all 739 sequences and its reel walks 335 events (it listed ZERO before).
|
|
325
|
+
- **Workaround / current handling:** Index both id spaces and follow both reference attributes; walk TrackGroups when present; read timing through the *TrackItem child; treat a missing Start/InPoint beside a present End/OutPoint as 0. With that, the turnover lists all 739 sequences and its reel walks 335 events (it listed ZERO before). A NESTED SEQUENCE used as a clip has Clip.Source → VideoSequenceSource / AudioSequenceSource → SequenceSource.Sequence ObjectURef → the nested Sequence (E133: 3607 such items in the reels project); parse_interchange flattens them through the clip's InPoint window with fromCompound. TRANSITIONS sit in a SEPARATE track list, ClipTrack.TransitionItems.TrackItems (E134): a Video/AudioTransitionTrackItem carries TransitionTrackItem.TrackItem{Start,End} (the span), DisplayName / MatchName (the effect), Alignment (ticks) and HasIncomingClip / HasOutgoingClip — false marks a fade from/to black or silence.
|
|
326
326
|
- **Tags:** prproj, premiere, interchange, silent-failure
|
|
327
327
|
|
|
328
328
|
### ProjectManager.CreateProject (discards an unsaved current project)
|
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.187.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
|
@@ -176,6 +176,17 @@ function realClipSource(clipNode, byId) {
|
|
|
176
176
|
const inPt = inner ? (childText(inner, 'InPoint') != null ? childText(inner, 'InPoint') : (outPt != null ? 0 : null)) : null;
|
|
177
177
|
let name = null;
|
|
178
178
|
const srcEntry = inner && byId.get(ref(inner, 'Source') || '');
|
|
179
|
+
// A NESTED SEQUENCE used as a clip (E133, measured: 3607 such items in one
|
|
180
|
+
// real turnover): the clip's Source is a Video/AudioSequenceSource whose
|
|
181
|
+
// SequenceSource.Sequence references another Sequence object.
|
|
182
|
+
if (srcEntry && /SequenceSource$/.test(srcEntry.tag)) {
|
|
183
|
+
const ss = asArray(srcEntry.node.SequenceSource)[0];
|
|
184
|
+
const nestedId = ss ? ref(ss, 'Sequence') : null;
|
|
185
|
+
const nested = nestedId ? byId.get(nestedId) : null;
|
|
186
|
+
if (nested && nested.tag === 'Sequence') {
|
|
187
|
+
return { inPt, outPt, name: nodeName(nested.node) || 'NESTED', nestedSequence: nested };
|
|
188
|
+
}
|
|
189
|
+
}
|
|
179
190
|
const ms = srcEntry && asArray(srcEntry.node.MediaSource)[0];
|
|
180
191
|
const media = ms && byId.get(ref(ms, 'Media') || '');
|
|
181
192
|
if (media) {
|
|
@@ -213,6 +224,7 @@ function clipEvent(clipNode, byId, track, fps, index) {
|
|
|
213
224
|
index,
|
|
214
225
|
track,
|
|
215
226
|
source: (real && real.name) || resolveSourceName(clipNode, byId),
|
|
227
|
+
...(real && real.nestedSequence ? { __nested: real.nestedSequence } : {}),
|
|
216
228
|
srcIn: reverse ? srcOut : srcIn,
|
|
217
229
|
srcOut: reverse ? srcIn : srcOut,
|
|
218
230
|
recIn,
|
|
@@ -224,10 +236,13 @@ function clipEvent(clipNode, byId, track, fps, index) {
|
|
|
224
236
|
};
|
|
225
237
|
}
|
|
226
238
|
|
|
227
|
-
function walkSequence(seqEntry, byId) {
|
|
239
|
+
function walkSequence(seqEntry, byId, depth = 0, seen = new Set()) {
|
|
228
240
|
const fps = deriveFps(seqEntry.node);
|
|
229
241
|
const events = [];
|
|
230
242
|
let idx = 1;
|
|
243
|
+
const seqKey = String(seqEntry.node['@_ObjectUID'] ?? seqEntry.node['@_ObjectID'] ?? '');
|
|
244
|
+
const seenHere = new Set(seen);
|
|
245
|
+
if (seqKey) seenHere.add(seqKey);
|
|
231
246
|
// Two sequence shapes (E132): the synthetic/legacy one lists tracks under
|
|
232
247
|
// <VideoTracks>/<AudioTracks>; a real Premiere 2025 project lists
|
|
233
248
|
// <TrackGroups> whose <Second> references a VideoTrackGroup /
|
|
@@ -249,18 +264,58 @@ function walkSequence(seqEntry, byId) {
|
|
|
249
264
|
for (const tref of trackRefs) {
|
|
250
265
|
const tEntry = byId.get(refId(tref));
|
|
251
266
|
if (!tEntry) continue;
|
|
252
|
-
|
|
267
|
+
// Real Premiere 2025 keeps a track's TRANSITIONS in a separate list,
|
|
268
|
+
// ClipTrack.TransitionItems (E134, measured: 2 video + 1 audio on the
|
|
269
|
+
// reel — none reached the parser from ClipItems alone).
|
|
270
|
+
const itemRefs = asArray(tEntry.node.TrackItems?.TrackItem).concat(
|
|
271
|
+
asArray(tEntry.node.ClipTrack?.ClipItems?.TrackItems?.TrackItem),
|
|
272
|
+
asArray(tEntry.node.ClipItems?.TrackItems?.TrackItem),
|
|
273
|
+
asArray(tEntry.node.ClipTrack?.TransitionItems?.TrackItems?.TrackItem),
|
|
274
|
+
asArray(tEntry.node.TransitionItems?.TrackItems?.TrackItem),
|
|
275
|
+
);
|
|
253
276
|
const transitions = [];
|
|
254
277
|
const clipEvents = [];
|
|
255
278
|
for (const iref of itemRefs) {
|
|
256
279
|
const cEntry = byId.get(refId(iref));
|
|
257
280
|
if (!cEntry) continue;
|
|
258
281
|
if (/ClipTrackItem$/.test(cEntry.tag)) {
|
|
259
|
-
|
|
282
|
+
const ev = clipEvent(cEntry.node, byId, trackKind, fps, idx++);
|
|
283
|
+
const nested = ev.__nested;
|
|
284
|
+
delete ev.__nested;
|
|
285
|
+
const nestedKey = nested ? String(nested.node['@_ObjectUID'] ?? nested.node['@_ObjectID'] ?? '') : '';
|
|
286
|
+
if (nested && depth < 8 && !seenHere.has(nestedKey)) {
|
|
287
|
+
// FLATTEN the nested sequence into this record span (E133, the
|
|
288
|
+
// OTIO Stack / AAF nested-composition flatten for Premiere): walk
|
|
289
|
+
// it with its own cursor, keep this track kind's lanes, translate
|
|
290
|
+
// through the window [srcIn, srcIn + record length), tag fromCompound.
|
|
291
|
+
const inner = walkSequence(nested, byId, depth + 1, seenHere).filter((e) => e.track.charAt(0) === trackKind && e.recIn != null && e.recOut != null);
|
|
292
|
+
const winStart = ev.srcIn ?? 0;
|
|
293
|
+
const winLen = (ev.recOut ?? 0) - (ev.recIn ?? 0);
|
|
294
|
+
let first = true;
|
|
295
|
+
for (const e of inner) {
|
|
296
|
+
const a = e.recIn - winStart, b = e.recOut - winStart;
|
|
297
|
+
const a2 = Math.max(0, a), b2 = Math.min(winLen, b);
|
|
298
|
+
if (b2 <= a2) continue;
|
|
299
|
+
const k = ((e.speed ?? 100) / 100) * (e.reverse ? -1 : 1);
|
|
300
|
+
const flat = { ...e, index: idx++, recIn: ev.recIn + a2, recOut: ev.recIn + b2, srcIn: e.srcIn != null ? Math.round(e.srcIn + (a2 - a) * k) : e.srcIn, srcOut: e.srcOut != null ? Math.round(e.srcOut - (b - b2) * k) : e.srcOut, fromCompound: ev.source };
|
|
301
|
+
if (first && ev.transition && !flat.transition) flat.transition = ev.transition;
|
|
302
|
+
first = false;
|
|
303
|
+
clipEvents.push(flat);
|
|
304
|
+
}
|
|
305
|
+
continue;
|
|
306
|
+
}
|
|
307
|
+
if (nested) ev.compound = ev.source; // cycle/depth guard: keep it as a named compound hole
|
|
308
|
+
clipEvents.push(ev);
|
|
260
309
|
} else if (/Transition/.test(cEntry.tag)) {
|
|
261
310
|
const ti = itemTiming(cEntry.node);
|
|
262
311
|
const dur = ticksToFrames(Number(ti.end) - Number(ti.start), fps);
|
|
263
|
-
|
|
312
|
+
// Real shape carries the type and the fade semantics on the item
|
|
313
|
+
// (E134): DisplayName/MatchName name the effect; HasOutgoingClip
|
|
314
|
+
// false = a fade-IN from black/silence, HasIncomingClip false = a
|
|
315
|
+
// fade-OUT — the BL synthesis below keys on the missing neighbour.
|
|
316
|
+
const tti = asArray(cEntry.node.TransitionTrackItem)[0] || {};
|
|
317
|
+
const type = childText(tti, 'DisplayName') || childText(tti, 'MatchName') || childText(cEntry.node, 'DisplayName') || null;
|
|
318
|
+
transitions.push({ recIn: ticksToFrames(ti.start, fps), duration: dur || 0, type });
|
|
264
319
|
}
|
|
265
320
|
}
|
|
266
321
|
// Attach each transition to the INCOMING clip whose record-in falls
|
|
@@ -272,7 +327,7 @@ function walkSequence(seqEntry, byId) {
|
|
|
272
327
|
// bridge's black machinery (E91-E96).
|
|
273
328
|
for (const tr of transitions) {
|
|
274
329
|
const end = tr.recIn + tr.duration;
|
|
275
|
-
const trans = { type: 'dissolve', duration: tr.duration, recStart: tr.recIn };
|
|
330
|
+
const trans = { type: tr.type || 'dissolve', duration: tr.duration, recStart: tr.recIn };
|
|
276
331
|
const incoming = clipEvents.find((e) => e.recIn > tr.recIn - 1 && e.recIn <= end);
|
|
277
332
|
if (incoming) {
|
|
278
333
|
incoming.transition = trans;
|
|
@@ -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 — incl. Resolve-written OTIO generator clips (a Solid Color is a Clip with a NULL media_reference; it walks as a BL leg with generatorName, and an OTIO GeneratorReference carries its colour) and nested OTIO Stacks (compound clips — Resolve\'s writer nests them with a trim window) FLATTEN into record time with fromCompound on each cut, so Resolve\'s own OTIO exports re-conform (its FCP7 XML writer flattens a compound to ONE media-less clipitem instead — tagged `compound`, which the bridge drops with a reason in unresolvedCompounds unless the sourceMap maps the compound name to a flattened media file), Resolve-written FCP7 -1 junction edges (paired in record order) + Solid Color / Color Matte generators carrying their `fillcolor` (BL legs with `color` → fade-to-white and colour mattes author, E110), XMEML audio-track transitionitems as audio cross-fades on numbered lanes A/A2/…, and CMX FROM/TO CLIP NAME comments over the generic AX reel — + AAF via pyaaf2 (flat sound/picture slots number A/A2/… and V/V2/… in slot order so separate beds keep their lanes; NestedScope layers keep layer numbering; a NESTED SEQUENCE used as a clip — a SourceClip referencing a named CompositionMob — flattens through its reference window with fromCompound, like OTIO Stacks) + PRPROJ via gunzip+XML (real Premiere 2025 files — uuid ObjectUID/ObjectURef graph, TrackGroups, ClipTrackItem→SubClip→VideoClip→MediaSource→Media chain, zeros written as absence — and the legacy ObjectID/VideoTracks shape both walk; measured on a 739-sequence turnover that used to list ZERO) → normalized events incl. span-explicit transitions, BL fade legs, and freezes as zero-speed events (OTIO FreezeFrame, XMEML timeremap 0, PrProj in==out, AAF 0% motion effects); 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 and nestedIn — an AAF composition another composition uses as a clip is NESTED in it; offer the parent, its cuts arrive flattened), convert_to_interchange (author OTIO/EDL/DRT Resolve CAN import from events or a parsed source; the EDL target writes CMX transition pairs incl. BL fades — 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/trimmed/replaced/new/gone PLUS the junction diff: transition_added/transition_dropped/transition_changed with fade in/out or dissolve, outgoing/incoming, span and duration/type/pre-roll deltas — zero-length CMX carrier lines and the BL legs that carry fades fold into the junction diff instead of reading as gone/new sources; events pair by closest record position, consumed once, so a source cut twice at two speeds compares instance to instance; + timing flags incl. transition_dropped and dropped_split_audio on any A-track; a compound seen collapsed in one cut and flattened in the other reports compound_collapsed/compound_expanded once, never replaced+gone), conform_manifest (per-event assert: source resolved/handles/retime/reverse/TC-base; BL-aware — black legs need no source, fades no black-side handles, and a fade-out tail requirement lands on the picture source; a compound clipitem fails source_resolved by NAME with the remedy — map it to a flattened file or turn over as OTIO), 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; AUDIO-AWARE: declared audio events compare (a video-only export such as EXPORT_EDL flags audioNotInExport instead of failing) (channel legs deduped, mismatches tagged trackType audio) while the mirrored-A1 export of a video-only turnover stays informational; COLOUR-AWARE: an input generator leg carrying a fillcolor (fade-to-white, colour matte) must come back on the same track over its span with the same colour — Resolve\'s FCP7 writer emits it — else generator-colour fails (generatorColours reports the compare) — pass exportedFormat: an OTIO/EDL re-export cannot carry colour (measured) and reports generatorColourNotInExport instead of failing; COMPOUND-AWARE: an XML re-export that collapsed a compound to one clipitem over cuts the input flattened from that compound reports compoundsCollapsedInExport instead of count/source drift; 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 — incl. Resolve-written OTIO generator clips (a Solid Color is a Clip with a NULL media_reference; it walks as a BL leg with generatorName, and an OTIO GeneratorReference carries its colour) and nested OTIO Stacks (compound clips — Resolve\'s writer nests them with a trim window) FLATTEN into record time with fromCompound on each cut, so Resolve\'s own OTIO exports re-conform (its FCP7 XML writer flattens a compound to ONE media-less clipitem instead — tagged `compound`, which the bridge drops with a reason in unresolvedCompounds unless the sourceMap maps the compound name to a flattened media file), Resolve-written FCP7 -1 junction edges (paired in record order) + Solid Color / Color Matte generators carrying their `fillcolor` (BL legs with `color` → fade-to-white and colour mattes author, E110), XMEML audio-track transitionitems as audio cross-fades on numbered lanes A/A2/…, and CMX FROM/TO CLIP NAME comments over the generic AX reel — + AAF via pyaaf2 (flat sound/picture slots number A/A2/… and V/V2/… in slot order so separate beds keep their lanes; NestedScope layers keep layer numbering; a NESTED SEQUENCE used as a clip — a SourceClip referencing a named CompositionMob — flattens through its reference window with fromCompound, like OTIO Stacks) + PRPROJ via gunzip+XML (real Premiere 2025 files — uuid ObjectUID/ObjectURef graph, TrackGroups, ClipTrackItem→SubClip→VideoClip→MediaSource→Media chain, zeros written as absence — and the legacy ObjectID/VideoTracks shape both walk; measured on a 739-sequence turnover that used to list ZERO; a NESTED SEQUENCE used as a clip — Source = Video/AudioSequenceSource → Sequence — flattens through its in-point window with fromCompound, like OTIO Stacks and AAF nested compositions; 13,711 such events on one real reels project; real transitions live in the track\'s TransitionItems list — read alongside ClipItems, attached with their DisplayName as type, HasOutgoingClip/HasIncomingClip false = fade from/to black or silence) → normalized events incl. span-explicit transitions, BL fade legs, and freezes as zero-speed events (OTIO FreezeFrame, XMEML timeremap 0, PrProj in==out, AAF 0% motion effects); 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 and nestedIn — an AAF composition another composition uses as a clip is NESTED in it; offer the parent, its cuts arrive flattened), convert_to_interchange (author OTIO/EDL/DRT Resolve CAN import from events or a parsed source; the EDL target writes CMX transition pairs incl. BL fades — 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/trimmed/replaced/new/gone PLUS the junction diff: transition_added/transition_dropped/transition_changed with fade in/out or dissolve, outgoing/incoming, span and duration/type/pre-roll deltas — zero-length CMX carrier lines and the BL legs that carry fades fold into the junction diff instead of reading as gone/new sources; events pair by closest record position, consumed once, so a source cut twice at two speeds compares instance to instance; + timing flags incl. transition_dropped and dropped_split_audio on any A-track; a compound seen collapsed in one cut and flattened in the other reports compound_collapsed/compound_expanded once, never replaced+gone), conform_manifest (per-event assert: source resolved/handles/retime/reverse/TC-base; BL-aware — black legs need no source, fades no black-side handles, and a fade-out tail requirement lands on the picture source; a compound clipitem fails source_resolved by NAME with the remedy — map it to a flattened file or turn over as OTIO), 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; AUDIO-AWARE: declared audio events compare (a video-only export such as EXPORT_EDL flags audioNotInExport instead of failing) (channel legs deduped, mismatches tagged trackType audio) while the mirrored-A1 export of a video-only turnover stays informational; COLOUR-AWARE: an input generator leg carrying a fillcolor (fade-to-white, colour matte) must come back on the same track over its span with the same colour — Resolve\'s FCP7 writer emits it — else generator-colour fails (generatorColours reports the compare) — pass exportedFormat: an OTIO/EDL re-export cannot carry colour (measured) and reports generatorColourNotInExport instead of failing; COMPOUND-AWARE: an XML re-export that collapsed a compound to one clipitem over cuts the input flattened from that compound reports compoundsCollapsedInExport instead of count/source drift; 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.187.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()}")
|
package/src/server.py
CHANGED
package/src/utils/api_truth.py
CHANGED
|
@@ -2907,7 +2907,19 @@ API_TRUTH: List[Dict[str, Any]] = [
|
|
|
2907
2907
|
"through the *TrackItem child; treat a missing Start/"
|
|
2908
2908
|
"InPoint beside a present End/OutPoint as 0. With that, "
|
|
2909
2909
|
"the turnover lists all 739 sequences and its reel walks "
|
|
2910
|
-
"335 events (it listed ZERO before)."
|
|
2910
|
+
"335 events (it listed ZERO before). A NESTED SEQUENCE "
|
|
2911
|
+
"used as a clip has Clip.Source → VideoSequenceSource / "
|
|
2912
|
+
"AudioSequenceSource → SequenceSource.Sequence ObjectURef "
|
|
2913
|
+
"→ the nested Sequence (E133: 3607 such items in the "
|
|
2914
|
+
"reels project); parse_interchange flattens them through "
|
|
2915
|
+
"the clip\'s InPoint window with fromCompound. "
|
|
2916
|
+
"TRANSITIONS sit in a SEPARATE track list, "
|
|
2917
|
+
"ClipTrack.TransitionItems.TrackItems (E134): a "
|
|
2918
|
+
"Video/AudioTransitionTrackItem carries "
|
|
2919
|
+
"TransitionTrackItem.TrackItem{Start,End} (the span), "
|
|
2920
|
+
"DisplayName / MatchName (the effect), Alignment (ticks) "
|
|
2921
|
+
"and HasIncomingClip / HasOutgoingClip — false marks a "
|
|
2922
|
+
"fade from/to black or silence.",
|
|
2911
2923
|
"tags": ["prproj", "premiere", "interchange", "silent-failure"],
|
|
2912
2924
|
"submit": "missing",
|
|
2913
2925
|
"mitigation": ["editorial.parse_interchange prproj", "editorial.list_sequences"],
|