media_tools_video_compress
Make a video web-ready: H.264 MP4 that plays everywhere (or VP9 WebM), scaled, faststart, by quality level or to a target file size. Also turns a GIF into a video a tenth of the size. Returns the file, a poster frame and a tag. Price: $0.05 USDC via x402, charged only on success. Part of Media tools: Video and audio chores for sites, apps and docs: turn a clip into a small GIF or animated WebP, compress video to web-ready MP4/WebM with a poster, pull thumbnails and a contact sheet, extract or convert audio with loudness normalization, draw waveforms, and probe a file for what will not play in browsers..
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "media_tools_video_compress"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mute | No | Drop the audio track (background and hero videos). | |
| start | No | Where to start, in seconds. | |
| video | No | Video file as base64 (MP4, MOV, WebM, MKV, AVI or GIF). | |
| format | No | mp4: H.264 + AAC, plays everywhere. webm: VP9 + Opus, smaller, slower to make. | mp4 |
| maxFps | No | ||
| quality | No | high is visually lossless, medium suits web pages, low is for previews. | medium |
| duration | No | How many seconds to keep. To the end when omitted. | |
| maxWidth | No | ||
| videoUrl | No | Link to the video. | |
| maxHeight | No | ||
| targetBytes | No | Aim for this file size instead of a quality level (25 MB for Discord, 8 MB for email). |