Claude's 5 video codes: cut, caption, animate, zoom, color grade
In the video, you just type a code and Claude edits your video. An honest clarification: these codes are not built into Claude. They are custom commands that you add once and for all in Claude Code (the version of Claude that works directly on the files on your computer). This guide gives you the five codes, ready to copy and paste, and the step-by-step instructions. Would you rather not install anything? Swiply's video studio does this editing for you, by chatting with the AI: that's step 8.
Step by step
-
Step 1
What you need
- Claude Code installed on your computer (it requires a paid Claude subscription).
- FFmpeg, the free tool that edits videos: Claude can install it for you the first time you use it.
- A folder with the video to edit.
-
Step 2
Prepare the codes folder
In your videos folder, create a folder named .claude, then inside it a folder named commands. Each code is a simple text file in this folder: the file name becomes the code. For example, a file dead-space.md becomes the code /dead-space.
The easiest way: open Claude Code in this folder and ask it:
Prompt to copyCreate the .claude/commands folder and add the five files I'm going to give you.
Then paste the five codes from the following steps into it.
-
Step 3
The /dead-space code (cut the silences)
File: .claude/commands/dead-space.md. Content to copy and paste:
Prompt to copyCut all the silences from the video $ARGUMENTS. Use FFmpeg (silencedetect) to find silences longer than 0.6 seconds, keep a small 0.15 second breath before and after each sentence, then assemble the spoken parts into a new video named like the original with -cut at the end. Never touch the original video. Install FFmpeg if it's missing. At the end, give me the duration before and after.
-
Step 4
The /captions code (word-by-word subtitles)
File: .claude/commands/captions.md. Content to copy and paste:
Prompt to copyAdd word-by-word subtitles to the video $ARGUMENTS. Transcribe the audio with Whisper locally (install it if it's missing), with the timestamp of each word. Display one to three words at a time, in capitals, large, white with a black outline, centered in the bottom third of the frame, with the current word highlighted. Burn them in with FFmpeg into a new video named with -subtitles at the end. Check the spelling of proper names before burning them in.
-
Step 5
The /animations code (at key moments)
File: .claude/commands/animations.md. Content to copy and paste:
Prompt to copyAdd on-screen animations at the key moments of the video $ARGUMENTS. Transcribe the audio with Whisper locally, find the four to six most important moments (a number, a tool name, a promise, a step), and at each one make a short text or an emoji appear for one to two seconds, entering with a small bounce, using FFmpeg. Never hide the face. New video named with -animated at the end. Give me the list of the moments chosen.
-
Step 6
The /zoom code (punchy zooms)
File: .claude/commands/zoom.md. Content to copy and paste:
Prompt to copyAdd punchy zooms to the video $ARGUMENTS so it never feels slow. Transcribe the audio with Whisper locally, and every four to six seconds, on a strong word, do a quick zoom (about 0.2 seconds) to 115 to 130%, centered on the face, held until the next sentence, then go back to 100%. Alternate the zoom levels. Use FFmpeg (zoompan or crop then scale). New video named with -zoom at the end.
-
Step 7
The /color-grade code (cinematic look)
File: .claude/commands/color-grade.md. Content to copy and paste:
Prompt to copyGive the video $ARGUMENTS a cinematic look. With FFmpeg: a bit more contrast, warm tones on the skin and highlights, slightly bluish shadows, slightly stronger but natural saturation, and a light vignette. First make a before / after image for me to approve, then export a new video named with -cinema at the end.
-
Step 8
Use the codes
Open Claude Code in your videos folder, type the code followed by the name of the video, for example:
Prompt to copy/dead-space my-video.mp4
You can chain them: /dead-space first, then /captions on the cut video, then /zoom, then /color-grade. Watch the result at each step, and ask for a specific adjustment if needed (« smaller subtitles », « fewer zooms »).
-
Step 9
The ready-made solution, with nothing to install
Don't want to set anything up? Swiply's video studio does this editing for you, by chatting with the AI. Open the Video Studio, click Create a video, upload your raw footage, then write for example:
Prompt to copyCut the silences, add word-by-word subtitles, zooms and animations.
When you like the video, you publish it from Swiply to all your networks at the same time: TikTok, Instagram, Facebook, YouTube, Threads, LinkedIn and X.
The tools
Good to know
- The codes are not built into Claude: they are Claude Code custom commands, to be added once (steps 1 to 6).
- Always work on a copy: the codes create a new video and don't touch the original, but keep it aside anyway.
- The first run installs FFmpeg and Whisper, so it takes longer. After that, allow a few minutes per code depending on the length of the video.
- Always watch the whole video before publishing it, especially the subtitles (proper names, numbers).
Sources: docs.claude.com, ffmpeg.org, swiply.pro