Media
Fugt fest einzubrennende Untertitel zu Videos hinzu, wobei SRT-, ASS- oder VTT-Untertiteldateien mit anpassbarem Schriftstil verwendet werden
Rufen Sie dieses Werkzeug aus Ihrem Code in drei Sprachen auf.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/video-subtitle-add' \
-F 'file=@/path/to/videoFile.ext'
curl -X POST 'https://api.elysiatools.com/upload/video-subtitle-add' \
-F 'file=@/path/to/subtitleFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/de/api/tools/video-subtitle-add' \
-F 'videoFile=/path/to/file.ext' \
-F 'subtitleFile=/path/to/file.ext' \
-F 'fontSize=24' \
-F 'fontName=Arial' \
-F 'fontColor=#FFFFFF' \
-F 'bottomAlignment=true' \
-F 'marginBottom=20' \
-F 'outputFormat=mp4'Senden Sie eine POST-Anfrage mit Ihren Eingaben als JSON. Dateiparameter erfordern einen vorherigen Upload.
POST https://api.elysiatools.com/de/api/tools/video-subtitle-add| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| videoFile | fileUpload nötig | Ja | — |
| subtitleFile | fileUpload nötig | Ja | — |
| fontSize | range | Nein | Schriftgroße fur Untertitel (8-72 Pixel, wird bei ASS/SSA-Dateien ignoriert) |
| fontName | text | Nein | Schriftfamilienname (wird bei ASS/SSA-Dateien mit eingebetteten Schriftarten ignoriert) |
| fontColor | color | Nein | Schriftfarbe im Hex-Format (wird bei ASS/SSA-Dateien ignoriert) |
| bottomAlignment | checkbox | Nein | Untertitel unten auf dem Bildschirm ausrichten (abwahlen fur Ausrichtung oben) |
| marginBottom | range | Nein | Abstand vom unteren Rand (0-200 Pixel) |
| outputFormat | select | Nein | — |
Dateiergebnis
{
"filePath": "/public/processing/randomid.ext",
"fileName": "output.ext",
"contentType": "application/octet-stream",
"size": 1024,
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Fügen Sie dieses Werkzeug Ihrem Model-Context-Protocol-Server hinzu, damit KI-Agenten es auflisten und aufrufen können.
Fügen Sie diesen Block Ihrer MCP-Client-Konfiguration hinzu:
{
"mcpServers": {
"elysiatools-video-subtitle-add": {
"name": "video-subtitle-add",
"description": "Fugt fest einzubrennende Untertitel zu Videos hinzu, wobei SRT-, ASS- oder VTT-Untertiteldateien mit anpassbarem Schriftstil verwendet werden",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=video-subtitle-add",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Nach dem Verbinden mit dem SSE-Endpunkt listen Sie die bereitgestellten Werkzeuge auf:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Rufen Sie das Werkzeug über seine ID auf; Argumente werden aus seiner Parameterliste gebildet:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "video-subtitle-add",
"arguments": {
"videoFile": "https://example.com/file.ext",
"subtitleFile": "https://example.com/file.ext",
"fontSize": 24,
"fontName": "Arial",
"fontColor": "#FFFFFF",
"bottomAlignment": true,
"marginBottom": 20,
"outputFormat": "mp4"
}
}
}Fragen oder Probleme? Kontakt: [email protected]