Skip to main content
Glama

subtitle_extraction

Extract hardcoded subtitles from MP4 and MOV video files using OCR technology. Process videos up to 2GB and receive subtitle files in SRT format for accessibility and content analysis.

Instructions

[AllVoiceLab Tool] Extract subtitles from a video using OCR technology.

This tool processes a video file to extract hardcoded subtitles. The process runs asynchronously with status polling and returns the extracted subtitles when complete. Args: video_file_path (str): Path to the video file (MP4, MOV). Max size 2GB. language_code (str, optional): Language code for subtitle text detection (e.g., 'en', 'zh'). Defaults to 'auto'. name (str, optional): Optional project name for identification. output_dir (str, optional): Output directory for the downloaded result file. It has a default value. Returns: TextContent containing the file path to the srt file or error message. If the process takes longer than expected, returns the project ID for later status checking. Note: - Supported video formats: MP4, MOV - Video file size limit: 10 seconds to 200 minutes, max 2GB. - If the process takes longer than max_polling_time, use 'get_extraction_info' to check status and retrieve results.

Input Schema

NameRequiredDescriptionDefault
video_file_pathYes
language_codeNoauto
nameNo
output_dirNo

Input Schema (JSON Schema)

{ "properties": { "language_code": { "default": "auto", "title": "Language Code", "type": "string" }, "name": { "default": null, "title": "Name", "type": "string" }, "output_dir": { "default": null, "title": "Output Dir", "type": "string" }, "video_file_path": { "title": "Video File Path", "type": "string" } }, "required": [ "video_file_path" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/allvoicelab/AllVoiceLab-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server