# Automated 16:9-to-9:16 Short-Form Repurposing & Caption Pipeline

> Convert a 16:9 long-form studio video into vertical 1080×1920 shorts with deterministic active-speaker crop tracks, burnt-in Swiss-grid ASS subtitles, branded Ideogram 3.0 cover thumbnails, and -14 LUFS audio normalization—all driven from one repeatable CLI script at under $0.09 per short.

- **Canonical URL:** https://framesfield.com/workflows/short-form-repurpose-automation
- **Difficulty:** Beginner
- **Estimated Time:** 15 min
- **Estimated Cost:** $0.03 – $0.09 / short cover
- **Last Verified:** 2026-11-26
- **Tools Used:** Ideogram 3.0 (https://framesfield.com/specs/ideogram-3), Kling 2.6 Pro (https://framesfield.com/specs/kling-2-6)

## Pipeline Architecture

01. **Select 45s Clip** (Timecode EDL / CLI): Trim high-retention segment with frame accuracy
02. **Word Timestamps** (Whisper.cpp / Faster-Whisper): Emit word-level SRT/ASS subtitle track locally
03. **Vertical Cover** (Ideogram 3.0 Turbo): Render crisp typographic cover ($0.03)
04. **Vertical Master** (FFmpeg 7.x): Crop 9:16, burn clean captions, hit -14 LUFS

## Playbook

## How do you automate vertical shorts without losing editorial taste?

Most SaaS clip generators spit out identical yellow-bounce captions, jittery auto-panning crops, and crushed audio. Replacing black-box SaaS clippers with a deterministic **Whisper.cpp + FFmpeg + Ideogram 3.0** shell pipeline cuts monthly tool overhead to pennies per clip while keeping typography, safe zones, and loudness under strict studio control.

## Step 1: Produce tight 2-line captions locally

Run `whisper-cli` (from `whisper.cpp`) with a strict line length limit (`-ml 32`) so burned-in subtitles stay compact and scannable on mobile screens:

```bash
whisper-cli -m models/ggml-large-v3-turbo.bin -f segment.wav -osrt -ml 32 -of clip01
```

Inspect `clip01.srt` for proper nouns (model names, product acronyms) before burning—fixing 2 spelling errors takes 15 seconds and separates authoritative studio clips from sloppy automation.

## Step 2: Reframe with explicit safe-zone coordinates

For a standard `1920×1080` single-subject framing, the centered vertical slice is `607.5 × 1080` (`ih*9/16:ih`). Scaling up to `1080×1920` via `flags=lanczos` preserves sharp edge detail. If your source footage is `3840×2160` (4K), the vertical slice is `1215×2160`, meaning **zero upscaling** occurs when outputting `1080×1920`.

## Step 3: Lock vertical cover typography with Ideogram 3.0

When publishing to Reels or YouTube Shorts grids, a bespoke vertical cover frame prevents awkward mid-blink video thumbnails. Call [Ideogram 3.0](/specs/ideogram-3) Turbo (`$0.03`) with `aspect_ratio: "9x16"`, `magic_prompt: "OFF"`, and explicit brand `color_palette` weights so your grid reads as a unified editorial series.

## Copyable Asset: Deterministic 16:9 -> 9:16 Vertical Reframe + Clean Caption FFmpeg Command (repurpose-short.sh)

```bash
#!/usr/bin/env bash
set -euo pipefail

INPUT="$1"         # e.g. master_16x9.mp4
START="$2"         # e.g. 00:02:14.500
DURATION="$3"      # e.g. 42
SUBS="$4"          # e.g. clip01.srt
OUT="${5:-short_9x16.mp4}"

# Center-crop 16:9 -> 9:16, scale to 1080x1920, burn clean captions inside bottom safe zone (MarginV=340)
ffmpeg -y -ss "$START" -t "$DURATION" -i "$INPUT" \
  -vf "crop=ih*9/16:ih:(iw-ih*9/16)/2:0,scale=1080:1920:flags=lanczos,subtitles='${SUBS}':force_style='FontName=Helvetica Neue,FontSize=15,PrimaryColour=&H00FFFFFF,OutlineColour=&H00111111,BackColour=&H99000000,BorderStyle=4,Outline=0,Shadow=0,Alignment=2,MarginV=72'" \
  -af "loudnorm=I=-14:TP=-1.0:LRA=9" \
  -c:v libx264 -crf 17 -preset medium -pix_fmt yuv420p -movflags +faststart \
  -c:a aac -ar 48000 -b:a 192k \
  "$OUT"
```

## FAQ

### What are the safe caption margins for 1080×1920 vertical video across Shorts, Reels, and TikTok?

Keep captions and lower-thirds inside the middle band between Y=250px from top and Y=420px from bottom, with at least 120px right-side clearance to avoid overlapping like/comment icon stacks.

### Why use FFmpeg BorderStyle=4 instead of heavy animated neon word-bounce captions?

Solid translucent matte caption bars (`BorderStyle=4`) stay legible against bright and dark footage alike, compress cleanly without H.264 mosquito artifacts, and avoid generic template fatigue.

### Can this pipeline add animated B-roll inserts automatically?

Yes. Generate 5-second vertical 9:16 inserts via Kling 2.6 Pro ($0.35 silent) and splice them over talking-head cuts using FFmpeg's `overlay` filter with `enable='between(t,12,17)'`.
