Skip to main content
Glama

Video & Audio Editing MCP Server

by misbahsy

add_subtitles

Burn subtitles from an SRT file onto a video, allowing custom styling for font, color, alignment, and margins. Enhances accessibility and clarity for video content.

Instructions

Burns subtitles from an SRT file onto a video, with optional styling.

Args: video_path: Path to the input video file. srt_file_path: Path to the SRT subtitle file. output_video_path: Path to save the video with subtitles. font_style (dict, optional): A dictionary for subtitle styling. Supported keys and example values: - 'font_name': 'Arial' (str) - 'font_size': 24 (int) - 'font_color': 'white' or '&H00FFFFFF' (str, FFmpeg color syntax) - 'outline_color': 'black' or '&H00000000' (str) - 'outline_width': 2 (int) - 'shadow_color': 'black' (str) - 'shadow_offset_x': 1 (int) - 'shadow_offset_y': 1 (int) - 'alignment': 7 (int, ASS alignment - Numpad layout: 1=bottom-left, 7=top-left etc. Default often 2=bottom-center) - 'margin_v': 10 (int, vertical margin from edge, depends on alignment) - 'margin_l': 10 (int, left margin) - 'margin_r': 10 (int, right margin) Default is None, which uses FFmpeg's default subtitle styling.

Returns: A status message indicating success or failure.

Input Schema

NameRequiredDescriptionDefault
font_styleNo
output_video_pathYes
srt_file_pathYes
video_pathYes

Input Schema (JSON Schema)

{ "properties": { "font_style": { "additionalProperties": true, "default": null, "title": "Font Style", "type": "object" }, "output_video_path": { "title": "Output Video Path", "type": "string" }, "srt_file_path": { "title": "Srt File Path", "type": "string" }, "video_path": { "title": "Video Path", "type": "string" } }, "required": [ "video_path", "srt_file_path", "output_video_path" ], "title": "add_subtitlesArguments", "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/misbahsy/video-audio-mcp'

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