# Auto Reframe Video to Vertical (9:16) — Face Tracking Crop API (`steadyscrape/auto-reframe-vertical-video`) Actor

Auto reframe video to vertical: turn 16:9 video into 9:16, 4:5 or 1:1 with a crop that follows faces and the person talking, no watermark. Bulk links to your own MP4, MOV or WebM; returns the MP4, thumbnail and crop keyframes. Trim or blur the background. Export to JSON, CSV or Excel, or via API.

- **URL**: https://apify.com/steadyscrape/auto-reframe-vertical-video.md
- **Developed by:** [Steady Scrape](https://apify.com/steadyscrape) (community)
- **Categories:** Videos, Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $50.00 / 1,000 minute of reframed video (720 wide)s

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

## Auto Reframe Video to Vertical (9:16)

**Auto reframe video** from 16:9 to vertical 9:16, 4:5 or 1:1. A crop window follows faces, moves to whoever is talking and cuts when the camera cuts, so a landscape interview, podcast or webinar becomes a Short, Reel or TikTok without an editor. You give links to your own video files; you get an MP4 with sound, a thumbnail and the crop path, with no watermark and in bulk.

No login, no subscription: you pay only for the minutes that come out.

### What this auto reframe video tool does

- **Follows faces**: a face detector reads the video several times a second and a sliding crop keeps the person in the picture, with a steady camera instead of a shaky one.
- **Follows the person talking**: with people too far apart to fit together, the crop goes to the one whose mouth is moving, and holds for a few seconds so it does not jump around.
- **Frames groups**: people who fit in the window at once are framed together.
- **Respects camera cuts**: the crop jumps exactly at a cut in your video, never gliding across one.
- **Blurred background** for slides, screens and video without people: the whole picture in the middle over a blurred copy of itself.
- **Trims**: reframe only the part you want with a start and an end time.
- **Returns the crop path**: a JSON file with where the window stood over time, to use in your own editor.

### Convert 16:9 video to 9:16: use cases

- Turn podcast and interview episodes into vertical clips for TikTok, Instagram Reels and YouTube Shorts.
- Reframe webinars, talks and courses for mobile, in bulk, from an automation or a scheduled task.
- Make 4:5 versions for the Instagram and Facebook feed, and 1:1 squares for ads.
- Finish a pipeline: clips from a transcript, cut with [FFmpeg Video & Audio Converter](https://apify.com/steadyscrape/ffmpeg-video-converter), reframed here, then captioned with [Video Render API](https://apify.com/steadyscrape/video-render-api).

### Input

Paste direct links to your video files, or pick the dataset of another run. Everything else has a sensible default.

```json
{
    "videos": ["https://your-bucket.example.com/podcast-episode-12.mp4"],
    "aspectRatio": "9:16",
    "resolution": "auto",
    "framing": "follow_faces",
    "followSpeaker": true,
    "startTime": "1:30",
    "endTime": "2:30"
}
```

Links must open the file itself, up to 2 GB each (MP4, MOV, WebM, MKV and anything else FFmpeg reads). Links of YouTube, TikTok, Instagram, Vimeo and other platforms, their file servers and links that redirect to them are refused for free: this Actor works on your own files and is not a downloader.

### Output

One row per link. The links open without an Apify login.

```json
{
    "status": "ok",
    "reason": null,
    "index": 1,
    "sourceUrl": "https://your-bucket.example.com/podcast-episode-12.mp4",
    "outputUrl": "https://api.apify.com/v2/key-value-stores/…/records/001-podcast-episode-12-reframed.mp4?signature=…",
    "outputKey": "001-podcast-episode-12-reframed.mp4",
    "thumbnailUrl": "https://api.apify.com/v2/key-value-stores/…/records/001-podcast-episode-12-thumbnail.jpg?signature=…",
    "cropPathUrl": "https://api.apify.com/v2/key-value-stores/…/records/001-podcast-episode-12-crop-path.json?signature=…",
    "durationSeconds": 60.0,
    "width": 1080,
    "height": 1920,
    "videoCodec": "h264",
    "audioCodec": "aac",
    "fileSizeBytes": 18400000,
    "aspectRatio": "9:16",
    "framing": "follow_faces",
    "cropWidth": 606,
    "cropHeight": 1080,
    "shots": 7,
    "faceCoveragePercent": 96,
    "subjectSwitches": 4,
    "billedEvent": "hd-reframed-minute",
    "billedCount": 1,
    "processingSeconds": 74.2,
    "processedAt": "2026-11-09T12:00:00.000Z"
}
```

Export the rows to JSON, CSV or Excel, or read them through the API.

| Field | What it is |
|---|---|
| `status` | `ok`, or why nothing was done: `invalid`, `unreachable`, `not_media`, `too_large`, `refused`, `skipped`, `failed`. Only `ok` is charged. |
| `reason` | Why a row is free, or what the output should know: no face found, a strong enlargement, a source that ended early. |
| `outputUrl` | The reframed MP4 (H.264 and AAC, starts playing before it has fully arrived). |
| `outputKey` | Its key in the run's key-value store. |
| `thumbnailUrl` | A JPEG of the output. |
| `cropPathUrl` | JSON with `keyframes` of `time`, `x`, `y` and `cut`: where the window's top-left corner stood. Empty with a blurred background. |
| `cropWidth`, `cropHeight` | The window taken from the source. |
| `shots` | Camera cuts found, plus one. |
| `faceCoveragePercent` | Share of the video in which a face was followed. |
| `subjectSwitches` | Times the crop moved from one person to another within a shot. |
| `source` | What FFprobe read of your file. |
| `datasetItemIndex` | The item of the picked dataset the link came from, from 0. |
| `billedEvent`, `billedCount` | What the row cost. |

### Output sizes

| Shape | Output size `720` | Output size `1080` |
|---|---|---|
| 9:16 | 720x1280 | 1080x1920 |
| 4:5 | 720x900 | 1080x1350 |
| 1:1 | 720x720 | 1080x1080 |

`auto` writes 1080 wide when the source is 1080p or larger, 720 wide otherwise.

### How much does it cost to reframe a video?

Per started minute of output, by its size and, past 1080p, by the source, because decoding a 4K file is most of the work whatever size comes out:

| Event | Price | When |
|---|---|---|
| `reframed-minute` | US$0.05 | Output 720 wide, from a source up to 1080p at 60 frames a second |
| `hd-reframed-minute` | US$0.09 | Output 1080 wide, or any output from a source up to 4K at 30 frames a second |
| `4k60-source-minute` | US$0.20 | Any output from a source above that, up to 4K at 60 frames a second |

A 45-second clip at 1080x1920 costs US$0.09; a 30-minute 720p episode, US$1.50; a 10-minute 4K60 video, US$2. Sources larger than 4K at 60 (8K) are refused for free. Rows that say why nothing was done are free, and a run stops at your spending limit without charging for a video it cannot finish. Whatever the crop finds or does not find, nothing else is charged: no platform usage on top.

### Limits, honestly

- **Whoever is talking is read from the picture, not the sound**: it works best with faces turned toward the camera and at least a twentieth of the picture wide. Two people in profile, very small or in a low-bitrate video can be mistaken; turn off `followSpeaker` to stay on the largest face.
- **One person at a time** unless they fit together: split screens stay one window.
- **A video with no faces** stays centred, and the row says so; `blurred_background` suits it better.
- **Cropping enlarges**: a 9:16 window of a 720p video is 404 pixels wide. The row notes when the picture is enlarged twice or more.
- **HDR video** is written as ordinary 8-bit H.264 without tone mapping, so its colours can look flat.
- **No captions here**: this Actor reframes. Burn captions afterwards with Video Render API from an SRT made by [Audio & Video Transcriber](https://apify.com/steadyscrape/audio-video-transcriber).
- A run works through its links one at a time, and a minute of 1080p takes about a minute and a quarter at the default 4 GB (twice that at 60 frames a second, four times from a 4K source); give it more memory to go faster. A video that would not fit in the run's time or on its disk is skipped for free, with advice.
- Faces are found and followed only to move the crop, inside the run: nobody is identified, no face list or face embedding is stored, and all that stays is your output, its thumbnail and where the crop window stood.

### Is it legal?

Use it on video you own or have the right to edit. You are responsible for the content you process and for having the permission of the people in it where the law asks for it, as with any video editor. The face detector only locates faces; it does not recognize who anyone is.

### Credits

Faces are located by [YuNet](https://github.com/opencv/opencv_zoo/tree/main/models/face_detection_yunet) (MIT License, Copyright (c) 2020 Shiqi Yu) through OpenCV, and the video goes through FFmpeg and x264. The clip prefilled in the input form is cut from *Tears of Steel*, (CC) Blender Foundation | [mango.blender.org](https://mango.blender.org), licensed under CC BY 3.0. This Actor is not affiliated with, sponsored or endorsed by OpenCV, FFmpeg, the Blender Foundation, YouTube, TikTok, Instagram or any other platform named on this page.

### FAQ

**Does it add a watermark?** No.

**Can I reframe many videos at once?** Yes: up to 200 links per run, or a whole dataset of another run.

**Can I use it from my own app?** Yes: start it through the Apify API and read the rows, or call it from Make, n8n or Zapier.

**How long are the links kept?** As long as the run's storage: Apify keeps it for your plan's retention. Download what you want to keep.

# Actor input Schema

## `videos` (type: `array`):

Direct links to your own video files: mp4, mov, webm, mkv, avi, m4v and anything else FFmpeg reads, up to 2 GB each. Signed links of Apify key-value records work too. Links of YouTube, TikTok, Instagram, Vimeo and other platforms, or that redirect to them, are refused before anything is downloaded, free.

## `datasetId` (type: `string`):

Pick the dataset of another run (a render, a downloader, a clip cutter) and every video link in it is reframed. Only the dataset you pick here can be read.

## `datasetFields` (type: `array`):

The fields of each dataset item that hold the links, as dotted paths (media.url takes the url of every element of media). Leave empty to take every link in a field named like video, media, clip, file or recording, or ending in .mp4, .mov and the like.

## `aspectRatio` (type: `string`):

9:16 for TikTok, Reels and YouTube Shorts; 4:5 for the Instagram and Facebook feed; 1:1 square.

## `resolution` (type: `string`):

Auto writes 1080 wide when the source is 1080p or larger and 720 wide otherwise. 720 wide is billed as reframed-minute and 1080 wide as hd-reframed-minute; a 4K source costs more whatever the size written (see the price table).

## `framing` (type: `string`):

Follow faces: a sliding crop keeps the person in the frame. Blurred background: the whole picture in the middle over a blurred copy of itself, for slides, screens and video without people; no faces are looked for and the price is the same.

## `followSpeaker` (type: `boolean`):

With several people too far apart to fit together, the crop goes to the one whose mouth is moving, read from the picture and held for a few seconds so it does not jump around. Turn it off to stay on the largest face.

## `startTime` (type: `string`):

Only work from here on: seconds (95.5) or a timecode (1:35.5, 00:01:35.500). Leave empty for the beginning. You pay for the output minutes only.

## `endTime` (type: `string`):

Only work up to here, written like Start at. Leave empty for the end of the video.

## Actor input object example

```json
{
  "videos": [
    "https://api.apify.com/v2/key-value-stores/vqwI0oufXdIZAWYqG/records/demo-tears-of-steel.mp4?signature=KRUimb2EV6vjOw6SMeD5"
  ],
  "aspectRatio": "9:16",
  "resolution": "auto",
  "framing": "follow_faces",
  "followSpeaker": true
}
```

# Actor output Schema

## `videos` (type: `string`):

No description

## `storedFiles` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "videos": [
        "https://api.apify.com/v2/key-value-stores/vqwI0oufXdIZAWYqG/records/demo-tears-of-steel.mp4?signature=KRUimb2EV6vjOw6SMeD5"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("steadyscrape/auto-reframe-vertical-video").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "videos": ["https://api.apify.com/v2/key-value-stores/vqwI0oufXdIZAWYqG/records/demo-tears-of-steel.mp4?signature=KRUimb2EV6vjOw6SMeD5"] }

# Run the Actor and wait for it to finish
run = client.actor("steadyscrape/auto-reframe-vertical-video").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "videos": [
    "https://api.apify.com/v2/key-value-stores/vqwI0oufXdIZAWYqG/records/demo-tears-of-steel.mp4?signature=KRUimb2EV6vjOw6SMeD5"
  ]
}' |
apify call steadyscrape/auto-reframe-vertical-video --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,steadyscrape/auto-reframe-vertical-video"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/LyrOjKeidg36BuJ3b/builds/MgSvAWiaGAfqDXitK/openapi.json
