Media
Extract audio from video files with advanced options - multiple formats, quality settings, and audio enhancement
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-audio-extract-enhanced' \
-F 'file=@/path/to/videoFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/en/api/tools/video-audio-extract-enhanced' \
-F 'videoFile=/path/to/file.ext' \
-F 'audioFormat=mp3' \
-F 'bitrate=192' \
-F 'sampleRate=44100' \
-F 'channels=original' \
-F 'normalize=false' \
-F 'startTime=00:00:00 or 30 (seconds)' \
-F 'duration=00:05:00 or 300 (seconds)'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-audio-extract-enhanced| Name | Type | Required | Description |
|---|---|---|---|
| videoFile | fileupload required | Yes | — |
| audioFormat | select | No | Audio format for extracted audio |
| bitrate | select | No | Audio bitrate (lossless formats ignore this) |
| sampleRate | select | No | Audio sample rate |
| channels | select | No | Audio channel configuration |
| normalize | checkbox | No | Apply EBU R128 loudness normalization |
| startTime | text | No | Start time for extraction (HH:MM:SS or seconds, empty = from beginning) |
| duration | text | No | Duration to extract (HH:MM:SS or seconds, empty = to end) |
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)"
}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-audio-extract-enhanced": {
"name": "video-audio-extract-enhanced",
"description": "Extract audio from video files with advanced options - multiple formats, quality settings, and audio enhancement",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=video-audio-extract-enhanced",
"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-audio-extract-enhanced",
"arguments": {
"videoFile": "https://example.com/file.ext",
"audioFormat": "mp3",
"bitrate": "192",
"sampleRate": "44100",
"channels": "original",
"normalize": false,
"startTime": "00:00:00 or 30 (seconds)",
"duration": "00:05:00 or 300 (seconds)"
}
}
}Questions or issues? Contact [email protected]