Compress a local H.264 video
abox_video_compressCompress H.264 MP4/MOV videos locally to a target byte size, validating frames and timestamps while preserving supported audio when requested.
Instructions
Decode an admitted H.264 MP4/MOV locally and re-encode a new MP4 toward a byte target using the website engine. Checks sequence headers and slice prefixes before decoding and verifies all generated frames and timestamps. Copies supported audio packets exactly when requested. Check fitted; the target can be missed and size or color can change. Requires an installed browser with native H.264 decode/encode 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>",
"target_bytes": "<target_bytes>"
},
"name": "abox_video_compress"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_side | No | ||
| 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. | |
| target_bytes | Yes |