Compress video
compress_videoReduce video file size by targeting a specific MB size or using quality-based compression. Automatically calculates bitrate from duration to achieve the desired result.
Instructions
Shrink a video's file size. Give a target size in MB (bitrate is computed from the duration) or omit it for a general-purpose quality-based compression.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_path | Yes | Path to the source video | |
| output_path | No | Where to write the result | |
| target_size_mb | No | Approximate target file size in MB |