extract_subtitles
Extract subtitle tracks from video files and save them as standalone subtitle files in SRT, VTT, or ASS formats.
Instructions
Extract a subtitle track from a video file and save it as a standalone subtitle file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to the input video file | |
| output_path | No | Absolute path for the output subtitle file. Defaults to same directory with '_subtitles' suffix. | |
| stream_index | No | Zero-based index of the subtitle stream to extract (default 0 = first subtitle track) | |
| output_format | No | Subtitle format: srt, vtt, or ass. Defaults to srt. |