Trim local video without re-encoding
abox_video_trimCopies selected MP4/MOV time ranges into a new MP4 and verifies copied packets and edit lists. Use it to extract clips; non-keyframe starts require allow_preroll=true.
Instructions
Copy selected MP4/MOV ranges into a new MP4 using the existing website sample-copy engine. Verifies every copied packet and output edit list. First non-keyframe cuts require explicit allow_preroll:true; later sections must start on keyframes. Encoded boundary footage can remain hidden by edit lists, so this is not redaction. Incoming edited timelines are refused. Requires no browser.
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>",
"ranges": "<ranges>"
},
"name": "abox_video_trim"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ranges | Yes | ||
| 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. | |
| allow_preroll | No |