Creator Toolset

Edit an Instagram Reel with Claude Code, from a talking-head cut

By , maker of Creator Toolset · Updated

You filmed a forty-second answer for a Reel. The camera was set to 16:9, the pauses are still in, and the words sit in the middle of a wide frame that a phone shows as a narrow strip. You want a vertical file under a minute, with the restarts gone and captions a person can read on a small screen.

Make the long cut first, with the steps in How to edit a talking-head video with Claude Code. Then crop the cut to 9:16, scale it to 1080 by 1920, and burn in captions made from the same cut. Claude Code runs each command and reads what it prints. You check the framing and the captions, because it does not see the picture.

This guide uses the files from the long version: cut.mp4, the cut of your footage, and cut.srt, the captions made from that cut. The commands below ran on a 22-second test cut, a synthetic talking head made with macOS speech on a 16:9 test picture.

1. Shorten the cut if it runs long

A Reel has to be under a minute, so trim before you crop. Open cut-list.txt from the long version and add any pause or take you want gone, with its start and end in seconds. Then cut again from the original copy with the same keep-list command. Each change reruns the commands in the long guide, including the length checks.

2. Turn the captions into a styled file

The captions come from cut.srt. ffmpeg can read an SRT file, but it sizes the text for a 384 by 288 script, so font size and margins land in the wrong place on a 1080 by 1920 frame. In our first attempts the captions either vanished or ran off the top edge. Convert the file to ASS, which stores its own size, and set the size and style in one pass:

ffmpeg -i cut.srt cap.ass
sed -i '' -e 's/^PlayResX: .*/PlayResX: 1080/' -e 's/^PlayResY: .*/PlayResY: 1920/' -e 's/^Style: Default,Arial,16,/Style: Default,Arial,64,/' -e 's/,1,1,0,2,10,10,10,1$/,1,3,0,2,60,60,300,1/' cap.ass

The sed line sets the frame to 1080 by 1920, the font to Arial at 64, a 3-pixel outline, centred at the bottom, and a 300-pixel margin above the bottom edge. Change the 300 if the captions sit too low or too high on your frame. The -i '' part is how macOS's sed edits a file in place.

3. Crop to 9:16 and burn in the captions

One ffmpeg command crops the picture, scales it and draws the captions:

ffmpeg -i cut.mp4 -vf "crop=ih*9/16:ih,scale=1080:1920,setsar=1,ass=cap.ass" -c:v libx264 -crf 20 -pix_fmt yuv420p -c:a copy reel.mp4

The crop keeps the middle of the frame. From a 1920 by 1080 source, that leaves a strip 607 pixels wide, which then scales up to 1080. The picture gets softer as the scale goes up, so start from the best source you have. If you do not want captions, remove ,ass=cap.ass from the filter and run the same command.

Check the file's size and length:

ffprobe -v error -show_entries stream=codec_type,width,height,duration -of csv=p=0 reel.mp4

On the test cut it printed video,1080,1920,22.000000 and audio,22.012018. The picture is 1080 by 1920, and the sound and picture lengths match within a few hundredths of a second.

Then look at one frame, a second into the Reel:

ffmpeg -ss 1 -i reel.mp4 -frames:v 1 check.png

Open check.png in Preview. Find the face and the first caption. The test frame showed both in place, with the caption on two lines near the bottom.

4. Check the frame before you post

These checks are for you, not for Claude Code, because they depend on what the picture shows:

  1. Framing. A speaker who sits off-centre can lose an edge in the middle crop. If the face is cut off, crop from a different start point or use the Smart Reframe tool in DaVinci Resolve, which the Resolve Studio article covers.
  2. Captions against the sound. Read each caption while you listen. A caption can misread a word at a join, as the long guide shows, and the caption file is the source for every frame.
  3. Text margins. Check the text margins in the Instagram app's preview before you post. Third-party overlay guides give different numbers for the same screen, so do not set the margin from a guide. Phone apps usually draw their own controls over the edges of the frame, so keep the words away from the bottom and right sides and look at the preview to see where they land.
  4. Length. Confirm in the preview that the Reel runs under a minute.

If the captions need styling for each word, a transparent overlay built from the same transcript gives you more control. Caption Studio's browser route makes captions and SRT files without a terminal, and the script for the Reel comes from write scripts in your voice before you record.

When the chat route is the better choice

If you want a Reel from a script you have not recorded yet, start in your own AI chat and write the script first. Recording comes after. If you only need captions on a finished vertical file, skip the ffmpeg steps and use a caption tool that works in the browser. Use this terminal route when you want the exact crop, size and caption style in a file you can repeat for the next Reel.

Where to next?