davinci-resolve-mcp 4.18.3 → 4.18.5
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 +66 -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 +41 -5
- package/install.py +1 -1
- package/package.json +1 -1
- package/resolve-advanced/package.json +1 -1
- 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 +153 -11
- 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,72 @@
|
|
|
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.5 — The #336 ledger matches the re-measurement
|
|
6
|
+
|
|
7
|
+
@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`.
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- **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.
|
|
12
|
+
|
|
13
|
+
### Documentation
|
|
14
|
+
|
|
15
|
+
- **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.
|
|
16
|
+
- **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.
|
|
17
|
+
- **MediaPool.AddToPhotoAlbum** returns None, and the album stays empty. `CreatePhotoAlbumFromPhotos` placed two photos in the same session.
|
|
18
|
+
- **TimelineItem.SetPosition** still returns False, and **Timeline.MoveItems** is not callable.
|
|
19
|
+
- **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.
|
|
20
|
+
- 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.
|
|
21
|
+
- The limitations report was regenerated (43 missing capabilities, 66 bugs).
|
|
22
|
+
|
|
23
|
+
### Validation
|
|
24
|
+
|
|
25
|
+
- 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.
|
|
26
|
+
- 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.
|
|
27
|
+
- 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.
|
|
28
|
+
- The control-panel guide was reviewed. No navigation or diagnostic card changed, so screenshots were not regenerated.
|
|
29
|
+
|
|
30
|
+
## What's New in v4.18.4 — Silent Resolve calls from #336 are on the ledger
|
|
31
|
+
|
|
32
|
+
No tool behavior changed. Six calls reported on Studio 21.1.2.10 return
|
|
33
|
+
success, or an empty list, without doing the work their names suggest. They
|
|
34
|
+
are now `submit: bug` entries, so `lookup_api_truth` finds them before an
|
|
35
|
+
agent calls them.
|
|
36
|
+
|
|
37
|
+
### Documentation
|
|
38
|
+
|
|
39
|
+
- **Timeline.DeleteGaps** returns True and leaves clip starts unchanged.
|
|
40
|
+
- **MediaPool.AddToPhotoAlbum** returns `[]` and the album stays empty.
|
|
41
|
+
`CreatePhotoAlbumFromPhotos` placed photos in the same session. On Studio
|
|
42
|
+
19.1.3.7 those photo-album methods are absent from `dir(MediaPool)`.
|
|
43
|
+
- **Timeline.ExportFrame** reports every offset out of range when
|
|
44
|
+
`GetStartFrame()` and `GetEndFrame()` are both 86400.
|
|
45
|
+
`TimelineItem.ExportFrame` exported the same frames.
|
|
46
|
+
- **TimelineItem.SetPosition** and **Timeline.MoveItems** return False for
|
|
47
|
+
every input tried in that session.
|
|
48
|
+
- **TimelineItem.SetLeftOffset** returns True and extends the clip from
|
|
49
|
+
source media (a start near frame 400 jumped to about -86000). Setting the
|
|
50
|
+
offset back to 0 does not restore the edit. This server only reads
|
|
51
|
+
`GetLeftOffset`, so the ledger records the fact without a refusal gate.
|
|
52
|
+
- **Timeline.AddMarker** at relative frame 0 returns False, and so does
|
|
53
|
+
`AddMarker(StartFrame)`. `AddMarker(200)` returned True. The server
|
|
54
|
+
already reports `success: false` when the API returns false.
|
|
55
|
+
|
|
56
|
+
### Validation
|
|
57
|
+
|
|
58
|
+
- The six symbols are findable through `lookup_api_truth`, and the
|
|
59
|
+
limitations report was regenerated (43 missing capabilities, 68 bugs).
|
|
60
|
+
- Static checks: API parity, limitations and read/write drift guards, agent
|
|
61
|
+
rules, undefined names, duplicate definitions, action-list drift, panel
|
|
62
|
+
docs, tool counts, and release-surface drift.
|
|
63
|
+
- Live Resolve on this machine is Studio 19.1.3.7, project "Untitled
|
|
64
|
+
Project", no current timeline. `dir(MediaPool)` confirms the photo-album
|
|
65
|
+
methods are absent. Timeline and TimelineItem methods were not probed.
|
|
66
|
+
The 21.1.2.10 results are @CaptRauti's report and were not re-measured
|
|
67
|
+
here.
|
|
68
|
+
- The control-panel guide was reviewed. No navigation or diagnostic card
|
|
69
|
+
changed, so screenshots were not regenerated.
|
|
70
|
+
|
|
5
71
|
## What's New in v4.18.3 — A subtitle clipInfo no longer takes Resolve down
|
|
6
72
|
|
|
7
73
|
On Studio 21.1.2.10, `AppendToTimeline` with a clipInfo for an imported SRT
|
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.5 版 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,11 +577,47 @@ 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
|
+
### MediaPool.AddToPhotoAlbum
|
|
586
|
+
|
|
587
|
+
- **Object:** `MediaPool`
|
|
588
|
+
- **Signature:** `(clips) -> [MediaPoolItem]`
|
|
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.
|
|
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.
|
|
591
|
+
- **Reference:** [issue #336](https://github.com/samuelgursky/davinci-resolve-mcp/issues/336)
|
|
592
|
+
- **Tags:** silent-failure, media-pool, missing-method
|
|
593
|
+
|
|
594
|
+
### TimelineItem.SetPosition / Timeline.MoveItems
|
|
595
|
+
|
|
596
|
+
- **Object:** `TimelineItem / Timeline`
|
|
597
|
+
- **Signature:** `SetPosition(...) -> bool; MoveItems(...) -> bool`
|
|
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.
|
|
600
|
+
- **Reference:** [issue #336](https://github.com/samuelgursky/davinci-resolve-mcp/issues/336)
|
|
601
|
+
- **Tags:** unreliable-return, timeline, edit
|
|
602
|
+
|
|
603
|
+
### TimelineItem.SetLeftOffset
|
|
604
|
+
|
|
605
|
+
- **Object:** `TimelineItem`
|
|
606
|
+
- **Signature:** `(offset, ...) -> bool`
|
|
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.
|
|
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.
|
|
609
|
+
- **Reference:** [issue #336](https://github.com/samuelgursky/davinci-resolve-mcp/issues/336)
|
|
610
|
+
- **Tags:** silent-failure, timeline, edit, destructive
|
|
611
|
+
|
|
612
|
+
### TimelineItem.AddMarker at relative frame 0
|
|
613
|
+
|
|
614
|
+
- **Object:** `TimelineItem`
|
|
615
|
+
- **Signature:** `(frameId, color, name, note, duration, customData) -> bool`
|
|
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.
|
|
618
|
+
- **Reference:** [issue #336](https://github.com/samuelgursky/davinci-resolve-mcp/issues/336)
|
|
619
|
+
- **Tags:** silent-failure, timeline, marker
|
|
620
|
+
|
|
585
621
|
### hasattr() / getattr() on Resolve API objects (attribute fabrication)
|
|
586
622
|
|
|
587
623
|
- **Object:** `(all Resolve scripting objects)`
|
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.5"
|
|
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
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.5"
|
|
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.5"
|
|
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,21 +1784,155 @@ 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"],
|
|
1804
|
+
"verified_on": "Reported on Studio 21.1.2.10 (Windows) and free 21.0.3.7 (macOS); not re-measured here",
|
|
1805
|
+
},
|
|
1806
|
+
{
|
|
1807
|
+
"symbol": "Timeline.DeleteGaps",
|
|
1808
|
+
"object": "Timeline",
|
|
1809
|
+
"signature": "() -> bool",
|
|
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"],
|
|
1822
|
+
"issue": 336,
|
|
1823
|
+
"verified_on": "Withdrawn on the reporter's re-measurement, Studio 21.1.2.10 (Windows); not re-measured here",
|
|
1824
|
+
},
|
|
1825
|
+
{
|
|
1826
|
+
"symbol": "MediaPool.AddToPhotoAlbum",
|
|
1827
|
+
"object": "MediaPool",
|
|
1828
|
+
"signature": "(clips) -> [MediaPoolItem]",
|
|
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 "
|
|
1834
|
+
"(2026-11-01, dir() of the open project's MediaPool), "
|
|
1835
|
+
"AddToPhotoAlbum, CreateEmptyPhotoAlbum, "
|
|
1836
|
+
"CreatePhotoAlbumFromPhotos, and GetCurrentPhotoAlbum are "
|
|
1837
|
+
"absent.",
|
|
1838
|
+
"recommended": "On 21.1.2, count the album's photos before and after "
|
|
1839
|
+
"and treat an unchanged count as failure. On 19.1.3.7 "
|
|
1840
|
+
"the methods are not there; do not call them.",
|
|
1841
|
+
"tags": ["silent-failure", "media-pool", "missing-method"],
|
|
1842
|
+
"submit": "bug",
|
|
1843
|
+
"issue": 336,
|
|
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",
|
|
1845
|
+
},
|
|
1846
|
+
{
|
|
1847
|
+
"symbol": "Timeline.ExportFrame",
|
|
1848
|
+
"object": "Timeline",
|
|
1849
|
+
"signature": "(frameOffset, settings) -> dict",
|
|
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"],
|
|
1864
|
+
"issue": 336,
|
|
1865
|
+
"verified_on": "Withdrawn on the reporter's re-measurement, Studio 21.1.2.10 (Windows); not re-measured here",
|
|
1866
|
+
},
|
|
1867
|
+
{
|
|
1868
|
+
"symbol": "TimelineItem.SetPosition / Timeline.MoveItems",
|
|
1869
|
+
"object": "TimelineItem / Timeline",
|
|
1870
|
+
"signature": "SetPosition(...) -> bool; MoveItems(...) -> bool",
|
|
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 "
|
|
1876
|
+
"moveLinkedItems values, and with or without "
|
|
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.",
|
|
1884
|
+
"tags": ["unreliable-return", "timeline", "edit"],
|
|
1885
|
+
"submit": "bug",
|
|
1886
|
+
"issue": 336,
|
|
1887
|
+
"verified_on": "Reported on DaVinci Resolve Studio 21.1.2.10 (Windows); not re-measured here",
|
|
1888
|
+
},
|
|
1889
|
+
{
|
|
1890
|
+
"symbol": "TimelineItem.SetLeftOffset",
|
|
1891
|
+
"object": "TimelineItem",
|
|
1892
|
+
"signature": "(offset, ...) -> bool",
|
|
1893
|
+
"reality": "On Studio 21.1.2.10 (Windows), SetLeftOffset(5.0, False, "
|
|
1894
|
+
"True) on a clip at frame 400 with duration 120 returned "
|
|
1895
|
+
"True, moved the start to about -86000, and grew the "
|
|
1896
|
+
"duration to about 86515. Setting the offset back to 0 "
|
|
1897
|
+
"left the clip at about -86000. The call extends the clip "
|
|
1898
|
+
"from source media. It does not nudge the edit point, and "
|
|
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 "
|
|
1904
|
+
"build recorded SetLeftOffset as absent. This server only "
|
|
1905
|
+
"reads GetLeftOffset. Not re-measured here.",
|
|
1906
|
+
"recommended": "Do not call SetLeftOffset to trim a handle. There is "
|
|
1907
|
+
"no API undo. Any future wrapper has to say that the "
|
|
1908
|
+
"call extends from source media and require an explicit "
|
|
1909
|
+
"confirm before it runs.",
|
|
1910
|
+
"tags": ["silent-failure", "timeline", "edit", "destructive"],
|
|
1911
|
+
"submit": "bug",
|
|
1912
|
+
"issue": 336,
|
|
1913
|
+
"verified_on": "Reported on DaVinci Resolve Studio 21.1.2.10 (Windows); not re-measured here",
|
|
1914
|
+
},
|
|
1915
|
+
{
|
|
1916
|
+
"symbol": "TimelineItem.AddMarker at relative frame 0",
|
|
1917
|
+
"object": "TimelineItem",
|
|
1918
|
+
"signature": "(frameId, color, name, note, duration, customData) -> bool",
|
|
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"],
|
|
1934
|
+
"submit": "bug",
|
|
1935
|
+
"issue": 336,
|
|
1801
1936
|
"verified_on": "Reported on DaVinci Resolve Studio 21.1.2.10 (Windows); not re-measured here",
|
|
1802
1937
|
},
|
|
1803
1938
|
{
|
|
@@ -2444,6 +2579,13 @@ API_TRUTH: List[Dict[str, Any]] = [
|
|
|
2444
2579
|
"job-mark-range checks read clean. The only truthful "
|
|
2445
2580
|
"readback is the timeline items themselves, which report "
|
|
2446
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. "
|
|
2447
2589
|
"Verified on "
|
|
2448
2590
|
"Studio 20.3.2.9 (v2.17.1 probe: relative record_frame 12 "
|
|
2449
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
|
)
|