Video & Audio
Compress Video
compress-video
Use Compress Video through the Zavilo SDK. Check input limits, parameters, output and supported modes below.
H · Headless
Quick actions
Input files 1Output files 1
Input
Accepted input contract for this Tool.
| Kind | file |
|---|---|
| File count | 1 – 1 |
| Accepted MIME types | video/mp4, video/webm, video/quicktime |
Parameters
Pass these values through request.options.
| Parameter | Type | Required | Default | Allowed / Range | Description |
|---|---|---|---|---|---|
compression |
enum | Optional | balanced |
light | balanced | strong | Compression level. |
resolution |
enum | Optional | original |
original | 1080 | 720 | 480 | Maximum output video height. Output is never upscaled. |
Output
Result contract returned after successful processing.
| Type | files |
|---|---|
| File count | 1 – 1 |
| MIME types | video/mp4 |
| Metadata | duration, sourceWidth, sourceHeight, width, height, inputBytes, outputBytes, reducedPercent, compression, resolution |
| ZIP archive | No |
Basic usage
Choose a supported integration mode and copy the generated starter code.
Headless
const result = await client.run("compress-video", {
file,
options: { compression: "balanced", resolution: "original" }
});
console.log(result.files, result.data, result.metadata);
Embedded
await client.mount({ tool: "compress-video", target: "#zavilo-tool", mode: "embedded" });
This page is generated from the SDK Tool Definition used by the runtime.