Media
Añade una marca de agua de imagen a videos con posición, tamaño, opacidad y temporizació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/video-watermark-image' \
-F 'file=@/path/to/videoFile.ext'
curl -X POST 'https://api.elysiatools.com/upload/video-watermark-image' \
-F 'file=@/path/to/watermarkImageFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/es/api/tools/video-watermark-image' \
-F 'videoFile=/path/to/file.ext' \
-F 'watermarkImageFile=/path/to/file.ext' \
-F 'position=bottom-right' \
-F 'scale=15' \
-F 'opacity=0.7' \
-F 'margin=20' \
-F 'animationMode=static' \
-F 'animationSpeed=50' \
-F 'startTime=0' \
-F 'endTime=-1' \
-F 'outputFormat=mp4'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/video-watermark-image| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| videoFile | filesubida requerida | Sí | — |
| watermarkImageFile | filesubida requerida | Sí | — |
| position | select | No | — |
| scale | range | No | Tamaño de la marca de agua relativo al ancho del video (1-100%) |
| opacity | range | No | Opacidad de la marca de agua (0.1 = transparente, 1 = opaco) |
| margin | range | No | Distancia desde los bordes del video (0-200 píxeles) |
| animationMode | select | No | — |
| animationSpeed | range | No | Velocidad de movimiento en píxeles por segundo (10-500) |
| startTime | number | No | Cuándo comenzar a mostrar la marca de agua (0 = desde el inicio) |
| endTime | number | No | Cuándo dejar de mostrar la marca de agua (-1 = hasta el final) |
| outputFormat | select | 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-video-watermark-image": {
"name": "video-watermark-image",
"description": "Añade una marca de agua de imagen a videos con posición, tamaño, opacidad y temporización personalizables",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=video-watermark-image",
"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": "video-watermark-image",
"arguments": {
"videoFile": "https://example.com/file.ext",
"watermarkImageFile": "https://example.com/file.ext",
"position": "bottom-right",
"scale": 15,
"opacity": 0.7,
"margin": 20,
"animationMode": "static",
"animationSpeed": 50,
"startTime": 0,
"endTime": -1,
"outputFormat": "mp4"
}
}
}¿Dudas o problemas? Contacta con [email protected]