merge_bilingual_subtitles
Merge primary and secondary subtitle tracks by midpoint alignment and temporal overlap into dual-line SRT, VTT, or FCPXML title lanes for bilingual captions.
Instructions
Align and merge primary and secondary subtitle tracks (.srt, .vtt, or Whisper .json) by midpoint and temporal overlap into dual-line .srt, .vtt, or rational-frame Apple Final Cut Pro / DaVinci Resolve FCPXML 1.9 title lanes.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"primaryInput": "<primaryInput>",
"secondaryInput": "<secondaryInput>"
},
"name": "merge_bilingual_subtitles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | Timeline framerate used for exact rational frame durations when outputFormat is fcpxml. | 30 |
| order | No | Vertical line stacking order within each merged bilingual cue. | primary_top |
| projectName | No | Project name embedded in FCPXML 1.9 output. | SubCraft Bilingual Captions |
| toleranceMs | No | Midpoint alignment tolerance window in milliseconds. | |
| outputFormat | No | Merged output format: srt, vtt, or fcpxml (FCPXML 1.9 rational frame timeline). | srt |
| primaryInput | Yes | Primary language subtitle track (.srt, .vtt, or Whisper .json). | |
| secondaryInput | Yes | Secondary language subtitle track (.srt, .vtt, or Whisper .json). | |
| keepUnmatchedSecondary | No | When true (default), retains secondary cues that do not overlap any primary cue. |