Crop a local H.264 video
abox_video_cropCrop H.264 MP4/MOV video to exact coordinates defined in a local JSON file, then write a re-encoded MP4 with optional audio and output frame/time verification.
Instructions
Crop an admitted H.264 MP4/MOV to exact local JSON coordinates in the decoded display image, then write a re-encoded MP4. Checks source coded geometry before decode, verifies all output frames/times and any copied audio packets. Color can change and unselected metadata is omitted. Requires a local browser with native H.264 support.
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": {
"input_path": "<input_path>",
"output_path": "<output_path>",
"crop_path": "<crop_path>"
},
"name": "abox_video_crop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quality | No | medium | |
| crop_path | Yes | Absolute local filesystem path. URLs and network shares are refused. | |
| input_path | Yes | Absolute local filesystem path. URLs and network shares are refused. | |
| keep_audio | No | ||
| output_path | Yes | Absolute local filesystem path. URLs and network shares are refused. |