Crop video frame
video_cropCrop a video to a rectangular region or centered percentage, producing a new output file.
Instructions
Crop an existing video to a rectangular region or centered percentage crop and render a new output file. The source video is read only; x/y default to a centered crop when omitted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_path | Yes | Absolute path to an existing local video file. The input file is read only. | |
| width | No | Crop region width in pixels. Pair with height unless using crop_percent. | |
| height | No | Crop region height in pixels. Pair with width unless using crop_percent. | |
| x | No | Optional X offset in pixels. Defaults to a centered crop when omitted. | |
| y | No | Optional Y offset in pixels. Defaults to a centered crop when omitted. | |
| output_path | No | Destination video path. Auto-generated when omitted; an existing supplied path may be overwritten. | |
| crop_percent | No | Centered crop percentage of original dimensions, such as 50 for the center 50%. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||