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
计算视频的平均码率和峰值码率,提供详细的码率分析
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | 视频文件路径 | |
| sampleDuration | No | 采样时长(秒),用于计算峰值码率 |
Input Schema (JSON Schema)
{
"properties": {
"filePath": {
"description": "视频文件路径",
"type": "string"
},
"sampleDuration": {
"default": 10,
"description": "采样时长(秒),用于计算峰值码率",
"type": "number"
}
},
"required": [
"filePath"
],
"type": "object"
}