Auto-generate subtitles (whisper)
auto_subtitleTranscribe speech from media files into .srt, .json, or .txt subtitles using FFmpeg's whisper filter; requires a whisper.cpp model path.
Instructions
Transcribe speech to subtitles using FFmpeg's built-in whisper filter. Writes an .srt (or .json/.txt) file. Requires a whisper.cpp model file: set the WHISPER_MODEL_PATH env var or pass model. Download a model, e.g. ggml-base.bin, from https://huggingface.co/ggerganov/whisper.cpp.
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": {
"input": "<input>",
"output": "<output>"
},
"name": "auto_subtitle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Path to the media file with speech. | |
| model | No | Path to a whisper.cpp model .bin. Defaults to WHISPER_MODEL_PATH. | |
| format | No | Output transcription format. | srt |
| output | Yes | Path for the generated subtitle file (e.g. out.srt). | |
| language | No | Spoken language code (e.g. "en", "ko") or "auto". | auto |
| overwrite | No | Overwrite the output file if it already exists. |