The Fast Track AI

← All guides

Claude's 5 video codes: cut, caption, animate, zoom, color grade

Keyword EDITOR · published on

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

  1. 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.
  2. 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 copy
    Create 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.

  3. Step 3

    The /dead-space code (cut the silences)

    File: .claude/commands/dead-space.md. Content to copy and paste:

    Prompt to copy
    Cut 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.
  4. Step 4

    The /captions code (word-by-word subtitles)

    File: .claude/commands/captions.md. Content to copy and paste:

    Prompt to copy
    Add 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.
  5. Step 5

    The /animations code (at key moments)

    File: .claude/commands/animations.md. Content to copy and paste:

    Prompt to copy
    Add 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.
  6. Step 6

    The /zoom code (punchy zooms)

    File: .claude/commands/zoom.md. Content to copy and paste:

    Prompt to copy
    Add 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.
  7. Step 7

    The /color-grade code (cinematic look)

    File: .claude/commands/color-grade.md. Content to copy and paste:

    Prompt to copy
    Give 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.
  8. 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 »).

  9. 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 copy
    Cut 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.

    Open Swiply

The tools

Claude CodeThe version of Claude that works on the files on your computer: this is where you add the five codes. FFmpegThe free tool that cuts, zooms, color grades and burns in the subtitles. Claude uses it for you. SwiplyThe ready-made video studio where the AI edits your videos, then publishing to all your networks at the same time.

Good to know

Sources: docs.claude.com, ffmpeg.org, swiply.pro