davinci-resolve-mcp 4.18.4 → 4.18.6
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 +38 -0
- package/README.md +1 -1
- package/README.zh-CN.md +2 -2
- package/docs/SKILL.md +6 -5
- package/docs/reference/api-limitations.md +14 -32
- package/install.py +1 -1
- package/package.json +1 -1
- package/resolve-advanced/package.json +1 -1
- package/resolve-advanced/vendor/drx-codec/cdl-exporter.js +4 -2
- package/src/granular/common.py +1 -1
- package/src/granular/media_pool.py +3 -3
- package/src/server.py +11 -10
- package/src/utils/api_truth.py +90 -66
- package/src/utils/probe_catalogue.py +2 -2
- package/src/utils/split_edits.py +16 -6
- package/src/utils/subtitle_append_guard.py +15 -11
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,44 @@
|
|
|
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 v4.18.6 — `cdl_io` keeps corrections with an empty or missing id
|
|
6
|
+
|
|
7
|
+
`drx` action `cdl_io` dropped ASC CDL corrections whose `id` was empty or missing, with no warning. `parseCDL` only matched an opening tag written exactly as `<ColorCorrection id="...">` with a non-empty id and no other attribute. OpenColorIO's reference `cdl_test1.ccc` has five corrections, two of them there to check that an empty or missing id does not stop a look from loading. `cdl_io` imported three of the five, and a `.cc` holding only such a correction was refused as "not a CDL/CCC/CC document".
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- **`cdl_io` imports every correction in the file** (#342, thanks @Dev-next-gen). The opening tag may carry any attributes, and `id` is read from them. A correction with no id, or an empty one, is named `cc<index>`, the fallback `importCDL` already had but never reached. Self-closing `<ColorCorrection/>` elements are still skipped, and `<ColorCorrectionCollection>` is not mistaken for a correction.
|
|
12
|
+
|
|
13
|
+
### Validation
|
|
14
|
+
|
|
15
|
+
- The new test in `test/cdl-io.test.mjs` fails on 4.18.5 and passes with the fix. The 97 CDL-related Node tests pass on Node 20 with the PR merged into main.
|
|
16
|
+
- Parser-only change, no Resolve call is involved, so no live Resolve run applies. The open Resolve is Studio 19.1.3.7.
|
|
17
|
+
|
|
18
|
+
## What's New in v4.18.5 — The #336 ledger matches the re-measurement
|
|
19
|
+
|
|
20
|
+
@CaptRauti re-measured the six calls from v4.18.4. Three of them were the same broken timeline: `AppendToTimeline` took an absolute `recordFrame` below `StartFrame`, the clips landed outside the timeline, and `StartFrame` stayed equal to `EndFrame`.
|
|
21
|
+
|
|
22
|
+
### Fixed
|
|
23
|
+
|
|
24
|
+
- **A subtitle clipInfo is refused from Resolve 21.0** (#335, thanks @ylukin). Free 21.0.3.7 aborts on the same call as Studio 21.1.2.10 (`Sm2MpObject.cpp:546`). The floor was 21.1, so 4.18.3 still forwarded 21.0.3.7. Studio 21.0.4.5 was reported working (#169) and is refused with it. Builds older than 21.0 still forward the clipInfo. The plain `clip_ids` form is unchanged.
|
|
25
|
+
|
|
26
|
+
### Documentation
|
|
27
|
+
|
|
28
|
+
- **Timeline.DeleteGaps** and **Timeline.ExportFrame** are withdrawn. On a timeline whose clips start at 86400, `DeleteGaps` closes the gaps. `ExportFrame` takes a relative offset and accepts 0 through the last frame.
|
|
29
|
+
- **Timeline.AddMarker** at relative 0 writes the marker. The silent success is **TimelineItem.AddMarker(0)** on the clip that sits at `StartFrame` (True, nothing written), the same family as #34.
|
|
30
|
+
- **MediaPool.AddToPhotoAlbum** returns None, and the album stays empty. `CreatePhotoAlbumFromPhotos` placed two photos in the same session.
|
|
31
|
+
- **TimelineItem.SetPosition** still returns False, and **Timeline.MoveItems** is not callable.
|
|
32
|
+
- **TimelineItem.SetLeftOffset** stays as the original destructive readback. The clip was at frame 400 on a timeline whose `StartFrame` was 86400, and it was not re-run.
|
|
33
|
+
- The **recordFrame** entry now records the duration-0 timeline that survives a reopen. `append_to_timeline` already refuses an absolute `recordFrame` below the timeline start. That refusal has been in place since v2.103.5.
|
|
34
|
+
- The limitations report was regenerated (43 missing capabilities, 66 bugs).
|
|
35
|
+
|
|
36
|
+
### Validation
|
|
37
|
+
|
|
38
|
+
- Focused unit tests: the withdrawn entries are not `submit` bugs, the `TimelineItem` marker is, a 21.0.3.7 subtitle clipInfo never reaches `AppendToTimeline`, 21.0.4.5 is refused with it, and 19.1.3.7 still forwards.
|
|
39
|
+
- Static checks: API parity, limitations and read/write drift guards, agent rules, undefined names, duplicate definitions, action-list drift, panel docs, tool counts, and release-surface drift.
|
|
40
|
+
- Live Resolve on this machine is Studio 19.1.3.7. The refusal applies at 21.0 and above, so it was not exercised against the open project. The 21.0.3.7 crash and the 21.1.2.10 re-measurement were not reproduced here.
|
|
41
|
+
- The control-panel guide was reviewed. No navigation or diagnostic card changed, so screenshots were not regenerated.
|
|
42
|
+
|
|
5
43
|
## What's New in v4.18.4 — Silent Resolve calls from #336 are on the ledger
|
|
6
44
|
|
|
7
45
|
No tool behavior changed. Six calls reported on Studio 21.1.2.10 return
|
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
|
-
> 本翻译对应 v4.18.
|
|
15
|
+
> 本翻译对应 v4.18.6 版 README。如与英文原版有出入,以 [英文原版](README.md) 为准。
|
|
16
16
|
|
|
17
17
|
一个 Model Context Protocol (MCP) 服务器,让 AI 助手通过官方脚本 API 控制 DaVinci Resolve Studio(达芬奇)。它提供完整的 API 覆盖,外加带护栏的工作流助手,涵盖剪辑、媒体池整理、渲染设置、审阅标记、调色、Fusion、Fairlight、项目生命周期任务、扩展开发,以及不碰源媒体的媒体分析。
|
|
18
18
|
|
package/docs/SKILL.md
CHANGED
|
@@ -2306,12 +2306,13 @@ media_pool(action="append_to_timeline", params={"clip_infos": [
|
|
|
2306
2306
|
]})
|
|
2307
2307
|
```
|
|
2308
2308
|
|
|
2309
|
-
A clipInfo whose MediaPoolItem Type is `Subtitle` is refused on Resolve 21.
|
|
2309
|
+
A clipInfo whose MediaPoolItem Type is `Subtitle` is refused on Resolve 21.0
|
|
2310
2310
|
and above, and when the connected version cannot be read, with
|
|
2311
|
-
`SUBTITLE_APPEND_CRASH`. On Studio 21.1.2.10 that call
|
|
2312
|
-
(`Sm2MpObject.cpp:546`, issue #335). The plain `clip_ids` form
|
|
2313
|
-
and on
|
|
2314
|
-
|
|
2311
|
+
`SUBTITLE_APPEND_CRASH`. On Studio 21.1.2.10 and on free 21.0.3.7 that call
|
|
2312
|
+
aborts Resolve (`Sm2MpObject.cpp:546`, issue #335). The plain `clip_ids` form
|
|
2313
|
+
does not crash, and on 21.1.2.10 it also places nothing. Builds older than
|
|
2314
|
+
21.0 still forward the clipInfo. Studio 21.0.4.5 was reported working
|
|
2315
|
+
(issue #169) and is refused anyway: it is one patch away from the crash.
|
|
2315
2316
|
|
|
2316
2317
|
When Resolve answers `AppendToTimeline` with None/False/[], either form fails
|
|
2317
2318
|
with `APPEND_TO_TIMELINE_FAILED`, not `success` with `count: 0`, and keeps
|
|
@@ -12,7 +12,7 @@ that none exists).
|
|
|
12
12
|
|
|
13
13
|
**Verified on:** DaVinci Resolve Studio 21.0.2
|
|
14
14
|
|
|
15
|
-
**Totals:** 43 missing capabilities,
|
|
15
|
+
**Totals:** 43 missing capabilities, 66 bugs / unreliable behaviors.
|
|
16
16
|
|
|
17
17
|
The authoritative source is the runtime-queryable `api_truth` ledger
|
|
18
18
|
(`resolve_control api_truth "<query>"`); this document is generated from
|
|
@@ -181,8 +181,8 @@ equivalent, blocking full automation.
|
|
|
181
181
|
### Speech recognition engine selection and SRT import
|
|
182
182
|
|
|
183
183
|
- **Object:** `Timeline`
|
|
184
|
-
- **Behavior:** Timeline.CreateSubtitlesFromAudio(autoCaptionSettings) always uses the built-in Resolve speech recognition engine. There is no API parameter to select an alternative provider (e.g. whisper-cli, Google Speech, AWS Transcribe). The language selection via resolve.AUTO_CAPTION_LANGUAGE_* is the only customization; the engine itself cannot be changed. There is no dedicated subtitle import method. MediaPool.ImportMedia(srt) + AppendToTimeline was reported working on Studio 21.0.4.5 (issue #169). On Studio 21.1.2.10 the clipInfo form of that append aborts Resolve and the plain form places nothing (issue #335). Whether either route carries word timing for animated presets has not been verified; SRT contains only cue timing.
|
|
185
|
-
- **Workaround / current handling:** Use Resolve's engine for CreateSubtitlesFromAudio. For external SRT on 21.
|
|
184
|
+
- **Behavior:** Timeline.CreateSubtitlesFromAudio(autoCaptionSettings) always uses the built-in Resolve speech recognition engine. There is no API parameter to select an alternative provider (e.g. whisper-cli, Google Speech, AWS Transcribe). The language selection via resolve.AUTO_CAPTION_LANGUAGE_* is the only customization; the engine itself cannot be changed. There is no dedicated subtitle import method. MediaPool.ImportMedia(srt) + AppendToTimeline was reported working on Studio 21.0.4.5 (issue #169). On Studio 21.1.2.10 the clipInfo form of that append aborts Resolve and the plain form places nothing, and the same abort was reported on free 21.0.3.7 (issue #335). Whether either route carries word timing for animated presets has not been verified; SRT contains only cue timing.
|
|
185
|
+
- **Workaround / current handling:** Use Resolve's engine for CreateSubtitlesFromAudio. For external SRT on 21.0 and newer, import through the UI. clipInfo append of a subtitle item is refused on 21.0+ (see MediaPool.AppendToTimeline subtitle clipInfo). Use project_db write_captions for explicit word timings with Resolve fully quit; do not assume SRT supplies them.
|
|
186
186
|
- **Tags:** missing-method, subtitle, transcription, speech-recognition, asr
|
|
187
187
|
|
|
188
188
|
### Media Pool folder rename
|
|
@@ -577,44 +577,26 @@ values, or automation-hostile modal prompts.
|
|
|
577
577
|
|
|
578
578
|
- **Object:** `MediaPool`
|
|
579
579
|
- **Signature:** `([{clipInfo}]) -> [TimelineItem]`
|
|
580
|
-
- **Behavior:** On Studio 21.1.2.10 (Windows), AppendToTimeline with a clipInfo dict for an imported SRT MediaPoolItem (Type Subtitle) aborts Resolve: assertion at Sm2MpObject.cpp:546, reproduced 2/2. The call hangs, then the process is gone. The plain list form AppendToTimeline([item]) does not crash and places nothing. ImportMedia(srt) + AppendToTimeline was reported working on Studio 21.0.4.5 (issue #169). Which clipInfo field triggers the abort was not isolated.
|
|
581
|
-
- **Workaround / current handling:** media_pool append_to_timeline, the granular append_to_timeline, and the other clipInfo builders refuse a Type=Subtitle item on Resolve 21.
|
|
580
|
+
- **Behavior:** On Studio 21.1.2.10 (Windows), AppendToTimeline with a clipInfo dict for an imported SRT MediaPoolItem (Type Subtitle) aborts Resolve: assertion at Sm2MpObject.cpp:546, reproduced 2/2. The call hangs, then the process is gone. The plain list form AppendToTimeline([item]) does not crash and places nothing. The same abort was reported on free 21.0.3.7 (macOS), once with media_type and once without. ImportMedia(srt) + AppendToTimeline was reported working on Studio 21.0.4.5 (issue #169). Which clipInfo field triggers the abort was not isolated. 21.0.0 through 21.0.2, 21.0.4, 21.1.0, and 21.1.1 were not measured.
|
|
581
|
+
- **Workaround / current handling:** media_pool append_to_timeline, the granular append_to_timeline, and the other clipInfo builders refuse a Type=Subtitle item on Resolve 21.0 and above, and when the connected version cannot be read, with SUBTITLE_APPEND_CRASH, before AppendToTimeline is called. On a build older than 21.0 the call is still forwarded. Import the SRT through the UI.
|
|
582
582
|
- **Reference:** [issue #335](https://github.com/samuelgursky/davinci-resolve-mcp/issues/335)
|
|
583
583
|
- **Tags:** crash, subtitle, timeline, silent-failure
|
|
584
584
|
|
|
585
|
-
### Timeline.DeleteGaps
|
|
586
|
-
|
|
587
|
-
- **Object:** `Timeline`
|
|
588
|
-
- **Signature:** `() -> bool`
|
|
589
|
-
- **Behavior:** On Studio 21.1.2.10 (Windows), DeleteGaps() returned True and left every clip start unchanged, with gaps at 0/200 and again at 0/200/400. This server does not call DeleteGaps. Not re-measured here.
|
|
590
|
-
- **Workaround / current handling:** Read the clip starts before and after. Treat equal readings as failure even when the call returned True. Close the gaps in the Edit page until a build shows the starts actually move.
|
|
591
|
-
- **Reference:** [issue #336](https://github.com/samuelgursky/davinci-resolve-mcp/issues/336)
|
|
592
|
-
- **Tags:** silent-failure, timeline, edit
|
|
593
|
-
|
|
594
585
|
### MediaPool.AddToPhotoAlbum
|
|
595
586
|
|
|
596
587
|
- **Object:** `MediaPool`
|
|
597
588
|
- **Signature:** `(clips) -> [MediaPoolItem]`
|
|
598
|
-
- **Behavior:** On Studio 21.1.2.10 (Windows), AddToPhotoAlbum returned
|
|
589
|
+
- **Behavior:** On Studio 21.1.2.10 (Windows), re-measured by the reporter, AddToPhotoAlbum returned None and the album stayed at 0 photos across three argument forms. CreatePhotoAlbumFromPhotos returned an album with 2 photos in the same session and the same project. On Studio 19.1.3.7 (2026-11-01, dir() of the open project's MediaPool), AddToPhotoAlbum, CreateEmptyPhotoAlbum, CreatePhotoAlbumFromPhotos, and GetCurrentPhotoAlbum are absent.
|
|
599
590
|
- **Workaround / current handling:** On 21.1.2, count the album's photos before and after and treat an unchanged count as failure. On 19.1.3.7 the methods are not there; do not call them.
|
|
600
591
|
- **Reference:** [issue #336](https://github.com/samuelgursky/davinci-resolve-mcp/issues/336)
|
|
601
592
|
- **Tags:** silent-failure, media-pool, missing-method
|
|
602
593
|
|
|
603
|
-
### Timeline.ExportFrame
|
|
604
|
-
|
|
605
|
-
- **Object:** `Timeline`
|
|
606
|
-
- **Signature:** `(frameOffset, settings) -> dict`
|
|
607
|
-
- **Behavior:** On Studio 21.1.2.10 (Windows), Timeline.ExportFrame returned {'success': False, 'error': 'frameOffset is out of range for the timeline'} for offsets 0, 5, 100, 200, 216000, and 216010. The same frames exported through TimelineItem.ExportFrame. The timeline reported StartTimecode 01:00:00:00, StartFrame 86400, and EndFrame 86400. Not re-measured here; this machine had no current timeline to dir().
|
|
608
|
-
- **Workaround / current handling:** Export through TimelineItem.ExportFrame. If GetStartFrame() and GetEndFrame() are equal, the timeline export has no frame range to address.
|
|
609
|
-
- **Reference:** [issue #336](https://github.com/samuelgursky/davinci-resolve-mcp/issues/336)
|
|
610
|
-
- **Tags:** silent-failure, timeline, export
|
|
611
|
-
|
|
612
594
|
### TimelineItem.SetPosition / Timeline.MoveItems
|
|
613
595
|
|
|
614
596
|
- **Object:** `TimelineItem / Timeline`
|
|
615
597
|
- **Signature:** `SetPosition(...) -> bool; MoveItems(...) -> bool`
|
|
616
|
-
- **Behavior:** On Studio 21.1.2.10 (Windows), TimelineItem.SetPosition
|
|
617
|
-
- **Workaround / current handling:** Do not treat False from
|
|
598
|
+
- **Behavior:** On Studio 21.1.2.10 (Windows), re-measured by the reporter, TimelineItem.SetPosition returned False for 0, 100, and -50, and the clip start was unchanged. Timeline.MoveItems was not callable. The first report had both methods returning False across ints, floats, a no-op start, both moveLinkedItems values, and with or without subframePrecision, while Timeline.SetCurrentTimecode succeeded in that session. This server does not call either method. Not re-measured here.
|
|
599
|
+
- **Workaround / current handling:** Do not treat False from SetPosition as a bad argument. On 21.1.2.10 it returned False for every input tried, and MoveItems was not callable. Move the clip in the Edit page.
|
|
618
600
|
- **Reference:** [issue #336](https://github.com/samuelgursky/davinci-resolve-mcp/issues/336)
|
|
619
601
|
- **Tags:** unreliable-return, timeline, edit
|
|
620
602
|
|
|
@@ -622,19 +604,19 @@ values, or automation-hostile modal prompts.
|
|
|
622
604
|
|
|
623
605
|
- **Object:** `TimelineItem`
|
|
624
606
|
- **Signature:** `(offset, ...) -> bool`
|
|
625
|
-
- **Behavior:** On Studio 21.1.2.10 (Windows), SetLeftOffset(5.0, False, True) on a clip at frame 400 with duration 120 returned True, moved the start to about -86000, and grew the duration to about 86515. Setting the offset back to 0 left the clip at about -86000. The call extends the clip from source media. It does not nudge the edit point, and the edit does not come back. A live gap probe on an older build recorded SetLeftOffset as absent. This server only reads GetLeftOffset. Not re-measured here.
|
|
607
|
+
- **Behavior:** On Studio 21.1.2.10 (Windows), SetLeftOffset(5.0, False, True) on a clip at frame 400 with duration 120 returned True, moved the start to about -86000, and grew the duration to about 86515. Setting the offset back to 0 left the clip at about -86000. The call extends the clip from source media. It does not nudge the edit point, and the edit does not come back. The clip was at frame 400 on a timeline whose StartFrame was 86400, so it sat outside the timeline's declared range; the reporter did not re-run it, because the first call was destructive, and the entry stands as that readback. A live gap probe on an older build recorded SetLeftOffset as absent. This server only reads GetLeftOffset. Not re-measured here.
|
|
626
608
|
- **Workaround / current handling:** Do not call SetLeftOffset to trim a handle. There is no API undo. Any future wrapper has to say that the call extends from source media and require an explicit confirm before it runs.
|
|
627
609
|
- **Reference:** [issue #336](https://github.com/samuelgursky/davinci-resolve-mcp/issues/336)
|
|
628
610
|
- **Tags:** silent-failure, timeline, edit, destructive
|
|
629
611
|
|
|
630
|
-
###
|
|
612
|
+
### TimelineItem.AddMarker at relative frame 0
|
|
631
613
|
|
|
632
|
-
- **Object:** `
|
|
614
|
+
- **Object:** `TimelineItem`
|
|
633
615
|
- **Signature:** `(frameId, color, name, note, duration, customData) -> bool`
|
|
634
|
-
- **Behavior:** On Studio 21.1.2.10 (Windows), with StartFrame 86400
|
|
635
|
-
- **Workaround / current handling:**
|
|
616
|
+
- **Behavior:** On Studio 21.1.2.10 (Windows), re-measured by the reporter with StartFrame 86400: Timeline.AddMarker(0) and Timeline.AddMarker(200) both returned True and the marker was present. TimelineItem.AddMarker(0) on the clip sitting at that StartFrame returned True and wrote nothing (GetMarkers count unchanged, the marker name absent). Same family as issue #34. The first filing recorded Timeline.AddMarker(0) returning False; that was the wrong object. This server already reports success false when AddMarker returns false. Not re-measured here.
|
|
617
|
+
- **Workaround / current handling:** Read the marker back with GetMarkers. True from TimelineItem.AddMarker at relative frame 0 is not evidence the marker exists. Timeline.AddMarker at relative 0 did write the marker on this build.
|
|
636
618
|
- **Reference:** [issue #336](https://github.com/samuelgursky/davinci-resolve-mcp/issues/336)
|
|
637
|
-
- **Tags:**
|
|
619
|
+
- **Tags:** silent-failure, timeline, marker
|
|
638
620
|
|
|
639
621
|
### hasattr() / getattr() on Resolve API objects (attribute fabrication)
|
|
640
622
|
|
package/install.py
CHANGED
|
@@ -37,7 +37,7 @@ from src.utils.update_check import (
|
|
|
37
37
|
|
|
38
38
|
# ─── Version ──────────────────────────────────────────────────────────────────
|
|
39
39
|
|
|
40
|
-
VERSION = "4.18.
|
|
40
|
+
VERSION = "4.18.6"
|
|
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
|
@@ -320,11 +320,13 @@ function parseCDL(cdlContent) {
|
|
|
320
320
|
const results = [];
|
|
321
321
|
|
|
322
322
|
// Simple XML parsing for CDL (avoid external dependencies)
|
|
323
|
-
|
|
323
|
+
// The id attribute may be empty or absent; such corrections are still looks.
|
|
324
|
+
const correctionRegex = /<ColorCorrection(\s[^>]*?)?(?<!\/)>([\s\S]*?)<\/ColorCorrection>/gi;
|
|
324
325
|
let match;
|
|
325
326
|
|
|
326
327
|
while ((match = correctionRegex.exec(cdlContent)) !== null) {
|
|
327
|
-
const
|
|
328
|
+
const idMatch = (match[1] || '').match(/(?:^|\s)id\s*=\s*"([^"]*)"/);
|
|
329
|
+
const id = idMatch ? idMatch[1] : '';
|
|
328
330
|
const content = match[2];
|
|
329
331
|
|
|
330
332
|
const cdlValues = {
|
package/src/granular/common.py
CHANGED
|
@@ -93,7 +93,7 @@ if not logging.getLogger().handlers:
|
|
|
93
93
|
handlers=[logging.StreamHandler()],
|
|
94
94
|
)
|
|
95
95
|
|
|
96
|
-
VERSION = "4.18.
|
|
96
|
+
VERSION = "4.18.6"
|
|
97
97
|
logger = logging.getLogger("davinci-resolve-mcp")
|
|
98
98
|
logger.info(f"Starting DaVinci Resolve MCP Server v{VERSION}")
|
|
99
99
|
logger.info(f"Detected platform: {get_platform()}")
|
|
@@ -195,9 +195,9 @@ def append_to_timeline(
|
|
|
195
195
|
relative to the current timeline start frame by default; pass
|
|
196
196
|
record_frame_mode="absolute" for raw Resolve recordFrame values.
|
|
197
197
|
Returns timeline_item_id per appended item.
|
|
198
|
-
A MediaPoolItem whose Type is Subtitle is refused on Resolve 21.
|
|
199
|
-
with code SUBTITLE_APPEND_CRASH. On Studio 21.1.2.10
|
|
200
|
-
aborts Resolve (issue #335).
|
|
198
|
+
A MediaPoolItem whose Type is Subtitle is refused on Resolve 21.0+
|
|
199
|
+
with code SUBTITLE_APPEND_CRASH. On Studio 21.1.2.10 and on free
|
|
200
|
+
21.0.3.7 that clipInfo aborts Resolve (issue #335).
|
|
201
201
|
"""
|
|
202
202
|
project, mp, err = _get_mp()
|
|
203
203
|
if err:
|
package/src/server.py
CHANGED
|
@@ -11,7 +11,7 @@ Usage:
|
|
|
11
11
|
python src/server.py --full # Start the 377-tool granular server instead
|
|
12
12
|
"""
|
|
13
13
|
|
|
14
|
-
VERSION = "4.18.
|
|
14
|
+
VERSION = "4.18.6"
|
|
15
15
|
|
|
16
16
|
import base64
|
|
17
17
|
import os
|
|
@@ -3945,7 +3945,7 @@ def _payload_has_subtitle_clipinfo(payload) -> bool:
|
|
|
3945
3945
|
|
|
3946
3946
|
|
|
3947
3947
|
def _subtitle_append_block(payload, index=None):
|
|
3948
|
-
"""Structured refusal for a subtitle clipInfo that would abort Resolve 21.
|
|
3948
|
+
"""Structured refusal for a subtitle clipInfo that would abort Resolve 21.0+.
|
|
3949
3949
|
|
|
3950
3950
|
None when the payload may be forwarded. Clip objects, the plain
|
|
3951
3951
|
AppendToTimeline([item]) form, are not clipInfos and are not refused.
|
|
@@ -3966,11 +3966,11 @@ def _subtitle_append_block(payload, index=None):
|
|
|
3966
3966
|
retryable=False,
|
|
3967
3967
|
reason=subtitle_append_guard.MEASURED,
|
|
3968
3968
|
remediation=(
|
|
3969
|
-
"Do not send a clipInfo for a subtitle MediaPoolItem on Resolve 21.
|
|
3970
|
-
"On Studio 21.1.2.10
|
|
3971
|
-
"does not crash, and on
|
|
3972
|
-
"SRT in the Resolve UI, or use
|
|
3973
|
-
"fully quit."
|
|
3969
|
+
"Do not send a clipInfo for a subtitle MediaPoolItem on Resolve 21.0 "
|
|
3970
|
+
"or newer. On Studio 21.1.2.10 and on free 21.0.3.7 that call aborts "
|
|
3971
|
+
"Resolve. The plain clip_ids form does not crash, and on 21.1.2.10 it "
|
|
3972
|
+
"also places nothing. Import the SRT in the Resolve UI, or use "
|
|
3973
|
+
"project_db write_captions with Resolve fully quit."
|
|
3974
3974
|
),
|
|
3975
3975
|
)
|
|
3976
3976
|
|
|
@@ -23334,10 +23334,11 @@ def media_pool(action: str, params: Optional[Dict[str, Any]] = None) -> Dict[str
|
|
|
23334
23334
|
record_frame is relative to the current timeline start frame by default;
|
|
23335
23335
|
pass record_frame_mode="absolute" for raw Resolve recordFrame values.
|
|
23336
23336
|
Returns timeline_item_id per item.
|
|
23337
|
-
A MediaPoolItem whose Type is Subtitle is refused on Resolve 21.
|
|
23337
|
+
A MediaPoolItem whose Type is Subtitle is refused on Resolve 21.0+
|
|
23338
23338
|
(and when the version cannot be read) with SUBTITLE_APPEND_CRASH,
|
|
23339
|
-
before AppendToTimeline. On Studio 21.1.2.10
|
|
23340
|
-
Resolve (issue #335). Builds older than 21.
|
|
23339
|
+
before AppendToTimeline. On Studio 21.1.2.10 and on free 21.0.3.7
|
|
23340
|
+
that clipInfo aborts Resolve (issue #335). Builds older than 21.0
|
|
23341
|
+
are still forwarded.
|
|
23341
23342
|
Either form: Resolve answering None/False/[] is APPEND_TO_TIMELINE_FAILED,
|
|
23342
23343
|
with verified_operation (the timeline readback) kept on the error;
|
|
23343
23344
|
retryable only when the readback shows nothing was appended.
|
package/src/utils/api_truth.py
CHANGED
|
@@ -1761,12 +1761,13 @@ API_TRUTH: List[Dict[str, Any]] = [
|
|
|
1761
1761
|
"MediaPool.ImportMedia(srt) + AppendToTimeline was reported "
|
|
1762
1762
|
"working on Studio 21.0.4.5 (issue #169). On Studio 21.1.2.10 "
|
|
1763
1763
|
"the clipInfo form of that append aborts Resolve and the plain "
|
|
1764
|
-
"form places nothing
|
|
1765
|
-
"
|
|
1764
|
+
"form places nothing, and the same abort was reported on free "
|
|
1765
|
+
"21.0.3.7 (issue #335). Whether either route carries word "
|
|
1766
|
+
"timing for animated presets has not been verified; SRT "
|
|
1766
1767
|
"contains only cue timing.",
|
|
1767
1768
|
"recommended": "Use Resolve's engine for CreateSubtitlesFromAudio. "
|
|
1768
|
-
"For external SRT on 21.
|
|
1769
|
-
"clipInfo append of a subtitle item is refused on 21.
|
|
1769
|
+
"For external SRT on 21.0 and newer, import through the UI. "
|
|
1770
|
+
"clipInfo append of a subtitle item is refused on 21.0+ "
|
|
1770
1771
|
"(see MediaPool.AppendToTimeline subtitle clipInfo). "
|
|
1771
1772
|
"Use project_db write_captions for explicit word timings "
|
|
1772
1773
|
"with Resolve fully quit; do not assume SRT supplies them.",
|
|
@@ -1783,48 +1784,53 @@ API_TRUTH: List[Dict[str, Any]] = [
|
|
|
1783
1784
|
"Subtitle) aborts Resolve: assertion at Sm2MpObject.cpp:546, "
|
|
1784
1785
|
"reproduced 2/2. The call hangs, then the process is gone. "
|
|
1785
1786
|
"The plain list form AppendToTimeline([item]) does not crash "
|
|
1786
|
-
"and places nothing.
|
|
1787
|
-
"
|
|
1788
|
-
"
|
|
1789
|
-
"21.
|
|
1787
|
+
"and places nothing. The same abort was reported on free "
|
|
1788
|
+
"21.0.3.7 (macOS), once with media_type and once without. "
|
|
1789
|
+
"ImportMedia(srt) + AppendToTimeline was reported working on "
|
|
1790
|
+
"Studio 21.0.4.5 (issue #169). Which clipInfo field triggers "
|
|
1791
|
+
"the abort was not isolated. 21.0.0 through 21.0.2, 21.0.4, "
|
|
1792
|
+
"21.1.0, and 21.1.1 were not measured.",
|
|
1790
1793
|
"recommended": "media_pool append_to_timeline, the granular "
|
|
1791
1794
|
"append_to_timeline, and the other clipInfo builders "
|
|
1792
|
-
"refuse a Type=Subtitle item on Resolve 21.
|
|
1795
|
+
"refuse a Type=Subtitle item on Resolve 21.0 and above, "
|
|
1793
1796
|
"and when the connected version cannot be read, with "
|
|
1794
1797
|
"SUBTITLE_APPEND_CRASH, before AppendToTimeline is called. "
|
|
1795
|
-
"On a build older than 21.
|
|
1796
|
-
"Import the SRT through the UI
|
|
1798
|
+
"On a build older than 21.0 the call is still forwarded. "
|
|
1799
|
+
"Import the SRT through the UI.",
|
|
1797
1800
|
"tags": ["crash", "subtitle", "timeline", "silent-failure"],
|
|
1798
1801
|
"submit": "bug",
|
|
1799
1802
|
"issue": 335,
|
|
1800
1803
|
"mitigation": ["subtitle_append_guard"],
|
|
1801
|
-
"verified_on": "Reported on
|
|
1804
|
+
"verified_on": "Reported on Studio 21.1.2.10 (Windows) and free 21.0.3.7 (macOS); not re-measured here",
|
|
1802
1805
|
},
|
|
1803
1806
|
{
|
|
1804
1807
|
"symbol": "Timeline.DeleteGaps",
|
|
1805
1808
|
"object": "Timeline",
|
|
1806
1809
|
"signature": "() -> bool",
|
|
1807
|
-
"reality": "
|
|
1808
|
-
"and left
|
|
1809
|
-
"
|
|
1810
|
-
"
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
"
|
|
1816
|
-
|
|
1810
|
+
"reality": "WITHDRAWN. The first report — DeleteGaps() returned True "
|
|
1811
|
+
"and left clip starts at 0/200/400 unchanged — was measured "
|
|
1812
|
+
"on a timeline whose clips sat before StartFrame 86400, so "
|
|
1813
|
+
"StartFrame and EndFrame were both 86400. Re-measured by "
|
|
1814
|
+
"the reporter on Studio 21.1.2.10 with recordFrame anchored "
|
|
1815
|
+
"at 86400: clips before [86400, 86600, 86800], DeleteGaps() "
|
|
1816
|
+
"returned True, clips after [86400, 86520, 86640]. The call "
|
|
1817
|
+
"closes gaps. Not re-measured here.",
|
|
1818
|
+
"recommended": "Call DeleteGaps. The original failure was the timeline, "
|
|
1819
|
+
"not this method. See the recordFrame entry for the "
|
|
1820
|
+
"placement that built that timeline.",
|
|
1821
|
+
"tags": ["timeline", "edit"],
|
|
1817
1822
|
"issue": 336,
|
|
1818
|
-
"verified_on": "
|
|
1823
|
+
"verified_on": "Withdrawn on the reporter's re-measurement, Studio 21.1.2.10 (Windows); not re-measured here",
|
|
1819
1824
|
},
|
|
1820
1825
|
{
|
|
1821
1826
|
"symbol": "MediaPool.AddToPhotoAlbum",
|
|
1822
1827
|
"object": "MediaPool",
|
|
1823
1828
|
"signature": "(clips) -> [MediaPoolItem]",
|
|
1824
|
-
"reality": "On Studio 21.1.2.10 (Windows),
|
|
1825
|
-
"and the album
|
|
1826
|
-
"
|
|
1827
|
-
"
|
|
1829
|
+
"reality": "On Studio 21.1.2.10 (Windows), re-measured by the reporter, "
|
|
1830
|
+
"AddToPhotoAlbum returned None and the album stayed at 0 "
|
|
1831
|
+
"photos across three argument forms. CreatePhotoAlbumFromPhotos "
|
|
1832
|
+
"returned an album with 2 photos in the same session and the "
|
|
1833
|
+
"same project. On Studio 19.1.3.7 "
|
|
1828
1834
|
"(2026-11-01, dir() of the open project's MediaPool), "
|
|
1829
1835
|
"AddToPhotoAlbum, CreateEmptyPhotoAlbum, "
|
|
1830
1836
|
"CreatePhotoAlbumFromPhotos, and GetCurrentPhotoAlbum are "
|
|
@@ -1835,43 +1841,46 @@ API_TRUTH: List[Dict[str, Any]] = [
|
|
|
1835
1841
|
"tags": ["silent-failure", "media-pool", "missing-method"],
|
|
1836
1842
|
"submit": "bug",
|
|
1837
1843
|
"issue": 336,
|
|
1838
|
-
"verified_on": "dir() on Studio 19.1.3.7; the
|
|
1844
|
+
"verified_on": "dir() on Studio 19.1.3.7; the None result is the reporter's re-measurement on 21.1.2.10 and was not re-measured here",
|
|
1839
1845
|
},
|
|
1840
1846
|
{
|
|
1841
1847
|
"symbol": "Timeline.ExportFrame",
|
|
1842
1848
|
"object": "Timeline",
|
|
1843
1849
|
"signature": "(frameOffset, settings) -> dict",
|
|
1844
|
-
"reality": "
|
|
1845
|
-
"
|
|
1846
|
-
"
|
|
1847
|
-
"
|
|
1848
|
-
"
|
|
1849
|
-
"
|
|
1850
|
-
"
|
|
1851
|
-
"
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
"
|
|
1855
|
-
|
|
1856
|
-
|
|
1850
|
+
"reality": "WITHDRAWN. frameOffset is relative to StartFrame, valid "
|
|
1851
|
+
"from 0 through EndFrame - StartFrame - 1. On Studio "
|
|
1852
|
+
"21.1.2.10 a timeline at StartFrame 86400 and EndFrame 86880 "
|
|
1853
|
+
"accepted offset 0 and offset 479 and rejected offset 480 "
|
|
1854
|
+
"and the absolute frames 86400 and 86879. The original "
|
|
1855
|
+
"report passed absolute frames, including on a timeline "
|
|
1856
|
+
"whose StartFrame and EndFrame were both 86400. The "
|
|
1857
|
+
"rejection was the right answer to that argument. Not "
|
|
1858
|
+
"re-measured here.",
|
|
1859
|
+
"recommended": "Pass a relative offset, 0 at GetStartFrame(). A caller "
|
|
1860
|
+
"that passes GetStartFrame() itself gets a rejection "
|
|
1861
|
+
"that reads like a failure. TimelineItem.ExportFrame "
|
|
1862
|
+
"addresses a clip's own frames.",
|
|
1863
|
+
"tags": ["timeline", "export"],
|
|
1857
1864
|
"issue": 336,
|
|
1858
|
-
"verified_on": "
|
|
1865
|
+
"verified_on": "Withdrawn on the reporter's re-measurement, Studio 21.1.2.10 (Windows); not re-measured here",
|
|
1859
1866
|
},
|
|
1860
1867
|
{
|
|
1861
1868
|
"symbol": "TimelineItem.SetPosition / Timeline.MoveItems",
|
|
1862
1869
|
"object": "TimelineItem / Timeline",
|
|
1863
1870
|
"signature": "SetPosition(...) -> bool; MoveItems(...) -> bool",
|
|
1864
|
-
"reality": "On Studio 21.1.2.10 (Windows),
|
|
1865
|
-
"
|
|
1866
|
-
"
|
|
1867
|
-
"
|
|
1871
|
+
"reality": "On Studio 21.1.2.10 (Windows), re-measured by the reporter, "
|
|
1872
|
+
"TimelineItem.SetPosition returned False for 0, 100, and "
|
|
1873
|
+
"-50, and the clip start was unchanged. Timeline.MoveItems "
|
|
1874
|
+
"was not callable. The first report had both methods "
|
|
1875
|
+
"returning False across ints, floats, a no-op start, both "
|
|
1868
1876
|
"moveLinkedItems values, and with or without "
|
|
1869
|
-
"subframePrecision
|
|
1870
|
-
"in
|
|
1871
|
-
"method. Not re-measured here.",
|
|
1872
|
-
"recommended": "Do not treat False from
|
|
1873
|
-
"On 21.1.2.10
|
|
1874
|
-
"Move the clip in the
|
|
1877
|
+
"subframePrecision, while Timeline.SetCurrentTimecode "
|
|
1878
|
+
"succeeded in that session. This server does not call "
|
|
1879
|
+
"either method. Not re-measured here.",
|
|
1880
|
+
"recommended": "Do not treat False from SetPosition as a bad argument. "
|
|
1881
|
+
"On 21.1.2.10 it returned False for every input tried, "
|
|
1882
|
+
"and MoveItems was not callable. Move the clip in the "
|
|
1883
|
+
"Edit page.",
|
|
1875
1884
|
"tags": ["unreliable-return", "timeline", "edit"],
|
|
1876
1885
|
"submit": "bug",
|
|
1877
1886
|
"issue": 336,
|
|
@@ -1887,7 +1896,11 @@ API_TRUTH: List[Dict[str, Any]] = [
|
|
|
1887
1896
|
"duration to about 86515. Setting the offset back to 0 "
|
|
1888
1897
|
"left the clip at about -86000. The call extends the clip "
|
|
1889
1898
|
"from source media. It does not nudge the edit point, and "
|
|
1890
|
-
"the edit does not come back.
|
|
1899
|
+
"the edit does not come back. The clip was at frame 400 on "
|
|
1900
|
+
"a timeline whose StartFrame was 86400, so it sat outside "
|
|
1901
|
+
"the timeline's declared range; the reporter did not re-run "
|
|
1902
|
+
"it, because the first call was destructive, and the entry "
|
|
1903
|
+
"stands as that readback. A live gap probe on an older "
|
|
1891
1904
|
"build recorded SetLeftOffset as absent. This server only "
|
|
1892
1905
|
"reads GetLeftOffset. Not re-measured here.",
|
|
1893
1906
|
"recommended": "Do not call SetLeftOffset to trim a handle. There is "
|
|
@@ -1900,20 +1913,24 @@ API_TRUTH: List[Dict[str, Any]] = [
|
|
|
1900
1913
|
"verified_on": "Reported on DaVinci Resolve Studio 21.1.2.10 (Windows); not re-measured here",
|
|
1901
1914
|
},
|
|
1902
1915
|
{
|
|
1903
|
-
"symbol": "
|
|
1904
|
-
"object": "
|
|
1916
|
+
"symbol": "TimelineItem.AddMarker at relative frame 0",
|
|
1917
|
+
"object": "TimelineItem",
|
|
1905
1918
|
"signature": "(frameId, color, name, note, duration, customData) -> bool",
|
|
1906
|
-
"reality": "On Studio 21.1.2.10 (Windows),
|
|
1907
|
-
"
|
|
1908
|
-
"
|
|
1909
|
-
"
|
|
1910
|
-
"
|
|
1911
|
-
"
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
"
|
|
1919
|
+
"reality": "On Studio 21.1.2.10 (Windows), re-measured by the reporter "
|
|
1920
|
+
"with StartFrame 86400: Timeline.AddMarker(0) and "
|
|
1921
|
+
"Timeline.AddMarker(200) both returned True and the marker "
|
|
1922
|
+
"was present. TimelineItem.AddMarker(0) on the clip sitting "
|
|
1923
|
+
"at that StartFrame returned True and wrote nothing "
|
|
1924
|
+
"(GetMarkers count unchanged, the marker name absent). Same "
|
|
1925
|
+
"family as issue #34. The first filing recorded "
|
|
1926
|
+
"Timeline.AddMarker(0) returning False; that was the wrong "
|
|
1927
|
+
"object. This server already reports success false when "
|
|
1928
|
+
"AddMarker returns false. Not re-measured here.",
|
|
1929
|
+
"recommended": "Read the marker back with GetMarkers. True from "
|
|
1930
|
+
"TimelineItem.AddMarker at relative frame 0 is not "
|
|
1931
|
+
"evidence the marker exists. Timeline.AddMarker at "
|
|
1932
|
+
"relative 0 did write the marker on this build.",
|
|
1933
|
+
"tags": ["silent-failure", "timeline", "marker"],
|
|
1917
1934
|
"submit": "bug",
|
|
1918
1935
|
"issue": 336,
|
|
1919
1936
|
"verified_on": "Reported on DaVinci Resolve Studio 21.1.2.10 (Windows); not re-measured here",
|
|
@@ -2562,6 +2579,13 @@ API_TRUTH: List[Dict[str, Any]] = [
|
|
|
2562
2579
|
"job-mark-range checks read clean. The only truthful "
|
|
2563
2580
|
"readback is the timeline items themselves, which report "
|
|
2564
2581
|
"their real GetStart/GetEnd — before the start frame. "
|
|
2582
|
+
"On Studio 21.1.2.10 the timeline's own range is left "
|
|
2583
|
+
"untouched as well: clips placed at absolute 0/200/400 "
|
|
2584
|
+
"while StartFrame is 86400, and StartFrame stays equal to "
|
|
2585
|
+
"EndFrame (duration 0) through SetProperty and through "
|
|
2586
|
+
"closing and reopening the timeline (issue #336). A call "
|
|
2587
|
+
"that addresses the timeline by that declared range then "
|
|
2588
|
+
"behaves as it does on an empty timeline. "
|
|
2565
2589
|
"Verified on "
|
|
2566
2590
|
"Studio 20.3.2.9 (v2.17.1 probe: relative record_frame 12 "
|
|
2567
2591
|
"landed at 86400 + 12 = 86412, absolute preserved 86484), "
|
|
@@ -240,8 +240,8 @@ def _probe_pool_clip_marker_roundtrip(ctx):
|
|
|
240
240
|
def _probe_pool_append_to_timeline(ctx):
|
|
241
241
|
from src.utils.subtitle_append_guard import is_subtitle_item
|
|
242
242
|
if is_subtitle_item(ctx.clip):
|
|
243
|
-
return ("refused: a subtitle clipInfo aborts Resolve 21.1.2 "
|
|
244
|
-
"(Sm2MpObject.cpp:546, issue #335)")
|
|
243
|
+
return ("refused: a subtitle clipInfo aborts Resolve on 21.1.2 "
|
|
244
|
+
"and on free 21.0.3.7 (Sm2MpObject.cpp:546, issue #335)")
|
|
245
245
|
pool = ctx.project.GetMediaPool()
|
|
246
246
|
before = ctx.timeline.GetEndFrame()
|
|
247
247
|
frames = int(ctx.clip.GetClipProperty("Frames") or 0)
|
package/src/utils/split_edits.py
CHANGED
|
@@ -46,13 +46,23 @@ SHAPE_STRAIGHT = "straight"
|
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
def _edit_points(items: Sequence[Mapping[str, Any]]) -> List[int]:
|
|
49
|
-
"""Cut points on a track — every boundary where one item meets the next.
|
|
50
|
-
|
|
49
|
+
"""Cut points on a track — every boundary where one item meets the next.
|
|
50
|
+
|
|
51
|
+
The track's first frame and its last are where it begins and ends, not joins.
|
|
52
|
+
"""
|
|
53
|
+
starts, ends = set(), set()
|
|
51
54
|
for item in items:
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
55
|
+
start = item.get("timeline_start_frame")
|
|
56
|
+
end = item.get("timeline_end_frame")
|
|
57
|
+
if start is not None:
|
|
58
|
+
starts.add(int(start))
|
|
59
|
+
if end is not None:
|
|
60
|
+
ends.add(int(end))
|
|
61
|
+
frames = starts | ends
|
|
62
|
+
if starts:
|
|
63
|
+
frames.discard(min(starts))
|
|
64
|
+
if ends:
|
|
65
|
+
frames.discard(max(ends))
|
|
56
66
|
return sorted(frames)
|
|
57
67
|
|
|
58
68
|
|
|
@@ -6,10 +6,11 @@ aborts the process: assertion at ``Sm2MpObject.cpp:546``, reproduced twice
|
|
|
6
6
|
(issue #335). The plain list form, ``AppendToTimeline([item])``, does not
|
|
7
7
|
crash, and on that build it also places nothing.
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
21.0.4.5 (issue #169)
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
The same abort was then reported on free 21.0.3.7 (macOS, issue #335).
|
|
10
|
+
Studio 21.0.4.5 had been reported working (issue #169), one patch later and
|
|
11
|
+
on a different edition, which is not a narrow enough gap to keep forwarding
|
|
12
|
+
a call that kills Resolve. Every 21.0 build and newer is refused, and so is
|
|
13
|
+
a subtitle clipInfo when the connected version cannot be read.
|
|
13
14
|
"""
|
|
14
15
|
|
|
15
16
|
from typing import Any, Optional
|
|
@@ -17,14 +18,16 @@ from typing import Any, Optional
|
|
|
17
18
|
from src.utils.resolve_versions import at_least
|
|
18
19
|
|
|
19
20
|
#: First build line on which the clipInfo form is refused.
|
|
20
|
-
FLOOR = "21.
|
|
21
|
+
FLOOR = "21.0"
|
|
21
22
|
|
|
22
23
|
MEASURED = (
|
|
23
24
|
"Reported on DaVinci Resolve Studio 21.1.2.10 (Windows), reproduced 2/2: "
|
|
24
25
|
"MediaPool.AppendToTimeline with a clipInfo for a Type=Subtitle MediaPoolItem "
|
|
25
26
|
"aborts Resolve (Sm2MpObject.cpp:546). The plain clip list does not crash and "
|
|
26
|
-
"places nothing.
|
|
27
|
-
"
|
|
27
|
+
"places nothing. The same abort was reported on free 21.0.3.7 (macOS, "
|
|
28
|
+
"issue #335), once with media_type and once without. ImportMedia + "
|
|
29
|
+
"AppendToTimeline was reported working on Studio 21.0.4.5 (issue #169). "
|
|
30
|
+
"The refusal covers that build too: it is one patch away from a crash."
|
|
28
31
|
)
|
|
29
32
|
|
|
30
33
|
|
|
@@ -81,11 +84,12 @@ def refusal_message(payload: Any, version: Any, index: Optional[int] = None) ->
|
|
|
81
84
|
return (
|
|
82
85
|
f"clip_infos[{shown}] is a subtitle MediaPoolItem, and the connected "
|
|
83
86
|
"Resolve version could not be read. AppendToTimeline with a clipInfo "
|
|
84
|
-
"for that item aborts Resolve Studio 21.1.2.10 (Sm2MpObject.cpp:546
|
|
85
|
-
"issue #335), so the call is refused."
|
|
87
|
+
"for that item aborts Resolve on Studio 21.1.2.10 (Sm2MpObject.cpp:546) "
|
|
88
|
+
"and on free 21.0.3.7 (issue #335), so the call is refused."
|
|
86
89
|
)
|
|
87
90
|
return (
|
|
88
91
|
f"clip_infos[{shown}] is a subtitle MediaPoolItem. On Resolve {version}, "
|
|
89
|
-
"AppendToTimeline with a clipInfo for that item is refused:
|
|
90
|
-
"21.1.2.10
|
|
92
|
+
"AppendToTimeline with a clipInfo for that item is refused: it aborts "
|
|
93
|
+
"Resolve on Studio 21.1.2.10 (Sm2MpObject.cpp:546) and on free 21.0.3.7 "
|
|
94
|
+
"(issue #335)."
|
|
91
95
|
)
|