Reformat landscape video into 9:16, 1:1 and 4:5 cuts for Shorts, Reels and TikTok with safe zones, subject reframing, burned captions, loudness and per-platform export specs. Triggers: "make a vertical cut", "reformat for Reels", "Shorts version", "crop to 9:16".
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Studio Social Reformat?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/tinh2-studio-social-reformat)
---
name: studio-social-reformat
description: Reformat landscape video into 9:16, 1:1 and 4:5 cuts for Shorts, Reels and TikTok with safe zones, subject reframing, burned captions, loudness and per-platform export specs. Triggers: "make a vertical cut", "reformat for Reels", "Shorts version", "crop to 9:16".
version: "1.0.0"
category: build
platforms: [CLAUDE_CODE, CURSOR, CODEX_CLI]
---
# Social reformat (9:16, 1:1, 4:5)
Turn a 16:9 master into vertical and square cuts that look composed for the feed, not cropped by accident.
## Inputs to agree on
- Source master: resolution, frame rate, whether a clean (textless) version exists.
- Target platforms: YouTube Shorts, Instagram Reels, TikTok, feed posts (4:5 or 1:1), LinkedIn, X.
- Max duration per platform and whether the cut should be shortened.
- Caption source: existing SRT/VTT, or transcribe (Whisper).
- Brand rules: font, caption color, logo placement, end card.
- Reframing approach: static center crop, manual keyframed pan, or automatic subject tracking.
## Target specs
| Format | Resolution | Use |
| ------ | ---------- | ------------------------------ |
| 9:16 | 1080x1920 | Shorts, Reels, TikTok, Stories |
| 4:5 | 1080x1350 | Instagram and Facebook feed |
| 1:1 | 1080x1080 | Feed, LinkedIn, X |
Common delivery for all: H.264 High profile, yuv420p, 30 fps (or source rate up to 60), AAC 48 kHz stereo at 128 to 320 kbps, `+faststart`. Target integrated loudness of -14 LUFS with true peak at or below -1 dBTP. Platforms re-encode everything, so give them a clean high-bitrate source (about 10 to 16 Mbps for 1080x1920).
### Safe zones for 9:16
Platform UI covers parts of the frame. Treat these as conservative guides on a 1080x1920 canvas:
- Top 250 px: status bar, account name, search.
- Bottom 400 to 480 px: caption text, audio label, progress bar.
- Right 120 to 160 px: like, comment, share column (TikTok and Reels).
- Safe text area: roughly x 60 to 940, y 250 to 1440.
Put burned captions around y 1150 to 1400, above the platform caption area, and keep faces in the upper middle third.
## Toolchain
- ffmpeg for crop, scale, pad, captions, loudness. Required.
- Whisper (openai-whisper, faster-whisper or whisper.cpp) for transcripts with timestamps.
- Optional auto-reframe: DaVinci Resolve Smart Reframe, Premiere Auto Reframe, or a Python script using MediaPipe face detection to compute a smoothed crop path.
- Alternative caption engine: Remotion with `@remotion/captions` for animated word-by-word captions.
## Workflow
### 1. Inspect the source
```bash
ffprobe -v error -select_streams v:0 \
-show_entries stream=width,height,r_frame_rate,pix_fmt \
-of default=nw=1 master.mp4
```
### 2. Choose the crop
For a 1920x1080 source, a 9:16 crop at full height is 608x1080 (1080 * 9/16 = 607.5, round to an even number). Then scale up to 1080x1920.
Static center crop:
```bash
ffmpeg -i master.mp4 -vf "crop=608:1080:(iw-608)/2:0,scale=1080:1920:flags=lanczos,setsar=1" \
-c:v libx264 -preset slow -crf 18 -pix_fmt yuv420p -c:a copy center_916.mp4
```
Offset crop to keep a subject on the left third (x center about 640):
```bash
-vf "crop=608:1080:640-304:0,scale=1080:1920:flags=lanczos,setsar=1"
```
Keyframed pan (subject moves from x=700 to x=1200 between 2 s and 6 s). The crop filter evaluates `x` per frame:
```bash
-vf "crop=608:1080:'clip(if(lt(t,2),700,if(lt(t,6),700+(t-2)/4*500,1200))-304,0,iw-608)':0,scale=1080:1920:flags=lanczos,setsar=1"
```
For tracked reframing, detect the face center per frame, smooth it (a moving average over about 15 frames, or a critically damped spring), clamp it to frame bounds, write it as `sendcmd` commands or render frames in Python. Never use the raw detector output; jitter reads as camera shake.
4:5 from 1920x1080: crop 864x1080, scale to 1080x1350. 1:1: crop 1080x1080, scale to 1080x1080.
### 3. Blurred-fill alternative (wide shots, slides, screen recordings)
When cropping would cut out essential content, letterbox inside a blurred copy:
```bash
ffmpeg -i master.mp4 -filter_complex "\
[0:v]scale=1080:1920:force_original_aspect_ratio=increase,crop=1080:1920,boxblur=20:2,eq=brightness=-0.08[bg];\
[0:v]scale=1080:-2[fg];\
[bg][fg]overlay=(W-w)/2:(H-h)/2,setsar=1[v]" \
-map "[v]" -map 0:a -c:v libx264 -crf 18 -pix_fmt yuv420p -c:a aac -b:a 192k fill_916.mp4
```
### 4. Captions
Transcribe:
```bash
whisper master.wav --model medium --output_format srt --word_timestamps True --max_line_width 28 --max_line_count 2
```
Proofread the SRT for names and jargon before burning it in. Burn with libass styling. `MarginV` counts from the bottom on a 384x288 default PlayRes, so set PlayRes explicitly through an ASS file for predictable placement, or use `original_size`:
```bash
ffmpeg -i center_916.mp4 -vf "subtitles=captions.srt:original_size=1080x1920:force_style='FontName=Inter,FontSize=64,Bold=1,PrimaryColour=&H00FFFFFF,OutlineColour=&H00000000,BorderStyle=1,Outline=4,Shadow=0,Alignment=2,MarginV=560'" \
-c:v libx264 -crf 18 -pix_fmt yuv420p -c:a copy captioned_916.mp4
```
Rules: 2 lines max, about 28 characters per line, at least 1 second on screen, high contrast with an outline or box. Note that ASS colors are `&HAABBGGRR`.
### 5. Loudness (two-pass)
```bash
ffmpeg -i captioned_916.mp4 -af loudnorm=I=-14:TP=-1:LRA=11:print_format=json -f null - 2> pass1.txt
# read input_i, input_tp, input_lra, input_thresh, target_offset from pass1.txt
ffmpeg -i captioned_916.mp4 -c:v copy -af "loudnorm=I=-14:TP=-1:LRA=11:measured_I=-19.8:measured_TP=-3.1:measured_LRA=7.2:measured_thresh=-30.1:offset=0.4:linear=true" \
-ar 48000 -c:a aac -b:a 192k -movflags +faststart final_916.mp4
```
### 6. Trim per platform
Cut to the strongest 15 to 60 seconds. Open on motion or a face within the first second; the first frame is the cover in many feeds. Use `-ss` and `-to` before `-i` only for rough cuts; for frame-accurate cuts place them after `-i` and re-encode.
## Variants
- Talking head: tight crop, face at upper third, captions large.
- Two speakers: split screen 1080x960 top and bottom with two crops stacked via `vstack`.
- Screen recording: blurred fill or zoomed region keyframes; never shrink UI text below readable size.
- Music clip: skip captions, add title card and artist line in the safe area.
## Quality checks
- `ffprobe` confirms exact resolution, `yuv420p`, SAR 1:1, expected fps.
- `ffmpeg -i final.mp4 -af ebur128=peak=true -f null -` reports I within -14 plus or minus 1 LU and true peak at or below -1 dBTP.
- Overlay a safe-zone PNG on a few frames and confirm no caption or face falls under platform UI.
- Watch the full cut on a phone at arm's length with sound off: every caption readable, no subject cut off.
- File size reasonable (under about 250 MB for 60 s) and `moov` atom at the start (`+faststart`).
## Pitfalls and fixes
- Odd dimensions: libx264 with yuv420p needs even width and height. Use `-2` in scale or round crops.
- Soft image after upscaling a 608 px crop: start from a 4K master when possible, use lanczos, add mild `unsharp=5:5:0.5`.
- Captions in the wrong place: set `original_size` or author an ASS file with `PlayResX: 1080` and `PlayResY: 1920`.
- Jittery auto reframe: smooth and add a dead zone so the crop only moves when the subject leaves the center region.
- Variable frame rate phone footage: add `-fps_mode cfr -r 30` to avoid audio drift.
- Double-compressed audio: keep AAC encoding to one pass at the end.
## Deliverables
- [ ] `final_916.mp4`, `final_45.mp4`, `final_11.mp4` as agreed
- [ ] Proofread SRT plus burned-caption versions
- [ ] Cover frame PNG per format
- [ ] Loudness report (ebur128 output) per file
- [ ] Short note of crop decisions and trims per platform