e1994cbfa8a7f262aeec01b86a86724c7fb4ca7f
MetaMesh Plugin: Language
A MetaMesh plugin that aggregates languages from all streams and determines the primary language.
Description
This plugin collects language information from video, audio, and subtitle streams extracted by the FFmpeg plugin. It:
- Converts language codes to ISO 639-3 format
- Aggregates all detected languages into a set
- Determines the primary language (first audio stream)
- Maps titles to their detected language
Metadata Fields
| Field | Description |
|---|---|
languages |
Set of all detected languages (ISO 639-3) |
primaryLanguage |
Primary language code |
titles/{lang} |
Title mapped to language |
Dependencies
- Requires
ffmpegplugin to run first
Configuration
No configuration required.
API Endpoints
| Endpoint | Method | Description |
|---|---|---|
/health |
GET | Health check |
/manifest |
GET | Plugin manifest |
/configure |
POST | Update configuration |
/process |
POST | Process a file |
Running Locally
npm install
npm run build
npm start
Docker
docker build -t metamesh-plugin-language .
docker run -p 8080:8080 metamesh-plugin-language
Environment Variables
| Variable | Default | Description |
|---|---|---|
PORT |
8080 |
HTTP server port |
HOST |
0.0.0.0 |
HTTP server host |
License
MIT
Languages
TypeScript
93.6%
Shell
4.4%
Dockerfile
2%