# Short-Form Auto-Subtitle & 9:16 Video Clipper Cloud MCP (`jintao/video-subtitle-clipper-mcp`) Actor

Zero-scraping cloud video engine & Streamable HTTP MCP Server for n8n, Make, Claude, and Cursor. Auto-transcribe speech with word-level Faster-Whisper timestamps, generate viral karaoke ASS/SRT captions, and reframe videos to 9:16, 1:1, or 16:9 via FFmpeg.

- **URL**: https://apify.com/jintao/video-subtitle-clipper-mcp.md
- **Developed by:** [Jintao Zhang](https://apify.com/jintao) (community)
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $40.00 / 1,000 video minutes processed

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/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

## Short-Form Auto-Subtitle & 9:16 Video Clipper Cloud MCP

Turn any direct video URL (MP4, MOV, or WebM) into **TikTok, Instagram Reels, and YouTube Shorts–ready 9:16 clips with burned-in viral karaoke subtitles** — in a single cloud API call or AI Agent MCP tool invocation.

Built for **n8n, Make.com, Claude Desktop, Cursor, and autonomous content pipelines**, this Actor runs **Faster-Whisper (word-level timestamps) + FFmpeg + libass** fully in the Apify Cloud with **zero local GPU, zero local FFmpeg setup, and zero web scraping**.

***

### Why Use This Actor & MCP Server?

- **Zero Scraping, 100% Direct Media Processing**: Works reliably with your own direct MP4/MOV/WebM links (S3, Cloudflare R2, Google Cloud Storage, BunnyCDN, DigitalOcean Spaces, or direct presigned URLs). No fragile site scrapers, no CAPTCHAs, no broken cookies.
- **Word-Level Viral Karaoke Captions (`.ass` + `.srt`)**: Powered by Faster-Whisper word timestamps. Generates punchy 3–4 word bursts with active yellow word pop highlighting (`viral_karaoke`), crisp `clean_bold`, or subtle `minimal_bottom` lower-third boxes.
- **Smart 9:16 / 1:1 / 16:9 Reframing**: Convert horizontal 16:9 podcasts, demos, or talking-head videos into vertical 1080×1920 shorts using **`blur_pad`** (full frame preserved over a Gaussian-blurred background) or **`center_crop`** (edge-to-edge fill).
- **Dual-Mode Architecture (REST API + Native Streamable HTTP MCP)**:
  - Call it as a standard **Apify Actor** from **n8n**, **Make**, Zapier, or Python/Node.js.
  - Connect **Claude Desktop**, **Cursor**, or any MCP-compatible AI Agent directly to its Standby Mode **Streamable HTTP `/mcp` endpoint** using two dedicated tools:
    - `clip_and_subtitle_video` — Full clip, reframe, transcribe, and burn-in MP4 pipeline.
    - `generate_subtitles_only` — Fast audio-only transcription returning `.srt`, `.ass`, and word-level JSON without re-encoding video.
- **Instant Public Download URLs**: Output MP4, `.srt`, and `.ass` files are saved to Apify Key-Value Store and returned as direct public URLs ready for downstream social schedulers or storage nodes.

***

### Transparent Pay-Per-Event Pricing

No `$29–$79/month` idle SaaS subscriptions or seat minimums. You only pay for the exact video minutes you process:

| Billable Event | Unit | Price (USD) | Description |
| :--- | :--- | :---: | :--- |
| `apify-actor-start` | Per Actor run start | **$0.03** | Covers cloud container initialization and startup compute. |
| `video-minute-processed` | Per started minute of video | **$0.04** | Covers Faster-Whisper word-level transcription, SRT/ASS generation, and optional FFmpeg reframing/burn-in. |

#### Cost Example Comparison

| Workload | This Cloud Actor / MCP | Typical SaaS Auto-Caption Tool | Self-Hosted FFmpeg + Whisper Server |
| :--- | :--- | :--- | :--- |
| **1 × 60-second short** | **$0.07** (`$0.03` start + `$0.04` × 1 min) | Fixed `$19–$49/mo` subscription | Always-on VPS/GPU `$15–$50/mo` + maintenance |
| **30 × 60-second shorts / month** | **~$2.10** total | `$19–$49/mo` | `$15–$50/mo` + Docker/FFmpeg ops |
| **1 × 3-minute podcast clip** | **$0.15** (`$0.03` start + `$0.04` × 3 min) | Credit bundle lock-in | Manual scaling & queue setup |

***

### Input Parameters

| Field | Type | Default | Description |
| :--- | :--- | :---: | :--- |
| `videoUrl` | `string` *(required)* | — | Direct public HTTP/HTTPS URL to an MP4, MOV, or WebM file (max 250 MB). |
| `aspectRatio` | `string` | `"9:16"` | Target canvas: `"9:16"` (1080×1920), `"1:1"` (1080×1080), `"16:9"` (1920×1080), or `"original"`. |
| `cropMode` | `string` | `"blur_pad"` | Reframing mode: `"blur_pad"` (blurred backdrop) or `"center_crop"` (fill frame). |
| `subtitleStyle` | `string` | `"viral_karaoke"` | Caption preset: `"viral_karaoke"`, `"clean_bold"`, or `"minimal_bottom"`. |
| `language` | `string` | `"auto"` | `"auto"` for automatic detection or ISO 639-1 code (`en`, `es`, `fr`, `de`, `ja`, `zh`, etc.). |
| `startSeconds` | `integer` | `0` | Optional start offset in whole seconds for Apify Console/Run API (MCP tools also accept fractional seconds). |
| `maxClipSeconds` | `integer` | *(full video)* | Optional maximum clip duration in seconds (1–1800). |
| `burnSubtitles` | `boolean` | `true` | `true` renders MP4 with reframing & burned captions; `false` returns `.srt`/`.ass` + JSON only. |
| `whisperModel` | `string` | `"base"` | Faster-Whisper int8 model: `"tiny"` (fastest), `"base"` (recommended), or `"small"` (highest multilingual accuracy). |

***

### Copy-Paste JSON Input Example

```json
{
  "videoUrl": "https://cdn.example.com/videos/podcast-highlight.mp4",
  "aspectRatio": "9:16",
  "cropMode": "blur_pad",
  "subtitleStyle": "viral_karaoke",
  "language": "auto",
  "startSeconds": 15,
  "maxClipSeconds": 45,
  "burnSubtitles": true,
  "whisperModel": "base"
}
```

### Example JSON Output

```json
{
  "processedVideoUrl": "https://api.apify.com/v2/key-value-stores/STORE_ID/records/processed_video.mp4",
  "srtUrl": "https://api.apify.com/v2/key-value-stores/STORE_ID/records/subtitles.srt",
  "assUrl": "https://api.apify.com/v2/key-value-stores/STORE_ID/records/subtitles.ass",
  "durationSeconds": 45.0,
  "wordCount": 112,
  "detectedLanguage": "en",
  "segments": [
    {
      "start": 0.12,
      "end": 2.34,
      "text": "Stop editing short form videos by hand.",
      "words": [
        { "word": "Stop", "start": 0.12, "end": 0.42 },
        { "word": "editing", "start": 0.44, "end": 0.85 },
        { "word": "short", "start": 0.87, "end": 1.15 },
        { "word": "form", "start": 1.16, "end": 1.42 },
        { "word": "videos", "start": 1.45, "end": 1.84 },
        { "word": "by", "start": 1.86, "end": 2.02 },
        { "word": "hand.", "start": 2.04, "end": 2.34 }
      ]
    }
  ],
  "chargedEvents": {
    "apify-actor-start": 1,
    "video-minute-processed": 1,
    "billedMinutes": 1,
    "estimatedUsd": 0.07,
    "chargeStatus": "charged",
    "eventChargeLimitReached": false
  }
}
```

***

### Connect to Claude Desktop or Cursor (Streamable HTTP MCP)

This Actor supports **Apify Standby Mode** with native **Streamable HTTP MCP** at `/mcp`.

Replace `<YOUR_APIFY_USERNAME>` and `<YOUR_APIFY_API_TOKEN>` with your Apify credentials:

#### Cursor (`.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "video-subtitle-clipper": {
      "url": "https://<YOUR_APIFY_USERNAME>--video-subtitle-clipper-mcp.apify.actor/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_APIFY_API_TOKEN>"
      }
    }
  }
}
```

#### Claude Desktop (`claude_desktop_config.json` via `mcp-remote`)

```json
{
  "mcpServers": {
    "video-subtitle-clipper": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://<YOUR_APIFY_USERNAME>--video-subtitle-clipper-mcp.apify.actor/mcp",
        "--header",
        "Authorization: Bearer <YOUR_APIFY_API_TOKEN>"
      ]
    }
  }
}
```

#### Available MCP Tools

1. **`clip_and_subtitle_video`** — Clips, reframes (`9:16`, `1:1`, `16:9`, `original`), transcribes, burns subtitles (`viral_karaoke`, `clean_bold`, `minimal_bottom`), and returns `processedVideoUrl`, `srtUrl`, `assUrl`, and segments.
2. **`generate_subtitles_only`** — Fast audio-only transcription returning `srtUrl`, `assUrl`, and word-level timestamps without video re-encoding.

***

### Automate with n8n (Copy-Paste HTTP Request Node)

Want a one-click importable workflow? Import **`n8n_free_workflow_template.json`** from this repository directly into n8n (**Workflows → Import from File**).

Or configure a single **HTTP Request** node manually:

- **Method**: `POST`
- **URL**:
  ```text
  https://api.apify.com/v2/acts/<YOUR_APIFY_USERNAME>~video-subtitle-clipper-mcp/run-sync-get-dataset-items?token=<YOUR_APIFY_API_TOKEN>
  ```
- **Headers**:
  - `Content-Type`: `application/json`
- **JSON Body**:
  ```json
  {
    "videoUrl": "{{ $json.videoUrl }}",
    "aspectRatio": "9:16",
    "cropMode": "blur_pad",
    "subtitleStyle": "viral_karaoke",
    "language": "auto",
    "startSeconds": 0,
    "maxClipSeconds": 60,
    "burnSubtitles": true,
    "whisperModel": "base"
  }
  ```
- **Output**: Access the ready-to-post MP4 at `{{ $json.processedVideoUrl }}`, SRT at `{{ $json.srtUrl }}`, and ASS at `{{ $json.assUrl }}`.

***

### Notes & Best Practices

- **Direct Media Links Only**: Pass direct file URLs (`.mp4`, `.mov`, `.webm`) or presigned object-storage URLs (S3, R2, GCS). HTML watch pages are intentionally rejected with a clear error message.
- **Recommended Memory**: Use **2048 MB – 4096 MB** in Apify Run / Standby settings for fast 1080×1920 H.264 encoding and `base`/`small` Whisper models.
- **Fastest Subtitle-Only Mode**: Set `"burnSubtitles": false` (or call `generate_subtitles_only` via MCP) when you only need `.srt`/`.ass` files and transcript JSON.

# Actor input Schema

## `videoUrl` (type: `string`):

Public HTTP/HTTPS direct download link to an MP4, MOV, or WebM video file (e.g., S3, Cloudflare R2, GCS, CDN, or direct file URL). Note: HTML web pages are not scraped.

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

Output canvas aspect ratio for short-form or landscape platforms.

## `cropMode` (type: `string`):

How to fit the source video into the target aspect ratio (ignored when aspectRatio is 'original').

## `subtitleStyle` (type: `string`):

Visual preset for the generated ASS subtitle file and burned-in captions.

## `language` (type: `string`):

Use 'auto' for automatic Whisper language detection, or supply an ISO 639-1 code (e.g., en, es, fr, de, pt, ja, ko, zh).

## `maxClipSeconds` (type: `integer`):

Optional maximum clip length in seconds starting from startSeconds. Leave empty to process the entire video.

## `startSeconds` (type: `integer`):

Start timestamp offset in whole seconds (default 0) when calling via Apify Console or Run API. Fractional seconds are supported when calling via the MCP server.

## `burnSubtitles` (type: `boolean`):

When enabled, renders an MP4 with reframing and burned-in ASS subtitles. Disable to return SRT/ASS files and transcript JSON only (faster & lower compute).

## `whisperModel` (type: `string`):

Faster-Whisper int8 model size. 'base' offers the best speed-to-accuracy ratio for English and major languages.

## Actor input object example

```json
{
  "aspectRatio": "9:16",
  "cropMode": "blur_pad",
  "subtitleStyle": "viral_karaoke",
  "language": "auto",
  "startSeconds": 0,
  "burnSubtitles": true,
  "whisperModel": "base"
}
```

# Actor output Schema

## `processedVideoUrl` (type: `string`):

Public download URL for the clipped, reframed, and subtitled MP4 video (when burnSubtitles is true).

## `srtUrl` (type: `string`):

Public download URL for the generated standard SubRip (.srt) subtitle file.

## `assUrl` (type: `string`):

Public download URL for the generated Advanced SubStation Alpha (.ass) styled/karaoke subtitle file.

## `outputSummary` (type: `string`):

Structured JSON payload containing processedVideoUrl, srtUrl, assUrl, durationSeconds, wordCount, detectedLanguage, segments, and chargedEvents.

## `datasetItems` (type: `string`):

Structured dataset items with all metadata, transcript segments, and billing events.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("jintao/video-subtitle-clipper-mcp").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("jintao/video-subtitle-clipper-mcp").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 '{}' |
apify call jintao/video-subtitle-clipper-mcp --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jintao/video-subtitle-clipper-mcp"
        }
    }
}
```

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/GOfZKyA2Qu2WvigNs/builds/ZavnUEhlJF8jAlc3A/openapi.json
