Media
Ajoute une filigrane d'image aux videos avec position, taille, opacité et synchronisation 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-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/fr/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'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-watermark-image| Nom | Type | Requis | Description |
|---|---|---|---|
| videoFile | fileupload requis | Oui | — |
| watermarkImageFile | fileupload requis | Oui | — |
| position | select | Non | — |
| scale | range | Non | Taille de la filigrane par rapport à la largeur video (1-100%) |
| opacity | range | Non | Opacité de la filigrane (0.1 = transparent, 1 = opaque) |
| margin | range | Non | Distance des bords video (0-200 pixels) |
| animationMode | select | Non | — |
| animationSpeed | range | Non | Vitesse de mouvement en pixels par seconde (10-500) |
| startTime | number | Non | Quand commencer à afficher la filigrane (0 = du début) |
| endTime | number | Non | Quand arrêter d'afficher la filigrane (-1 = jusqu'à la fin) |
| outputFormat | select | 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-watermark-image": {
"name": "video-watermark-image",
"description": "Ajoute une filigrane d'image aux videos avec position, taille, opacité et synchronisation personnalisables",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=video-watermark-image",
"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-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"
}
}
}Des questions ou un problème ? Contactez [email protected]