Estimate video file size and bitrate
estimate_video_bitrateVideo size and bitrate arithmetic for a clip of durationSec. Pass videoKbps to get the encoded file size (MB, GB, MiB, GiB); pass targetCapMb to get the highest video bitrate that fits that file size. Audio is added at audioKbps (default 192). Every answer also gives the highest video bitrate that fits Discord's 20 MB free upload limit. Kbps is decimal (1 kbps = 1000 bit/s) and MB is 1,000,000 bytes. Use it to plan an export or hit an upload cap; it does not inspect or encode files. Errors when neither videoKbps nor targetCapMb is given.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"durationSec": "<durationSec>"
},
"name": "estimate_video_bitrate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| audioKbps | No | Audio track bitrate in kbps. Default 192; 0 for a silent clip. | |
| videoKbps | No | Video track bitrate in kbps, to estimate the file size. | |
| durationSec | Yes | Clip length in seconds. | |
| targetCapMb | No | File-size ceiling in MB (decimal), to solve for the maximum video bitrate. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| audioKbps | Yes | ||
| videoKbps | Yes | ||
| durationSec | Yes | ||
| targetCapMb | Yes | ||
| estimatedSize | Yes | ||
| referenceToolUrl | Yes | ||
| requiredBitrateForCap | Yes | ||
| discordFreeUploadCapMb | Yes | ||
| discordFreeMaxVideoMbps | Yes |