# Compress Video to 720p MP4

**Use case:** 

Shrink large video files for email, web or social uploads: paste MP4, MOV or WebM links and get a smaller 720p MP4 with balanced quality and a public download link. Change the target resolution or compression level, or run it on a whole list of videos. Priced per video minute, no software to install.

## Input

```json
{
  "mediaUrls": [
    "https://download.samplelib.com/mp4/sample-10s.mp4"
  ],
  "datasetField": "url",
  "operation": "compress-video",
  "videoFormat": "mp4",
  "compressionLevel": "balanced",
  "maxResolution": "720",
  "fps": 0,
  "mute": false,
  "normalizeAudio": false,
  "audioFormat": "mp3",
  "audioBitrateKbps": 192,
  "gifFps": 10,
  "gifWidth": 480,
  "gifMaxSeconds": 10,
  "maxFileSizeMb": 500,
  "maxDurationMinutes": 60,
  "maxConcurrency": 2,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

## Output

```json
{
  "fileUrl": {
    "label": "Download",
    "format": "link"
  },
  "status": {
    "label": "Status",
    "format": "text"
  },
  "operation": {
    "label": "Operation",
    "format": "text"
  },
  "output.format": {
    "label": "Format",
    "format": "text"
  },
  "output.duration": {
    "label": "Duration s",
    "format": "number"
  },
  "output.width": {
    "label": "Width",
    "format": "number"
  },
  "output.height": {
    "label": "Height",
    "format": "number"
  },
  "output.sizeBytes": {
    "label": "Output bytes",
    "format": "number"
  },
  "output.sizeReductionPct": {
    "label": "Smaller by %",
    "format": "number"
  },
  "input.sizeBytes": {
    "label": "Input bytes",
    "format": "number"
  },
  "input.duration": {
    "label": "Input s",
    "format": "number"
  },
  "input.width": {
    "label": "In width",
    "format": "number"
  },
  "input.height": {
    "label": "In height",
    "format": "number"
  },
  "input.videoCodec": {
    "label": "In video codec",
    "format": "text"
  },
  "input.audioCodec": {
    "label": "In audio codec",
    "format": "text"
  },
  "processingSec": {
    "label": "Processing s",
    "format": "number"
  },
  "sourceUrl": {
    "label": "Source",
    "format": "link"
  },
  "errorCode": {
    "label": "Error code",
    "format": "text"
  },
  "error": {
    "label": "Error",
    "format": "text"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Video Converter & Compressor – MP4, MP3, WebM, GIF (FFmpeg) Actor is ready to run with the inputs already set for "Compress Video to 720p MP4". [Sign up or log in](https://console.apify.com/create-task-from-example/SJHdljRcao8k9ErQ0) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Compress Video to 720p MP4" task

The Video Converter & Compressor – MP4, MP3, WebM, GIF (FFmpeg) Actor will start running based on the input automatically. You can also change all the input fields, like media file urls (direct links), dataset field with the url, and more, to match your specific use case.

### 3. Receive the "Compress Video to 720p MP4" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as download, status, operation, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Compress Video to 720p MP4" task via API](https://apify.com/gazidev/media-converter.md).

## About this Actor

This example demonstrates how to use [Video Converter & Compressor – MP4, MP3, WebM, GIF (FFmpeg)](https://apify.com/gazidev/media-converter.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/gazidev/media-converter.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/gazidev/media-converter.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
