Media
GIF-Bilder in MP4-Videoformat konvertieren mit anpassbaren Qualitäts- und Auflösungseinstellungen
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/gif-to-mp4' \
-F 'file=@/path/to/gifFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/de/api/tools/gif-to-mp4' \
-F 'gifFile=/path/to/file.ext' \
-F 'multiFrameHandling=preserve-animation' \
-F 'resolution=original' \
-F 'customWidth=0' \
-F 'customHeight=0' \
-F 'fps=30' \
-F 'quality=high' \
-F 'backgroundColor=transparent' \
-F 'customBackgroundColor=#ffffff' \
-F 'videoCodec=libx264' \
-F 'pixelFormat=yuv420p' \
-F 'loopCount=0'Senden Sie eine POST-Anfrage mit Ihren Eingaben als JSON. Dateiparameter erfordern einen vorherigen Upload.
POST https://api.elysiatools.com/de/api/tools/gif-to-mp4| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
| gifFile | fileUpload nötig | Ja | — |
| multiFrameHandling | select | Nein | — |
| resolution | select | Nein | — |
| customWidth | number | Nein | — |
| customHeight | number | Nein | — |
| fps | number | Nein | — |
| quality | select | Nein | — |
| backgroundColor | select | Nein | — |
| customBackgroundColor | color | Nein | — |
| videoCodec | select | Nein | — |
| pixelFormat | select | Nein | — |
| loopCount | number | 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-gif-to-mp4": {
"name": "gif-to-mp4",
"description": "GIF-Bilder in MP4-Videoformat konvertieren mit anpassbaren Qualitäts- und Auflösungseinstellungen",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=gif-to-mp4",
"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": "gif-to-mp4",
"arguments": {
"gifFile": "https://example.com/file.ext",
"multiFrameHandling": "preserve-animation",
"resolution": "original",
"customWidth": 0,
"customHeight": 0,
"fps": 30,
"quality": "high",
"backgroundColor": "transparent",
"customBackgroundColor": "#ffffff",
"videoCodec": "libx264",
"pixelFormat": "yuv420p",
"loopCount": 0
}
}
}Fragen oder Probleme? Kontakt: [email protected]