How to Edit Videos with Claude Code (No Video Editing Software Required) - Step-by-step guide for Use Cases

How to Edit Videos with Claude Code (No Video Editing Software Required)

By Mark FershteynPublished 18 min readbeginner

Turn massive screen recordings into web-ready videos in minutes. Trim, compress, and convert videos using plain English commands-no FFmpeg knowledge needed.


This video started as a 336MB screen recording. Claude Code compressed it to under 10MB for web embedding.

I had a 336MB screen recording. I needed it on my website. I didn't want to open Premiere Pro.

That's the whole story. A 5-minute demo I recorded showing Claude Code building Google Analytics dashboards. The original file was 336 megabytes-way too large to embed on a webpage, and I'd need to trim it anyway.

Old me would have opened video editing software. Or paid for a cloud compression service. Or just... not embedded the video at all.

Instead, I typed one sentence to Claude Code:

Trim this video to the good part, compress it for web, and make it embeddable.

Three minutes later: a 5.9MB video file, perfectly trimmed, with playback controls, ready to embed.

No video editing software. No FFmpeg documentation rabbit holes. No "what codec should I use" research spirals.

Just results.

D
Dan Goldin
@dangoldin

I've been singing Claude Code's praises to anyone who will listen. The ability to do any command-line task without actually knowing the commands is game-changing. Video editing with FFmpeg used to be my nemesis. Now it's just... done.

Read on X →

This guide shows you how to do the same thing-whether you're compressing screen recordings, batch processing marketing videos, or just trying to get a file under your platform's size limit.


Why This Matters (Especially for Non-Technical People)

Here's the problem with video editing: you either learn complex software or you pay someone who has.

FFmpeg is the industry-standard tool for video processing. It's free. It's powerful. It can do literally anything you need to do with video.

It's also infamous for commands that look like this:

ffmpeg -i input.mp4 -vf "scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)/2:(oh-ih)/2" -c:v libx264 -preset slow -crf 23 -c:a aac -b:a 128k output.mp4

That's a real command. For a simple resize and compress operation.

😵
Traditional FFmpegMemorize syntax, debug errors
vs
💬
Claude CodeDescribe what you want
The old way vs the Claude Code way-same result, different experience

Claude Code changes the equation. You describe what you want. Claude writes and executes the FFmpeg commands. You get the result.

No documentation. No Stack Overflow. No syntax errors.

Context

New to Claude Code? This guide assumes you have it installed. If not, follow our 15-minute Mac setup guide first, then come back here.


Getting Started: The Basics

Before diving into specific workflows, here's what you need to know.

Check if FFmpeg is Installed

Claude Code will check for you, but if you're curious:

Terminal - Checking FFmpeg
$ffmpeg -version
ffmpeg version 6.1 Copyright (c) 2000-2024 the FFmpeg developers

If it's not installed, Claude Code will offer to install it:

Claude Code
Compress this video for web embedding
Checking
I notice FFmpeg isn't installed on your system. Would you like me to install it? On Mac, I'll use: brew install ffmpeg
Yes, install it
Installing
Installing FFmpeg... this may take a few minutes.
Complete
FFmpeg installed successfully. Now processing your video...
Automatic dependency installation

Point Claude Code at Your Video

Navigate to the folder containing your video, or give Claude the full path:

Terminal - Starting Claude Code
$cd ~/Downloads
$claude
Claude Code ready. What would you like to do?

Now just describe what you need.


Compress Videos for Web (The Most Common Use Case)

This is what most people need: take a large video file and make it small enough to embed on a website, send via email, or upload to a platform with size limits.

Claude Code
I have a screen recording called demo.mov that's 336MB. Compress it for web embedding-I need it under 10MB but still looking good.
Analyzing
Checking demo.mov... 336MB, 1920x1080, 5 minutes 23 seconds, H.264 codec. To get under 10MB while maintaining quality, I'll use CRF 28 with the H.264 codec, reduce to 720p, and optimize for web playback.
Processing
Running compression... this will take about 2 minutes.
Complete
Done! Created demo-web.mp4 (5.9MB). Compression ratio: 98%. Resolution: 1280x720. Ready for web embedding.
Simple compression request
Prompt

You need to compress a large video for web embedding

I have [filename] that's [size]. Compress it for web embedding-target under [size limit] while keeping it looking professional. This is for [website/email/platform].

Understanding Quality Settings (If You Care)

You don't need to understand these-Claude handles them automatically. But if you're curious:

SettingWhat It DoesClaude's Default
CRF (Constant Rate Factor)Quality level. Lower = better quality, larger file. 18 is nearly lossless, 28 is good for web.23-28 depending on target size
PresetSpeed vs compression. Slower = smaller files."medium" for balance, "slow" for best compression
ResolutionPixel dimensions. Smaller = smaller files.Keeps original unless you need smaller
CodecVideo format. H.264 is universal, H.265 is 25% smaller but less compatible.H.264 for web, H.265 for archive
Tip

Pro tip: Tell Claude your use case. "For embedding on my Webflow site" or "for sending via Slack" helps it choose optimal settings automatically.


Trim Videos to Specific Sections

You recorded a 10-minute demo but only need the 45-second highlight? Claude handles it.

Claude Code
This video has a good section from about 1:30 to 2:45 where I'm showing the dashboard. Cut everything else and just keep that part.
Processing
Trimming demo.mp4 from 1:30 to 2:45 (75 seconds). Using fast copy mode to preserve quality...
Complete
Created demo-trimmed.mp4 (1 minute 15 seconds). Original was 5:23.
Trimming by description

Multiple Clips from One Video

Need several clips from a longer recording? Do it in one request:

Prompt

You need to extract multiple clips from a long video

From meeting-recording.mp4, extract these clips: 1) The intro from 0:00 to 0:45, save as 'intro.mp4'. 2) The product demo from 12:30 to 15:00, save as 'demo.mp4'. 3) The Q&A highlight from 28:15 to 29:30, save as 'qa-highlight.mp4'. Compress each for social media sharing.

Trim + Compress in One Step

This is the workflow I used for my 336MB screen recording:

Claude Code - Trim and Compress
$My screen recording raw-demo.mov is 336MB. Trim it to start at 0:15 (skip the setup) and end at 5:30. Then compress it for web embedding, target under 10MB. Save as demo-final.mp4.
Analyzing raw-demo.mov...
Step 1: Trimming from 0:15 to 5:30 (5m 15s)
Step 2: Compressing for web (target: <10MB)
Created demo-final.mp4
Size: 5.9MB (98.2% reduction)
Duration: 5:15
Resolution: 1280x720

Batch Processing Multiple Videos

This is where Claude Code really shines. Marketing teams, content creators, and anyone dealing with multiple videos will love this.

Convert an Entire Folder

Claude Code
I have a folder called 'raw-footage' with 15 MOV files from my camera. Convert all of them to MP4, compress for web, and save to a new folder called 'processed'.
Scanning
Found 15 MOV files in 'raw-footage' (total: 4.2GB). I'll convert each to H.264 MP4 with web-optimized settings.
Processing
Processing 15 files... [1/15] client-interview.mov → processed/client-interview.mp4
Complete
All 15 files converted. Total output: 312MB (93% reduction). Saved to 'processed/' folder.
Batch conversion
Prompt

You need to process multiple videos with the same settings

Process all video files in [folder name]: 1) Convert to MP4 if not already. 2) Compress to under [target size] each. 3) Resize to [resolution] if larger. 4) Save to a new folder called '[output folder]' with the same filenames. Show me progress as you go.

Create Social Media Clips from Long Videos

Turn one video into multiple platform-specific versions:

Prompt

You need the same video optimized for different platforms

Take product-demo.mp4 and create versions for: 1) YouTube (keep original 16:9, compress for upload). 2) Instagram Feed (1:1 square, crop to center, under 100MB). 3) Instagram Stories/Reels (9:16 vertical, crop to center, under 30 seconds). 4) LinkedIn (16:9, under 200MB, high quality). 5) Twitter (16:9, under 512MB). Save each with the platform name in the filename.

Extract Audio from Videos

Need just the audio track? Maybe for a podcast, transcription, or using the audio elsewhere?

Claude Code
Extract the audio from interview.mp4 as a high-quality MP3 for my podcast.
Processing
Extracting audio track... Original: 48kHz, stereo. Converting to MP3 320kbps for podcast quality.
Complete
Created interview.mp3 (42MB). Duration: 45:23. Quality: 320kbps stereo.
Audio extraction
Prompt

You need to extract audio from a video file

Extract the audio from [video file] and save as [format: MP3/WAV/M4A]. I need it for [podcast/transcription/music production]. [Optional: Normalize the volume levels / Remove silence at the beginning and end].

Add Watermarks and Overlays

Protect your content or add branding without opening video editing software.

Claude Code
Add my logo (logo.png) as a watermark in the bottom-right corner of demo.mp4. Make it semi-transparent so it's visible but not distracting.
Processing
Adding logo.png as overlay... Position: bottom-right with 20px padding. Opacity: 50%. Scaling logo to 15% of video width.
Complete
Created demo-watermarked.mp4 with logo overlay.
Adding a watermark

Text Overlays

Prompt

You need to add text to a video

Add text overlay to [video file]: '[Your text here]' in the [position: top/bottom/center], using a [color] font with a [dark/light] background for readability. Show it for the [first X seconds / entire video / from X to Y timestamp].

Convert Between Formats

Different platforms and software require different formats. Claude handles conversions seamlessly.

FromToCommon Use Case
MOVMP4iPhone/Mac recordings for web
MKVMP4Downloaded videos for editing
AVIMP4Legacy footage for modern platforms
MP4GIFCreating animated previews
MP4WebMOptimal web playback
Claude Code - Format Conversion
$Convert all the MOV files in this folder to MP4, keeping the same quality.
Found 8 MOV files. Converting to MP4 with copy codec (no re-encoding)...
Converted 8 files. Original quality preserved.

Create GIFs from Video Clips

Prompt

You need an animated GIF from a video

Create a GIF from [video file], using the section from [start time] to [end time]. Optimize it for [web/social media/email] with a max width of [pixels]. Keep it under [file size limit].

Real-World Prompt Examples

Here are copy-paste prompts for common scenarios:

For Screen Recordings & Tutorials

I recorded a tutorial called tutorial-raw.mov (800MB, 12 minutes).
I need to:
1. Trim out the first 30 seconds (I was setting up)
2. Remove the last 2 minutes (just me closing apps)
3. Compress to under 50MB for YouTube upload
4. Keep it crisp enough that code is readable
Save as tutorial-final.mp4

For Marketing Teams

I have 10 customer testimonial videos in the 'testimonials' folder.
For each one:
1. Add our company logo (brand/logo.png) as watermark in bottom-left
2. Compress for web (target 1-2MB each)
3. Also create a 15-second clip from the best part of each (you pick what seems most impactful)
Save watermarked versions to 'testimonials-branded/'
Save clips to 'testimonials-clips/'

For Social Media Managers

I have a 3-minute product video (product-full.mp4).
Create the following versions:
1. Full video for YouTube (compress to under 100MB)
2. 60-second highlight reel for Instagram (pick the best parts)
3. 30-second teaser for TikTok (vertical 9:16, grab attention fast)
4. 15-second clip for Instagram Stories
5. Square version for LinkedIn feed

For vertical versions, crop to the center of the action.
Add "New Product Launch" text overlay to the first 3 seconds of each.

For Podcast Producers

I have video recordings of 5 podcast episodes in 'raw-episodes/'.
For each episode:
1. Extract audio as high-quality MP3 (320kbps)
2. Normalize the audio levels
3. Trim silence from the beginning and end
4. Save to 'audio-episodes/' with the same name but .mp3 extension
5. Also create a 1-minute "best moment" video clip for promotion

Advanced Video Workflows

For those who want to go further, Claude Code can create automated workflows.

Watch Folder for Automatic Processing

Prompt

You want to automatically process videos dropped into a folder

Create a script that watches the 'incoming-videos' folder. When a new video appears: 1) Compress it for web (under 10MB). 2) Move the original to 'originals/'. 3) Save the compressed version to 'processed/'. 4) Log what was done to 'processing-log.txt'. Run this in the background.

Bulk Transcribe + Clip

This workflow combines Claude Code with transcription to automatically find and clip key moments:

I have a folder of meeting recordings. For each one:
1. Extract the audio and transcribe it (you can use Whisper)
2. Find any moment where someone says "key takeaway" or "action item"
3. Create a 30-second clip around each of those moments
4. Save clips with descriptive names based on what was said

Embedding Videos in Your Website

Once your video is compressed, embedding it is straightforward. Here's the code I use:

<video
  controls
  autoplay
  loop
  muted
  playsinline
  style="width: 100%; max-width: 800px; border-radius: 12px;"
>
  <source src="/videos/your-video.mp4" type="video/mp4" />
</video>
Tip

Why these attributes?

  • controls: Shows play/pause/volume (essential for UX)
  • autoplay + muted: Video plays automatically (only works if muted)
  • loop: Keeps playing (great for demos)
  • playsinline: Prevents fullscreen on mobile Safari

If you're using React/Next.js, you can ask Claude to generate a proper video component for you.


Tips for Better Results

1. Be specific about your use case

Instead of: "Compress this video"

Try: "Compress this video for embedding on my Squarespace site-needs to load fast on mobile"

2. Tell Claude the constraints

Target file size: under 5MB
Must keep the text readable (it's a code tutorial)
Max resolution: 720p is fine

3. Process a test clip first

For batch operations on important footage, have Claude process one file first so you can verify the quality before processing the rest.

4. Ask Claude to explain tradeoffs

What's the quality difference between compressing to 5MB vs 10MB?
Show me a comparison if possible.

What Claude Code Can't Do (Yet)

To set expectations:

  • Complex editing timelines: Adding multiple tracks, transitions, effects-use Premiere or DaVinci for that
  • Motion graphics: Animated text, kinetic typography-need After Effects or Motion
  • Color grading: Basic adjustments yes, professional grading no
  • Live streaming: Processing pre-recorded files only

For those tasks, you still need traditional video editing software. But for 90% of what business professionals need-compress, trim, convert, batch process-Claude Code handles it.


The Bigger Picture

Key Insight

Video editing used to require either expensive software, technical knowledge, or outsourcing. Claude Code makes professional video processing accessible to anyone who can describe what they want.

I'm not a video editor. I don't know FFmpeg commands. I don't want to learn Premiere Pro just to compress a screen recording.

But I do have a 336MB file that needs to be on my website. And now it is.

That's the shift. You don't need to become a video expert. You need to know what you want.

The next time you have a video that's too big, too long, or in the wrong format-don't open video editing software. Don't upload to a compression website. Don't pay someone on Fiverr.

Just ask Claude.


Getting Started Today

  1. Make sure you have Claude Code installed - Follow our 15-minute setup guide if you haven't already
  2. Navigate to your video folder - cd ~/Downloads or wherever your videos are
  3. Start with something simple - "Compress this video to under 10MB"
  4. Get more specific as you learn - Add trimming, watermarks, batch processing

Keep learning:


Ready to build agents that do the work?

The AI Agents Course: master Claude Code, Claude Cowork, and ChatGPT Codex, and leave with 5+ working agents built on your own work.

  • Self-paced + live builds
  • 5+ working agents
  • 12 months community
SEE THE AI AGENTS COURSE$795 · 100% money-back

Frequently Asked Questions

Can Claude Code edit videos without FFmpeg installed?

Claude Code will check if FFmpeg is installed and offer to install it for you if it's missing. On Mac, it uses Homebrew (brew install ffmpeg). You don't need to know anything about FFmpeg-Claude handles all the commands.

How much can Claude Code compress a video file?

Compression depends on the source material, but dramatic reductions are common. A 336MB screen recording can be compressed to under 10MB while maintaining good quality for web playback. Claude optimizes settings based on your target use case.

Can I use Claude Code to edit videos for social media?

Yes. Claude Code can resize videos for Instagram (1080x1080), TikTok (1080x1920), YouTube Shorts (1080x1920), LinkedIn, and Twitter. It handles aspect ratio changes, compression for platform limits, and can batch process multiple videos at once.

Do I need to learn FFmpeg commands to use Claude Code for video editing?

No. That's the whole point. You describe what you want in plain English ('trim this video to the first 30 seconds and make it under 10MB') and Claude Code figures out the FFmpeg commands. You never see or write the technical syntax.

Can Claude Code add text, watermarks, or overlays to videos?

Yes. Claude Code can add text overlays, watermarks, subtitles, and combine multiple video clips. It uses FFmpeg's filter system but you just describe what you want-'add a watermark in the bottom right corner' or 'add subtitles from this SRT file.'

How long does video processing take with Claude Code?

Processing time depends on video length and your computer's specs. A 5-minute 1080p video typically processes in 1-3 minutes. Claude shows you progress and will let you know if something is taking longer than expected.

Can Claude Code extract audio from videos?

Yes. Claude Code can extract audio tracks as MP3, WAV, M4A, or any other format. It can also normalize audio levels, remove background noise (with additional tools), and combine audio from multiple sources.

BONUS RESOURCE

Finished reading?
Take it with you.

Get a downloadable checklist summarizing the key points from How to Edit Videos with Claude Code (No Video Editing Software Required), plus weekly AI tips.

Printable quick-reference guide
Step-by-step action items
Weekly AI insights newsletter

Guide Checklist

PDF + Email Series

No spam. Unsubscribe anytime.