Media
Resize multiple video files using resolution presets or custom dimensions, with optional aspect ratio preservation
Call this tool from your code in three languages.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/video-batch-resize' \
-F 'file=@/path/to/videoFiles.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/en/api/tools/video-batch-resize' \
-F 'videoFiles=/path/to/file.ext' \
-F 'preset=1080p' \
-F 'customWidth=1920' \
-F 'customHeight=1080' \
-F 'maintainAspect=true' \
-F 'outputFormat=mp4' \
-F 'videoCopy=false' \
-F 'keepOriginalNames=true'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/video-batch-resize| Name | Type | Required | Description |
|---|---|---|---|
| videoFiles | fileupload required | Yes | — |
| preset | select | No | — |
| customWidth | number | No | Width in pixels (only when Custom preset is selected) |
| customHeight | number | No | Height in pixels (only when Custom preset is selected) |
| maintainAspect | checkbox | No |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-video-batch-resize": {
"name": "video-batch-resize",
"description": "Resize multiple video files using resolution presets or custom dimensions, with optional aspect ratio preservation",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=video-batch-resize",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "video-batch-resize",
"arguments": {
"videoFiles": "https://example.com/file.ext",
"preset": "1080p",
"customWidth": 1920,
"customHeight": 1080,
"maintainAspect": true,
"outputFormat": "mp4",
"videoCopy": false,
"keepOriginalNames": true
}
}
}| Preserve original aspect ratio (adds padding if needed) |
| outputFormat | select | No | — |
| videoCopy | checkbox | No | Copy video stream without re-encoding (only changes container, faster but limited functionality) |
| keepOriginalNames | checkbox | No | — |
File result
{
"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)"
}Questions or issues? Contact [email protected]