davinci-resolve-mcp 4.18.4 → 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 CHANGED
@@ -2,6 +2,31 @@
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
+
5
30
  ## What's New in v4.18.4 — Silent Resolve calls from #336 are on the ledger
6
31
 
7
32
  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
- [![Version](https://img.shields.io/badge/version-4.18.4-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
5
+ [![Version](https://img.shields.io/badge/version-4.18.5-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
6
6
  [![npm](https://img.shields.io/npm/v/davinci-resolve-mcp.svg?label=npm&color=CB3837)](https://www.npmjs.com/package/davinci-resolve-mcp)
7
7
  [![API Coverage](https://img.shields.io/badge/API%20Coverage-100%25-brightgreen.svg)](docs/reference/api-coverage.md)
8
8
  [![Tools](https://img.shields.io/badge/MCP%20Tools-37%20(390%20full)-blue.svg)](#server-modes)
package/README.zh-CN.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [English](README.md) | 简体中文
4
4
 
5
- [![Version](https://img.shields.io/badge/version-4.18.4-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
5
+ [![Version](https://img.shields.io/badge/version-4.18.5-blue.svg)](https://github.com/samuelgursky/davinci-resolve-mcp/releases)
6
6
  [![npm](https://img.shields.io/npm/v/davinci-resolve-mcp.svg?label=npm&color=CB3837)](https://www.npmjs.com/package/davinci-resolve-mcp)
7
7
  [![API Coverage](https://img.shields.io/badge/API%20Coverage-100%25-brightgreen.svg)](docs/reference/api-coverage.md)
8
8
  [![Tools](https://img.shields.io/badge/MCP%20Tools-37%20(390%20full)-blue.svg)](#服务器模式)
@@ -12,7 +12,7 @@
12
12
  [![Python](https://img.shields.io/badge/python-3.10+-green.svg)](https://www.python.org/downloads/)
13
13
  [![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)
14
14
 
15
- > 本翻译对应 v4.18.4 版 README。如与英文原版有出入,以 [英文原版](README.md) 为准。
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.1
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 aborts Resolve
2312
- (`Sm2MpObject.cpp:546`, issue #335). The plain `clip_ids` form does not crash,
2313
- and on that build it also places nothing. Builds older than 21.1 still forward
2314
- the clipInfo; that route was reported working on Studio 21.0.4.5 (issue #169).
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, 68 bugs / unreliable behaviors.
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.1.2, import through the UI. clipInfo append of a subtitle item is refused on 21.1+ (see MediaPool.AppendToTimeline subtitle clipInfo). Use project_db write_captions for explicit word timings with Resolve fully quit; do not assume SRT supplies them.
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. Builds 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.1 and above, and when the connected version cannot be read, with SUBTITLE_APPEND_CRASH, before AppendToTimeline is called. On a build older than 21.1 the call is still forwarded. Import the SRT through the UI on 21.1.2.
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 [] and the album's GetPhotoList() stayed empty, including after SetCurrentPhotoAlbum. CreatePhotoAlbumFromPhotos placed photos in the same session. On Studio 19.1.3.7 (2026-11-01, dir() of the open project's MediaPool), AddToPhotoAlbum, CreateEmptyPhotoAlbum, CreatePhotoAlbumFromPhotos, and GetCurrentPhotoAlbum are absent.
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 and Timeline.MoveItems returned False for video clips and stills, for int and float start frames, for a no-op startFrame equal to the clip's current frame, for both moveLinkedItems values, and with or without subframePrecision. Timeline.SetCurrentTimecode succeeded in the same session. This server does not call either method. Not re-measured here.
617
- - **Workaround / current handling:** Do not treat False from these two as a bad argument. On 21.1.2.10 they returned False for every input tried. Move the clip in the Edit page.
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
- ### Timeline.AddMarker at relative frame 0
612
+ ### TimelineItem.AddMarker at relative frame 0
631
613
 
632
- - **Object:** `Timeline`
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, AddMarker(0) returned False and AddMarker(86400) returned False. AddMarker(200) returned True. Other clips accepted their relative GetStart(). Related to issue #34. This server already reports success false when AddMarker returns false. Not re-measured here.
635
- - **Workaround / current handling:** Place the marker at a relative frame other than 0 when frame 0 is refused. Do not retry the same call with StartFrame added: that also returned False on 21.1.2.10.
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:** unreliable-return, timeline, marker
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.4"
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "davinci-resolve-mcp",
3
- "version": "4.18.4",
3
+ "version": "4.18.5",
4
4
  "description": "NPM bootstrapper for the DaVinci Resolve MCP Server.",
5
5
  "license": "MIT",
6
6
  "author": "Samuel Gursky <samgursky@gmail.com>",
@@ -21,7 +21,7 @@
21
21
  "LICENSE"
22
22
  ],
23
23
  "dependencies": {
24
- "@modelcontextprotocol/sdk": "^1.30.0",
24
+ "@modelcontextprotocol/sdk": "^1.32.2",
25
25
  "adm-zip": "^0.6.0",
26
26
  "fast-xml-parser": "^5.11.2",
27
27
  "fzstd": "^0.1.1",
@@ -93,7 +93,7 @@ if not logging.getLogger().handlers:
93
93
  handlers=[logging.StreamHandler()],
94
94
  )
95
95
 
96
- VERSION = "4.18.4"
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.1+
199
- with code SUBTITLE_APPEND_CRASH. On Studio 21.1.2.10 that clipInfo
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.4"
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.1.
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.1. "
3970
- "On Studio 21.1.2.10 that call aborts Resolve. The plain clip_ids form "
3971
- "does not crash, and on that build it also places nothing. Import the "
3972
- "SRT in the Resolve UI, or use project_db write_captions with Resolve "
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.1+
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 that clipInfo aborts
23340
- Resolve (issue #335). Builds older than 21.1 are still forwarded.
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.
@@ -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 (issue #335). Whether either route carries "
1765
- "word timing for animated presets has not been verified; SRT "
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.1.2, import through the UI. "
1769
- "clipInfo append of a subtitle item is refused on 21.1+ "
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. ImportMedia(srt) + AppendToTimeline was "
1787
- "reported working on Studio 21.0.4.5 (issue #169). Which "
1788
- "clipInfo field triggers the abort was not isolated. Builds "
1789
- "21.1.0 and 21.1.1 were not measured.",
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.1 and above, "
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.1 the call is still forwarded. "
1796
- "Import the SRT through the UI on 21.1.2.",
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 DaVinci Resolve Studio 21.1.2.10 (Windows); not re-measured here",
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": "On Studio 21.1.2.10 (Windows), DeleteGaps() returned True "
1808
- "and left every clip start unchanged, with gaps at 0/200 and "
1809
- "again at 0/200/400. This server does not call DeleteGaps. "
1810
- "Not re-measured here.",
1811
- "recommended": "Read the clip starts before and after. Treat equal "
1812
- "readings as failure even when the call returned True. "
1813
- "Close the gaps in the Edit page until a build shows "
1814
- "the starts actually move.",
1815
- "tags": ["silent-failure", "timeline", "edit"],
1816
- "submit": "bug",
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": "Reported on DaVinci Resolve Studio 21.1.2.10 (Windows); not re-measured here",
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), AddToPhotoAlbum returned [] "
1825
- "and the album's GetPhotoList() stayed empty, including "
1826
- "after SetCurrentPhotoAlbum. CreatePhotoAlbumFromPhotos "
1827
- "placed photos in the same session. On Studio 19.1.3.7 "
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 empty-list result is reported on 21.1.2.10 and was not re-measured here",
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": "On Studio 21.1.2.10 (Windows), Timeline.ExportFrame returned "
1845
- "{'success': False, 'error': 'frameOffset is out of range "
1846
- "for the timeline'} for offsets 0, 5, 100, 200, 216000, and "
1847
- "216010. The same frames exported through "
1848
- "TimelineItem.ExportFrame. The timeline reported "
1849
- "StartTimecode 01:00:00:00, StartFrame 86400, and EndFrame "
1850
- "86400. Not re-measured here; this machine had no current "
1851
- "timeline to dir().",
1852
- "recommended": "Export through TimelineItem.ExportFrame. If "
1853
- "GetStartFrame() and GetEndFrame() are equal, the "
1854
- "timeline export has no frame range to address.",
1855
- "tags": ["silent-failure", "timeline", "export"],
1856
- "submit": "bug",
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": "Reported on DaVinci Resolve Studio 21.1.2.10 (Windows); not re-measured here",
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), TimelineItem.SetPosition "
1865
- "and Timeline.MoveItems returned False for video clips and "
1866
- "stills, for int and float start frames, for a no-op "
1867
- "startFrame equal to the clip's current frame, for both "
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. Timeline.SetCurrentTimecode succeeded "
1870
- "in the same session. This server does not call either "
1871
- "method. Not re-measured here.",
1872
- "recommended": "Do not treat False from these two as a bad argument. "
1873
- "On 21.1.2.10 they returned False for every input tried. "
1874
- "Move the clip in the Edit page.",
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. A live gap probe on an older "
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": "Timeline.AddMarker at relative frame 0",
1904
- "object": "Timeline",
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), with StartFrame 86400, "
1907
- "AddMarker(0) returned False and AddMarker(86400) returned "
1908
- "False. AddMarker(200) returned True. Other clips accepted "
1909
- "their relative GetStart(). Related to issue #34. This "
1910
- "server already reports success false when AddMarker "
1911
- "returns false. Not re-measured here.",
1912
- "recommended": "Place the marker at a relative frame other than 0 "
1913
- "when frame 0 is refused. Do not retry the same call "
1914
- "with StartFrame added: that also returned False on "
1915
- "21.1.2.10.",
1916
- "tags": ["unreliable-return", "timeline", "marker"],
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)
@@ -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
- frames = set()
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
- for key in ("timeline_start_frame", "timeline_end_frame"):
53
- value = item.get(key)
54
- if value is not None:
55
- frames.add(int(value))
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
- ``ImportMedia`` plus ``AppendToTimeline`` was reported working on Studio
10
- 21.0.4.5 (issue #169). Builds 21.1.0 and 21.1.1 were not measured. Every
11
- 21.1 build is refused, and so is a subtitle clipInfo when the connected
12
- version cannot be read: forwarding the call is what takes Resolve down.
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.1"
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. ImportMedia + AppendToTimeline was reported working on Studio "
27
- "21.0.4.5 (issue #169). 21.1.0 and 21.1.1 were not measured."
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: on Studio "
90
- "21.1.2.10 it aborts Resolve (Sm2MpObject.cpp:546, issue #335)."
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
  )