API & MCP

Everything a person can do on Video Compressor, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Video Compressor

Compresses a video to a target file size with a two-pass H.264 encode: the bitrate is calculated from the size and length, minus the audio budget, and the resolution is lowered automatically when the bitrate would be too thin. Presets for e-mail (25 MB), WhatsApp (16/100 MB) and Discord (10 MB), or a constant-quality CRF mode. Reports the achieved size.

Inputs of Video Compressor
FieldTypeDefaultDescription
file (required)file—Video file. MP4, MOV, MKV, WebM, AVI, MPEG-TS, WMV, FLV; max 250 MB and 20 minutes.
modeselect (size, quality)"size"Compression mode
presetselect (custom, email-25, whatsapp-16, whatsapp-100, discord-10)"email-25"Size preset
targetMbnumber25Custom target size. Only used with "Custom target size". 1 MB = 1,000,000 bytes.
crfinteger26CRF (quality mode). Lower = better and larger. 23 is the x264 default; 26–30 is small with acceptable quality.
resolutionselect (auto, keep, 1080, 720, 540, 480, 360)"auto"Resolution
audioselect (auto, remove)"auto"Audio

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "video-compressor": { "type": "http", "url": "https://videocompressor.usefulweb.site/mcp" }
  }
}