add_subtitles
Embed SRT or VTT subtitles into MP4, MKV, or MOV video containers without re-encoding, adding labeled tracks for playback.
Instructions
Embed an SRT or VTT subtitle track into a video container (mov_text for MP4, srt for MKV) without re-encoding the video stream.
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": {
"videoPath": "<videoPath>",
"subtitlesPath": "<subtitlesPath>",
"outputPath": "<outputPath>"
},
"name": "add_subtitles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | Subtitle track label displayed in video players | English |
| language | No | ISO 639-2 three-letter language code (e.g. 'eng', 'spa', 'fra', 'deu') | eng |
| videoPath | Yes | Path to the source video file | |
| outputPath | Yes | Target output video path (.mp4, .mkv, or .mov) | |
| subtitlesPath | Yes | Path to subtitle file (.srt or .vtt) |