Media
Ajoutez une filigrane de texte a plusieurs fichiers video avec position, taille de police, couleur, opacite et duree personnalisables
Appelez cet outil depuis votre code en trois langages.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/video-batch-watermark' \
-F 'file=@/path/to/videoFiles.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/fr/api/tools/video-batch-watermark' \
-F 'videoFiles=/path/to/file.ext' \
-F 'text=Watermark' \
-F 'position=bottom-right' \
-F 'fontSize=24' \
-F 'fontColor=#FFFFFF' \
-F 'opacity=0.7' \
-F 'margin=20' \
-F 'animationMode=static' \
-F 'animationSpeed=50' \
-F 'backgroundColor=#000000' \
-F 'backgroundOpacity=0' \
-F 'shadowOpacity=0.5' \
-F 'startTime=0' \
-F 'endTime=-1' \
-F 'keepOriginalNames=true'Envoyez une requête POST avec vos entrées en JSON. Les paramètres de type fichier nécessitent un upload préalable.
POST https://api.elysiatools.com/fr/api/tools/video-batch-watermark| Nom | Type | Requis | Description |
|---|---|---|---|
| videoFiles | fileupload requis | Oui | — |
| text | text | Oui | — |
| position | select | Non | — |
| fontSize | range | Non | Taille de police en pixels |
| fontColor | color | Non | — |
| opacity | range | Non | Opacite du texte (0.1 a 1.0) |
| margin | range | Non | Distance du bord en pixels |
| animationMode | select | Non | — |
| animationSpeed | range | Non | Vitesse d'animation (pixels par seconde) |
| backgroundColor | color | Non | — |
| backgroundOpacity | range | Non | Opacite du fond (0 a 1.0) |
| shadowOpacity | range | Non | Opacite de l'ombre (0 a 1.0) |
| startTime | number | Non | Quand commencer a afficher la filigrane (0 = depuis le debut) |
| endTime | number | Non | Quand arreter d'afficher la filigrane (-1 = jusqu'a la fin) |
| keepOriginalNames | checkbox | Non | — |
Résultat fichier
{
"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)"
}Ajoutez cet outil à votre serveur Model Context Protocol pour que les agents IA puissent le lister et l'appeler.
Ajoutez ce bloc à la configuration de votre client MCP :
{
"mcpServers": {
"elysiatools-video-batch-watermark": {
"name": "video-batch-watermark",
"description": "Ajoutez une filigrane de texte a plusieurs fichiers video avec position, taille de police, couleur, opacite et duree personnalisables",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=video-batch-watermark",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Après connexion au point d'accès SSE, listez les outils exposés :
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Appelez l'outil par son id ; les arguments sont construits à partir de ses paramètres :
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "video-batch-watermark",
"arguments": {
"videoFiles": "https://example.com/file.ext",
"text": "Watermark",
"position": "bottom-right",
"fontSize": 24,
"fontColor": "#FFFFFF",
"opacity": 0.7,
"margin": 20,
"animationMode": "static",
"animationSpeed": 50,
"backgroundColor": "#000000",
"backgroundOpacity": 0,
"shadowOpacity": 0.5,
"startTime": 0,
"endTime": -1,
"keepOriginalNames": true
}
}
}Des questions ou un problème ? Contactez [email protected]