# Edit a video for social with Claude

> Tested by AI Setups That Work. Small business · Intermediate · Content. Updated 2026-11-04.
> Receipt: Ran with Claude Code, Nov 4, 2026: a 31-second 16:9 video trimmed to 16.5 seconds, reframed to 1080x1920 over a blurred background, with 8 caption lines from an existing transcript burned in and the audio faded, all with FFmpeg. Transcription was not re-run. Nothing was posted.

Canonical page: https://www.aisetupsthatwork.com/setups/edit-a-video-for-social-with-claude-code/

## What it does
Have Claude Code trim a video you already have, reframe it for Reels or Shorts, burn in captions and export a file ready to post.

## Who it's for
Anyone with a video to post who tried asking Claude in chat and got instructions instead of a file. You need Claude Code and FFmpeg on a computer, and you should be okay running one command to install FFmpeg.

## Tools
- Claude Code (in the terminal, desktop app or on the web)
- FFmpeg, the free video tool Claude Code runs for you
- Your video file, and a caption file (.srt) if you have one
- A video you own or have the rights to edit

## Steps
1. Know why chat alone gets stuck. Claude in the chat app can plan an edit, but it cannot hand you an edited video file. Claude Code can, because it runs tools like FFmpeg on a computer. Its docs say it edits files and runs commands.
2. Install FFmpeg, or ask Claude Code to check whether it is installed and to install it for you. It is free.
3. Make a folder with your video in it. If you have captions, put the .srt file there too. Your phone, CapCut or a transcription tool can make one. No captions yet? See the next setup to make them.
4. Open Claude Code in that folder and paste the prompt below. Fill in the start and end times you want and where the video will be posted.
5. Let it make one short test cut first, then save 3 still frames from it. Look at them before the full export: captions covering faces or text are the most common problem.
6. When the stills look right, have it export the final MP4 at 1080x1920. Watch the whole clip with sound on your phone before you post it.

## Copy-paste prompt
Adapt bracketed fields to your situation.
```text
You are editing a video with FFmpeg in this folder. Do not post or upload anything.

Video: [FILE NAME]
Captions: [SRT FILE NAME, or "none"]
Keep: [START TIME] to [END TIME]
Post to: [Reels / TikTok / Shorts]

1. Check FFmpeg is installed. Tell me the video's size, length and whether it has sound.
2. Trim to the times above.
3. Make it 1080x1920 vertical. Keep the whole frame visible: center it over a blurred copy of itself. Do not crop people out.
4. If there is a caption file, keep only the lines inside my trim, move their times so the clip starts at 0, and burn them in: white, bold, black outline, in the lower part of the frame, never over the video's own text or faces.
5. Fade the sound in and out over about half a second.
6. Export H.264 video with AAC audio, 30 fps, with the fast-start flag for web.
7. Save 3 still frames from the start, middle and end, and show me the file's size, length and resolution.
Do not delete or overwrite my original file.
```

## Guardrails
- What it touches: Chat input you provide (Claude Code (in the terminal, desktop app or on the web); FFmpeg, the free video tool Claude Code runs for you).
- Needs your OK: Send, pay, publish, and account changes stay with you. Treat agent output as drafts first.
- Safety level: Drafts for you
- Why it fails in chat: Claude in the chat app can write the steps and the commands, but it cannot run them on your file. Claude Code runs them, which is why the same request works there.
- Keep the original: The prompt tells it never to overwrite your original file. Every edit writes a new file, so a bad cut costs nothing.
- In the test, captions that wrapped to three lines covered the bottom of the video. Moving them lower and shrinking the font fixed it.
- A hyphenated word can break across two caption lines. Shorten the line or ask for the break before the word.
- Asking Claude in the chat app for the edited file. It can plan the edit, but only Claude Code can run FFmpeg and hand you the MP4.
- On the first export, captions that wrapped to three lines covered the bottom of the video.
- Keep each caption line short, or ask for a line break before a long hyphenated word.

## Tips
- Center the full frame over a blurred copy instead of cropping. Nothing gets cut out, which matters for screen recordings and for anyone near the edge.
- Keep caption lines short. Long lines wrap to three rows on a vertical video and start covering the picture.
- Ask for still frames before every full export. They take seconds and catch most problems.

## Estimates (labeled, not measured)
- Time saved: Not stated in sources.
- Money saved: Not stated in sources.
- Tool cost: Claude Code needs a Claude subscription or an Anthropic Console account, per its docs. FFmpeg is free.

## Sources
Summaries use the public sources below, not independent verification.
- Anthropic: https://code.claude.com/docs/en/overview (Claude Code docs: an agentic coding tool that reads your codebase, edits files, runs commands, and works in the terminal, IDE, desktop app and browser. Most surfaces need a Claude subscription or Anthropic Console account.)
- FFmpeg: https://ffmpeg.org/ffmpeg-filters.html#subtitles-1 (The subtitles filter draws an .srt onto the video. Its force_style option sets the font, colors, outline and position.)
- FFmpeg: https://ffmpeg.org/ffmpeg-filters.html#boxblur (The boxblur filter, used for the blurred background behind the centered video.)

## Get the free starter pack
Five beginner copy-paste AI setups, free by email: https://www.aisetupsthatwork.com/starter-pack/?utm_source=ai-agent&utm_medium=markdown&utm_campaign=setup-edit-a-video-for-social-with-claude-code

Related:
- [Cut long video into shorts with Claude](https://www.aisetupsthatwork.com/setups/cut-long-video-into-shorts-with-claude-code/index.md)
- [Make a promo reel with AI, from code](https://www.aisetupsthatwork.com/setups/make-a-promo-reel-with-ai-from-code/index.md)
- [Test short video hooks like experiments](https://www.aisetupsthatwork.com/setups/test-short-video-hooks-like-experiments/index.md)
