crop_video
Crop a video to a specified rectangular region by setting width, height, and optional x/y offsets, saving the result to a new file.
Instructions
Crop a video to a rectangular region.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Left offset of the crop region in pixels | |
| y | No | Top offset of the crop region in pixels | |
| width | Yes | Crop width in pixels | |
| height | Yes | Crop height in pixels | |
| input_path | Yes | Source video path. Relative paths resolve against MEDIA_DIR (defaults to the server's working directory); absolute paths are used as-is. | |
| output_path | Yes | Destination path. Relative paths resolve against MEDIA_DIR (defaults to the server's working directory); absolute paths are used as-is. |