calculate_bitrate
Compute average and peak bitrate of video files for detailed analysis. Input the file path and optional sample duration to generate precise bitrate metrics.
Instructions
计算视频的平均码率和峰值码率,提供详细的码率分析
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": {
"filePath": "<filePath>"
},
"name": "calculate_bitrate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | 视频文件路径 | |
| sampleDuration | No | 采样时长(秒),用于计算峰值码率 |