AVI to MP4 API - convert AVI (DivX/Xvid/MJPEG) videos to universal H.264 MP4
avi_to_mp4Convert an AVI video (base64, max 15 MB) into a universal H.264/AAC MP4 with +faststart for web and mobile playback. Uses instant lossless remux when already H.264, otherwise transcodes with configurable CRF quality (19/23/28), optional resolution downscale (1080p/720p/480p), AAC audio or mute, yadif deinterlacing and metadata stripping. Deterministic local ffmpeg, 0 AI, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.004/call via x402 at https://radarbg.com/x402/avi-to-mp4.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"audio": "160",
"quality": "23",
"resolution": "keep",
"stripMetadata": true
},
"name": "avi_to_mp4"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| audio | No | AAC audio bitrate (160/128 kbps) or mute | 160 |
| quality | No | H.264 CRF quality: 19 (high), 23 (balanced), 28 (small) | 23 |
| fileName | No | Optional filename, e.g. clip.avi | |
| resolution | No | Optional max output height (never upscales) | keep |
| deinterlace | No | Apply yadif deinterlacing for interlaced camcorder/VHS AVI files | |
| fileContent | No | Base64-encoded .avi video (max 15 MB; empty = built-in sample Xvid/MP3 AVI) | |
| stripMetadata | No | Strip container metadata tags |