add_subtitles
Embed an SRT or VTT subtitle track into MP4, MKV, or MOV containers without re-encoding video, using mov_text for MP4 and srt for MKV.
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.
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) |