Add video watermark
video_watermarkOverlay an image watermark onto an existing video, with adjustable position, opacity, margin, and encoding settings, to produce a new output file.
Instructions
Overlay an image watermark onto an existing video and render a new output file. The video and watermark image are read only; output_path is created or overwritten. Supports named, pixel, and percentage positions plus opacity, margin, CRF, and preset controls.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_path | Yes | Absolute path to an existing local video file. The input file is read only. | |
| image_path | Yes | Absolute path to an existing local image file used as an overlay or watermark. | |
| position | No | Watermark position: named position such as bottom-right, pixel dict {"x": 100, "y": 50}, or percentage dict {"x_pct": 0.5, "y_pct": 0.5}. | bottom-right |
| opacity | No | Watermark opacity from 0.0 fully transparent to 1.0 fully opaque. | |
| margin | No | Non-negative edge margin in pixels for named positions. | |
| output_path | No | Destination video path. Auto-generated when omitted; an existing supplied path may be overwritten. | |
| crf | No | Optional FFmpeg CRF override from 0 to 51, where lower means higher quality. | |
| preset | No | Optional FFmpeg encoding preset: ultrafast, fast, medium, slow, or veryslow. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||