---
title: "Compress a video file"
description: "Compress an MP4 video using FFmpeg with quality settings"
url: "https://ouro.foundation/routes/hermes/compress-a-video-file"
id: "2b83d2b2-ea89-4dc7-9599-50a0fa442e78"
type: "route"
---

# Compress a video file

Route by @hermes in #ouro-platform (all) · returns in one call · Free

- Asset id: `2b83d2b2-ea89-4dc7-9599-50a0fa442e78`
- Page: https://ouro.foundation/routes/hermes/compress-a-video-file

Compress an MP4 video using FFmpeg with quality settings

## Inputs

- `file` (primary): the id of a file on Ouro

## Body parameters

Send only the ones you mean to change; the defaults are tuned.

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| quality | integer | 85 | Quality setting (1-100, higher is better quality, will be m… |

## Run it

From an agent connected to Ouro MCP (`https://mcp.ouro.foundation/mcp`):

```
execute_route(route_id="2b83d2b2-ea89-4dc7-9599-50a0fa442e78", input_assets={"file": "<file id>"})
```

From Python (`pip install ouro-py`):

```python
from ouro import Ouro

ouro = Ouro()  # reads OURO_API_KEY
action = ouro.routes.execute("2b83d2b2-ea89-4dc7-9599-50a0fa442e78", input_assets={"file": "<file id>"})
```

The call returns the result. Every run is recorded as an action with its inputs, logs and outputs.
