Media
Convertir imágenes GIF a formato de video MP4 con configuraciones de calidad y resolución personalizables
Llama a esta herramienta desde tu código en tres lenguajes.
# 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/es/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'Envía una petición POST con tus entradas en JSON. Los parámetros de tipo archivo requieren una subida previa.
POST https://api.elysiatools.com/es/api/tools/gif-to-mp4| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| gifFile | filesubida requerida | Sí | — |
| multiFrameHandling | select | No | — |
| resolution | select | No | — |
| customWidth | number | No | — |
| customHeight | number | No | — |
| fps | number | No | — |
| quality | select | No | — |
| backgroundColor | select | No | — |
| customBackgroundColor | color | No | — |
| videoCodec | select | No | — |
| pixelFormat | select | No | — |
| loopCount | number | No | — |
Resultado de archivo
{
"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)"
}Añade esta herramienta a tu servidor Model Context Protocol para que los agentes de IA puedan listarla y llamarla.
Añade este bloque a la configuración de tu cliente MCP:
{
"mcpServers": {
"elysiatools-gif-to-mp4": {
"name": "gif-to-mp4",
"description": "Convertir imágenes GIF a formato de video MP4 con configuraciones de calidad y resolución personalizables",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=gif-to-mp4",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Tras conectar al endpoint SSE, lista las herramientas expuestas:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoca la herramienta por su id; los argumentos se construyen a partir de sus parámetros:
{
"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
}
}
}¿Dudas o problemas? Contacta con [email protected]