crop_video
Crop a video to a rectangular region by specifying top-left corner coordinates (x, y) and the width and height in pixels.
Instructions
Crop a video to a rectangular region defined by width, height, and top-left corner (x, y).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | X offset of the top-left corner of the crop region (default 0) | |
| y | No | Y offset of the top-left corner of the crop region (default 0) | |
| width | Yes | Width of the crop region in pixels | |
| height | Yes | Height of the crop region in pixels | |
| file_path | Yes | Absolute path to the input video file | |
| output_path | No | Absolute path for the output file. Defaults to same directory with '_cropped' suffix. |