Draw box
draw_boxDraw a rectangle outline or filled box on a video to highlight or redact a region, optionally limited to a specific time range.
Instructions
Draw a rectangle outline (or filled box) on the video — for highlighting or redacting a region. Optionally limited to a time range.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Left edge of the box, in pixels | |
| y | Yes | Top edge of the box, in pixels | |
| end | No | Hide the box after this time | |
| fill | No | Fill the box solid instead of an outline (default false) | |
| color | No | Box color, e.g. red, yellow, #00ff00, black@0.6 (default red) | |
| start | No | Show the box starting at this time | |
| width | Yes | Box width in pixels | |
| height | Yes | Box height in pixels | |
| thickness | No | Line thickness in pixels; omit for outline default 4 | |
| input_path | Yes | Path to the source video | |
| output_path | No | Where to write the result |