Vid Subtitle
БесплатноНе проверенA MCP server that adds subtitles to videos using FFmpeg and OpenAI Whisper API.
Описание
A MCP server that adds subtitles to videos using FFmpeg and OpenAI Whisper API.
README
Now supports Model Context Protocol (MCP) for video subtitle processing and secure local file access!!! See server/README.md for more details.
https://github.com/user-attachments/assets/105a2fe6-9122-4f33-a4a0-b8ed3f64cabc
vid-subtitle
A Python library to add subtitles to videos using FFmpeg and OpenAI Whisper API.
https://github.com/user-attachments/assets/7c2d0a6a-7d75-4837-b141-097104a0cb5e
Features
- Extract audio from MP4 and MOV video files
- Transcribe audio using OpenAI Whisper API
- Generate SRT subtitle files
- Embed subtitles into video files
- Support for multiple languages (English by default)
Prerequisites
- Python 3.7+
- FFmpeg installed on your system
- OpenAI API key
Installation
pip install vid-subtitle
Setup
Install FFmpeg on your system:
- macOS:
brew install ffmpeg - Ubuntu/Debian:
sudo apt update && sudo apt install ffmpeg - Windows: Download from FFmpeg official website
- macOS:
Set your OpenAI API key as an environment variable:
export OPENAI_API_KEY="your-api-key-here"or create a
.envfile in the root directory and add the following:OPENAI_API_KEY=your-api-key-here
Usage
Basic Usage
from vid_subtitle import add_subtitles, add_subtitle_file
# Add subtitles to a video using transcription
add_subtitles(
input_video="input.mp4",
output_video="output_with_subtitles.mp4",
language="en" # Optional, defaults to English
)
# Add existing subtitles to a video (no transcription needed)
add_subtitle_file(
input_video="input.mp4",
subtitle_file="existing_subtitles.srt",
output_video="output_with_embedded_subtitles.mp4"
)
This will:
- Extract audio from the input video
- Transcribe the audio using OpenAI Whisper API
- Generate an SRT subtitle file
- Create a new video with embedded subtitless
CLI Usage
# Add subtitles with transcription
vid-subtitle add -l en -v input.mp4 output.mp4
# Embed existing subtitles into video
vid-subtitle embed input.mp4 subtitles.srt output.mp4
# Extract subtitles only (no video output)
vid-subtitle extract input.mp4 -o subtitles.srt
# Refine subtitles
vid-subtitle refine subtitles.srt refined_subtitles.srt -i "Refine the subtitles to be more accurate."
# Show supported languages
vid-subtitle languages
# Show library information
vid-subtitle info
Supported Languages
The library supports all languages supported by OpenAI Whisper API. Use ISO 639-1 language codes:
en- English (default)es- Spanishfr- Frenchde- Germanit- Italianpt- Portugueseru- Russianja- Japaneseko- Koreanzh- Chinese- And many more...
Supported Video Formats
- MP4 (.mp4)
- MOV (.mov)
Output Files
The library generates two outputs:
- Video file with embedded subtitles:
{output_video} - Separate SRT subtitle file:
{input_video_name}.srt
Error Handling
The library includes comprehensive error handling for:
- Missing FFmpeg installation
- Invalid video formats
- Missing OpenAI API key
- Network connectivity issues
- File permission errors
License
MIT License
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Установка Vid Subtitle
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/tomoima525/vid-subtitleFAQ
Vid Subtitle MCP бесплатный?
Да, Vid Subtitle MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Vid Subtitle?
Нет, Vid Subtitle работает без API-ключей и переменных окружения.
Vid Subtitle — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Vid Subtitle в Claude Desktop, Claude Code или Cursor?
Открой Vid Subtitle на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzMCP-Agent
A simple, composable framework to build agents using Model Context Protocol by [LastMile AI](https://www.lastmileai.dev)
автор: lastmile-aiSpring AI MCP Client
Provides auto-configuration for MCP client functionality in Spring Boot applications.
mcp.natoma.ai
A Hosted MCP Platform to discover, install, manage and deploy MCP servers by [Natoma Labs](https://www.natoma.ai)
MCPHub
Website to list high quality MCP servers and reviews by real users. Also provide online chatbot for popular LLM models with MCP server support.
MCP Servers Rating and User Reviews
Website to rate MCP servers, write authentic user reviews, and [search engine for agent & mcp](http://www.deepnlp.org/search/agent)
mkinf
An Open Source registry of hosted MCP Servers to accelerate AI agent workflows.
Compare Vid Subtitle with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
